General

We have made the following changes to the new SDK.

  • Renamed the pod spec name Apptics to Apptics-SDK.
  • Changed the names of a few classes and their methods.
  • Changed the class prefix to AP from ZA.
  • Provided an additional parameter "showConsent" for trackLogin:, trackSignup, and setCurrentUser: methods. Based on the value we will decide to proceed with/without user-consent.
  • Removed the flush intervals. Now the data which is collected for a session will be pushed to the server when the app goes to the background. Additionally, we are supporting BackgroundTask, please refer to the link[Flush & BackgroundTask]
  • We have two helper scripts that execute before and after building the project. We recommend you use script_phase in your Podfile.

 

Copiedtarget '[TARGET NAME]' do
    pod 'Apptics-SDK'

    script_phase :name => 'Apptics pre build', :script => 'sh "./Pods/Apptics-SDK/scripts/regappversion" --debug-mode=[DEBUG MODE INT] --target-name="[TARGET NAME STRING]" --config-file-path="apptics-config-debug.plist"', :execution_position => :before_compile

    script_phase :name => 'Apptics post build', :script => 'bash "./Pods/Apptics-SDK/scripts/run" --upload-symbols=[STATUS BOOL] --release-configurations="[CONFIGURATIONS COMMA SEPARATED STRING]" --config-file-path="apptics-config-debug.plist"', :execution_position => :after_compile
  end

  post_install do |installer|
    puts system("sh ./Pods/Apptics-SDK/scripts/postinstaller --prefix=\"[PREFIX STRING]\" --target-name=\"[MAIN TARGET NAME STRING]\" --config-file-path=\"apptics-config-debug.plist\"")      
  end

The file path of the script directory is "./Pods/Apptics-SDK/scripts/" You can use a user-defined variable or the environment variable of your XCConfig to pass the config-file-path, debug mode and other parameters.

  • --debugmode is:
    • 0 for development
    • 1 for production
    • 2 for testing
  • --upload-symbols is parameter based on which the dSYM files are uploaded to the server.

--release-configurations is an optional parameter to pass your configuration name Debug, release, or add custom name with comma separated for which the dSYMs will be uploaded without any prompt during App Store submission process via CI, CT and CD.​