Skip to content

Build and release instructions

Mashfiqui edited this page Jun 19, 2020 · 7 revisions

Android

  • Debug build Step to directly compile and run a debug build for android

SENTRY_SKIP_AUTO_RELEASE=true ionic cordova run android --source-map

  • Production build Steps to compile and run a production build for android

SENTRY_SKIP_AUTO_RELEASE=true ionic cordova build android --prod --release --source-map

rm sarav3.apk

~/Library/Android/sdk/build-tools/29.0.2/zipalign -v 4 ./platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk sarav3.apk

rm sara-release.apk

~/Library/Android/sdk/build-tools/29.0.2/apksigner sign --ks my-release-key.keystore --out ./sara-release.apk ./sarav3.apk

  • Add the extra codes in OneSignalPush and NotificationExtenderOneSignal if you haven't done so. Link
  • Upload app to the app store.

iOS

  • First, make sure you followed all the steps to add the notification extension from the OneSignal website. You need to follow the extra step iOS Service Extensions from here
  • Add the extra codes in OneSignalPush and NotificationExtenderOneSignal if you haven't done so. Link
  • Make sure you update the server address.
  • Select OneSignalNotificationServiceExtension > Info. Right click to add a row. Add App Transport Security Settings and under it add Allow Arbitrary Loads and set it to YES from NO.
  • Issue the following command and prepare

SENTRY_SKIP_AUTO_RELEASE=true ionic cordova prepare ios --prod --release --source-map

  • Issue the following commands to remove unwanted platforms from Sentry

cd platforms/ios/SARA/Plugins/sentry-cordova/Sentry.framework
lipo -info Sentry
lipo -remove i386 Sentry -o Sentry
lipo -remove x86_64 Sentry -o Sentry
lipo -info Sentry

  • Archieve and try to upload as usual.
Clone this wiki locally