@@ -5,6 +5,25 @@ A command line untility to build mobile apps created using WaveMaker product.
55The main goal of wm-cordova-cli is to simplify generation of APK or IPA for WaveMaker developers. ``` wm-cordova-cli ``` combines multiple cordova commands into a single command. First, one has to make sure all the required hardware and software are available and installed. Then execute the command with the appropriate values for arguments.
66
77
8+ ### Cordova versions to use for the build
9+ 1 . Based upon the value of 'phonegap-cli' preference value, versions mentioned in the below table are used by default.
10+
11+ | PHONEGAP-CLI | CORDOVA | CORDOVA-ANDROID | CORDOVA-IOS |
12+ | --| --| --| --|
13+ | cli-9.0.0 | 9.0.0 | 8.0.0 | 5.1.1 |
14+ | cli-8.1.1 | 8.1.1 | 7.1.2 | 4.5.5 |
15+ | cli-8.0.0 | 8.0.0 | 7.0.0 | 4.5.4 |
16+
17+ 2 . In config.xml, the above cordova values can be overridden by setting preferences with the below mentioned names.
18+
19+ wm-cordova<br >
20+ wm-cordova-android<br >
21+ wm-cordova-ios
22+
23+ 3 . Cordova versions can also be mentioned as command line arguments.
24+
25+
26+
827## ANDROID build
928
1029### Requirements
@@ -13,7 +32,7 @@ The main goal of wm-cordova-cli is to simplify generation of APK or IPA for Wave
1332
1433- Latest Android Studio
1534
16- - Node 12 .x ([ https://nodejs.org/en/download / ] ( https://nodejs.org/en/download/ ) )
35+ - Node 10 .x ([ https://nodejs.org/en/blog/release/v10.18.0 / ] ( https://nodejs.org/en/download/ ) )
1736
1837- GIT ([ https://git-scm.com/download/mac ] ( https://git-scm.com/download/mac ) )
1938
@@ -23,7 +42,7 @@ The main goal of wm-cordova-cli is to simplify generation of APK or IPA for Wave
2342
2443- KeyStore file for production release builds
2544
26- - Install wm-cordova-cli (npm install -g [ https://github.com/ wavemaker/wm-cordova-cli] ( https://github.com/wavemaker/wm-cordova-cli ) )
45+ - Install wm-cordova-cli (npm install -g @ wavemaker/wm-cordova-cli )
2746
2847- Make sure JAVA_HOME, ANDROID_SDK and GRADLE_HOME are set in the environment variables and also in PATH.
2948
@@ -41,9 +60,9 @@ wm-cordova build android <src_dir> <dest_dir> [additional_arguments]
4160|   ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ; ** Argument**   ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ; | ** Description** |
4261| --| --|
4362| ** src_dir** | ** DEFAULT:** current working directory.<br > Path to the cordova zip (or) path to the cordova project folder. |
44- | ** dest_dir** | ** DEFAULT :** <src_dir>/../build< br > Path to the directory where all build files are to be kept.|
45- | ** \-\- cordovaVersion** | ** DEFAULT :** 9.0.0< br > Cordova cli version to use|
46- | ** \-\- cordovaAndroidVersion** | ** DEFAULT :** 8.0.0< br > Version of cordova-ios to use|
63+ | ** dest_dir** | ** OPTIONAL :** Path to the directory where all build files are to be kept.|
64+ | ** \-\- cordovaVersion** | ** OPTIONAL :** Cordova cli version to use|
65+ | ** \-\- cordovaAndroidVersion** | ** OPTIONAL :** Version of cordova-ios to use|
4766| ** \-\- aKeyStore** | Absolute path of the key store. If keystore is not given the, android debug is used.|
4867| ** \-\- aStorePassword** | Password to key store|
4968| ** \-\- aKeyAlias** | Alias name of the key|
@@ -74,16 +93,18 @@ wm-cordova build android "/path/to/src" \
7493- MAC machine
7594
7695- Latest XCODE
96+
97+ - CocoaPods ([ https://guides.cocoapods.org/using/getting-started.html#toc_3 ] ( https://guides.cocoapods.org/using/getting-started.html#toc_3 ) )
7798
78- - Node 12 .x ([ https://nodejs.org/en/download / ] ( https://nodejs.org/en/download/ ) )
99+ - Node 10 .x ([ https://nodejs.org/en/blog/release/v10.18.0 / ] ( https://nodejs.org/en/download/ ) )
79100
80101- GIT ([ https://git-scm.com/download/mac ] ( https://git-scm.com/download/mac ) )
81102
82103- Apple developer or distribution P12 certificates
83104
84105- Provisioning profile
85106
86- - Install wm-cordova-cli (npm install -g [ https://github.com/ wavemaker/wm-cordova-cli] ( https://github.com/wavemaker/wm-cordova-cli ) )
107+ - Install wm-cordova-cli (npm install -g @ wavemaker/wm-cordova-cli )
87108
88109
89110
@@ -97,9 +118,9 @@ wm-cordova build ios <src_dir> <dest_dir> [additional_arguments]
97118|   ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ; ** Argument**   ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ;  ; | ** Description** |
98119| --| --|
99120| ** src_dir** | ** DEFAULT:** current working directory.<br > Path to the cordova zip (or) path to the cordova project folder. |
100- | ** dest_dir** | ** DEFAULT :** <src_dir>/../build< br > Path to the directory where all build files are to be kept.|
101- | ** \-\- cordovaVersion** | ** DEFAULT :** 9.0.0< br > Cordova cli version to use|
102- | ** \-\- cordovaIosVersion** | ** DEFAULT :** 5.1.1< br > Version of cordova-ios to use|
121+ | ** dest_dir** | ** OPTIONAL :** Path to the directory where all build files are to be kept.|
122+ | ** \-\- cordovaVersion** | ** OPTIONAL :** Cordova cli version to use|
123+ | ** \-\- cordovaIosVersion** | ** OPTIONAL :** Version of cordova-ios to use|
103124| ** \-\- iCertificate** | Absolute path of P12 certificate location|
104125| ** \-\- iCertificatePassword** | Password to unlock the certificate.|
105126| ** \-\- iProvisioningFile** | Absolute path of provisioning file|
0 commit comments