Downloading and Using the Siebel Mobile Archive File (Administrator Task)
Instead of downloading the Siebel app and installing it on a mobile device as described in Downloading and Installing the Siebel App, administrators can copy SiebelMobile.zip
file from Siebel Tools installed
home directory.
Prerequisite software
Make sure you are having proper Internet connection.
-
Node.js v20.x.x
Refer link, https://nodejs.org/download/release/v120.16.0.
-
JDK 17
Refer link, https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html.
-
Android Studio and Android SDK
Refer link, https://developer.android.com/studio
Note: Multiple Android SDK versions will get mapped post Android Studio installation in SDK Manager. We need to select API level 33/34.
For MAC laptop
-
Node.js v20.x.x
Refer link, https://nodejs.org/download/release/v120.16.0
-
JDK 17
Refer link, https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
-
Android Studio and Android SDK
Refer link, https://developer.android.com/studio
Note: Multiple Android SDK versions will get mapped post Android Studio installation in SDK Manager. We need to select API level 33/34. -
Xcode 16.2
Refer link, https://developer.apple.com/xcode
-
Open a terminal and set XCode via terminal. Execute following commands
-
To verify the switch
xcodebuild -version
.
-
-
-
Cocoapods
-
Refer link, https://cocoapods.org.
-
Use one of the below command:
brew install cocoapods
or
sudo gem install cocoapods
-
Setting up env
-
Copy the
SiebelMobile.zip
archive file. -
Extract the
SiebelMobile.zip
archive file at location<PROJECT_ROOT>\RNMobile\
.-
Now the project root folder will become
<PROJECT_ROOT>\RNMobile\Siebel
.
-
Preparation of IPA file
On MAC laptop
-
In terminal, navigate to
<PROJECT_ROOT>\RNMobile\Siebel\ios
folder and execute thepod install
command. -
Navigate to
<PROJECT_ROOT>\RNMobile\siebel\ios\siebel\Info.plist
.- Change
<string>Release_Version</string>
with required build label.Example:
<string>23.9</string>
-
Add domain list which need to be allowed in the siebel app,
<key>WKAppBoundDomains</key> <array> <string>*.oracle.com</string> <string>domain1</string> <string>domain2</string> .... </array>
- Change
-
Open Xcode application using below command in a terminal and navigate to
<PROJECT_ROOT>\RNMobile\siebel\ios
.-
Execute command
open siebel.xcworkspace
. -
With above command it should open the project in xcode.
-
Add the Apple signing profile details matching to your company account details.
-
Clean Build Folder from the Product menu.
-
Build from Product menu.
-
Select Any iOS Device option from Product->Destination menu item.
-
Archive project from the Product menu.
Successful archive looks something like below:
-
Click on Distribute App button and select Custom and then Enterprise option.
-
Select the All compatible device variants option from the drop down menu next to App Thinning.
-
Select IOS in house profile and certificate.
Let the Thinning app package load.
-
Click on export after successful processing.
-
Once you click export, you can see a folder with all the app versions after thinning.
-
Pick
siebel.ipa
from the list to use in the devices.
-
Alternatively the IPA file can be generated with the below commands.
-
xcodebuild clean archive -scheme siebel -configuration Release -archivePath <PROJECT_ROOT>/siebel/ios/deploy/iOSDebug/Destination_Root/Siebel.xcarchive -workspace siebel.xcworkspace DEVELOPMENT_TEAM=’<value>’ PROVISIONING_PROFILE=’<value>’
Example:xcodebuild clean archive -scheme siebel -configuration Release -archivePath <PROJECT_ROOT>/siebel/ios/deploy/iOSDebug/Destination_Root/Siebel.xcarchive -workspace siebel.xcworkspace DEVELOPMENT_TEAM='VYAKS7W7VC' PROVISIONING_PROFILE='Oracle ENT2' CODE_SIGN_IDENTITY='iPhone Distribution: Oracle Corporation (Ent 2)'
-
xcodebuild -exportArchive -archivePath<PROJECT_ROOT>/siebel/ios/deploy/iOSDebug/Destination_Root/Siebel.xcarchive -exportPath Siebel.ipa -exportOptionsPlist iosExportOptions.plist -configuration Release
To deploy on IOS simulator
In terminal, execute command npx react-native run-ios
from
<PROJECT_ROOT>\RNMobile\siebel
.
Preparation of APK file
Navigate to and open file
<PROJECT_ROOT>\RNMobile\siebel\android\app\build.gradle
.
Search for defaultConfig section and replace Release_Version with appropriate build label.
On WIN laptop
-
Locate
local.properties
file under<PROJECT_ROOT>\RNMobile\siebel\android
folder and correct path value forsdk.dir
parameter. This is required only for Android.Example:
sdk.dir=C:\\Users\\<Username>\\AppData\\Local\\Android\\Sdk
-
Add following environment variables (value is for your reference, use relevant value in your case) under system variables section.
-
Variable=ANDROID_HOME
Value=\Users\<Username>\AppData\Local\Android\Sdk
-
Variable=ANDROID_SDK_ROOT
Value - \Users\<Username>\AppData\Local\Android\Sdk
-
Variable=JAVA_HOME
Value - C:\Program Files\Java\jdk-11
-
Update Variable=Path with new values
\Users\<Username>\AppData\Local\Android\Sdk\emulator\
\Users\<Username>\AppData\Local\Android\Sdk\platform-tools\
-
-
Search for Windows Powershell in WIN programs and right click on mouse and open with Administration Mode.
-
Navigate to the folder path
<PROJECT_ROOT>\RNMobile\siebel\android
. -
Execute the commands below:
-
./gradlew clean
-
./gradlew build
-
./gradlew assembleRelease
Generates apk file under path
<PROJECT_ROOT>\RNMobile\siebel\android\app\build\outputs\apk\release
.
-
-
To deploy on Android emulator
-
Execute command, cd .. (to move back to root folder i.e. C:\RNMobile\siebel).
-
Execute command
npx react-native run-android
.In case you are facing error - 'react-native' is not recognized as an internal or external command, operable program or batch file. Then, execute command. npm install -g react-native-cli.
On MAC laptop
-
Locate
local.properties
file under<PROJECT_ROOT>\RNMobile\siebel\android
folder and correct path value forsdk.dir
parameter.For example:
sdk.dir=/Users/{mac user}/Library/Android/sdk
. -
In terminal, navigate to
<PROJECT_ROOT>\RNMobile\siebel\android
folder and execute below commands:-
chmod +x gradlew
-
./gradlew clean
-
./gradlew build
-
./gradlew assembleRelease
-
Generates apk file under path
<PROJECT_ROOT>\RNMobile\siebel\android\app\build\outputs\apk\release
To deploy on Android emulator
In terminal, execute command npx react-native run-android
from
<PROJECT_ROOT>/siebel
.