BUILD RELEASE ARTIFACTS
- Clean and Rebuild your project in Android Studio.
- In Android Studio, on the menu bar Click on Build -> Edit Build Types -> select release
- SetMinify Enabled -> True & click on Proguard File selection -> Navigate to proguard-rules.pro (zigbank\platforms\android)
- Click on OK -> again click on OK
- Adding URLs to app.properties.xml (customizations/src/main/res/values/)
- NONOAM (DB Authenticator setup)
SERVER_TYPE |
NONOAM |
KEY_SERVER_URL |
Eg. http://mum00chx.in.oracle.com:3333 |
WEB_URL |
Eg. http://mum00chx.in.oracle.com:3333 |
SERVER_CERTIFICATE_KEY |
Refer point 6.7 |
- OAM Setup (Refer to installer pre requisite documents for OAuth configurations)
SERVER_TYPE |
OAM |
KEY_SERVER_URL |
Eg. http://mum00chx.in.oracle.com:8003 (This URL must be of OHS without webgate) |
WEB_URL |
Eg. http://mum00chx.in.oracle.com:3333 |
KEY_OAUTH_PROVIDER_URL |
http://mum00aon.in.oracle.com:14100/oauth2/rest/token |
APP_CLIENT_ID |
<Base64 of clientid:secret> of Mobile App client |
APP_DOMAIN |
OBDXMobileAppDomain |
WATCH_CLIENT_ID |
<Base64 of clientid:secret> of wearables |
WATCH_DOMAIN |
OBDXWearDomain |
SNAPSHOT_CLIENT_ID |
<Base64 of clientid:secret> of snapshot |
SNAPSHOT_DOMAIN |
OBDXSnapshotDomain |
LOGIN_SCOPE |
OBDXMobileAppResServer.OBDXLoginScope |
SERVER_CERTIFICATE_KEY |
Refer point 6.7 |
- IDCS Setup
SERVER_TYPE |
IDCS |
KEY_SERVER_URL |
Eg. http://mum00chx.in.oracle.com:8003 (This URL must be of OHS without webgate) |
WEB_URL |
Eg. http://mum00chx.in.oracle.com:3333 |
KEY_OAUTH_PROVIDER_URL |
http://obdx-tenant01.identity.c9dev0.oc9qadev.com/oauth2/v1/token |
APP_CLIENT_ID |
<Base64 of clientid:secret> of Mobile App client |
WATCH_CLIENT_ID |
<Base64 of clientid:secret> of wearables |
SNAPSHOT_CLIENT_ID |
<Base64 of clientid:secret> of snapshot |
LOGIN_SCOPE |
OBDXLoginScope |
OFFLINE_SCOPE |
urn:opc:idm:__myscopes__ offline_access |
SERVER_CERTIFICATE_KEY |
Refer point 6.7 |
- Adding chatbot support to mobile application (Optional)
CHATBOT_ID |
The tenant ID |
CHATBOT_URL |
The web socket URL for the ChatApp application in IBCS |
- If using http protocol for development add (android:usesCleartextTraffic="true") to application tag of AndroidManifest.xml (on app & obdxwear target)
- For Generating Signed Apk: To Generate release-signed apk as follows:
- On menu bar click on Build -> Generate Signed Apk
- If you have an existing keystore.jks file then select choose Existing else click on Create New
- Select Build Type as Release, Signature Version as V1 and V2(Full APK Signature) and Change APK Destination folder if you want and click on Finish
- This will generate APK by the given name and destination folder. Default APK Destination folder is zigbank\platforms\android\app\release
- Run the App and select Device or Simulator.
- Repeat same steps (From step 8 and obdxwear as module) for OBDX Wear App for Release Signing. Copy and paste proguard-rules.pro from OBDX_Installer/installables/mobile/service/android/obdxwear into zigbank\platforms\android\obdxwear using explorer. The select obdxwear as the module and follow same signing steps with same keystore.
Note: The application has config page to add URL. This is for development purpose only and can be removed using below step. (Update content src tag)
- Application will work on https only. If you want to run application on http then set targetSdkVersion, compileSdkVersion to 30 and buildToolsVersion to 30.0.3 in app’s build.gradle(zigbank\platforms\android\app\) and replace below code block from obdx.conf(config/obdx.conf).
<IfModule mod_headers.c>
<If "%{HTTP_USER_AGENT} =~ /obdx-mobile-android/">
Header edit Set-Cookie ^(.*)$ $1;SameSite=None;Secure
</If>
<If "%{HTTP_USER_AGENT} =~ /obdx-softtoken/">
Header edit Set-Cookie ^(.*)$ $1;SameSite=None;Secure
</If>
</IfModule>
With below one as,
<IfModule mod_headers.c>
<If "%{HTTP_USER_AGENT} =~ /obdx-mobile-android/">
Header edit Set-Cookie "SameSite=Strict" ""
</If>
<If "%{HTTP_USER_AGENT} =~ /obdx-softtoken/">
Header edit Set-Cookie "SameSite=Strict" ""
</If>
</IfModule>
Note: We strongly recommend you to use https setup with sdk 31 only, as google play store won’t allow app’s below sdk 31.