-
Notifications
You must be signed in to change notification settings - Fork 2
Build and release instructions
Mashfiqui edited this page Jun 19, 2020
·
7 revisions
- 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
OneSignalPushandNotificationExtenderOneSignalif you haven't done so. Link - Upload app to the app store.
- 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 Extensionsfrom here - Add the extra codes in
OneSignalPushandNotificationExtenderOneSignalif you haven't done so. Link - Make sure you update the server address.
- Select
OneSignalNotificationServiceExtension> Info. Right click to add a row. AddApp Transport Security Settingsand under it addAllow Arbitrary Loadsand set it toYESfromNO. - 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.