You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/07/05 12:33:47 UTC
[cordova-paramedic] branch janpio-androidx created (now 8d03c8d)
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a change to branch janpio-androidx
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git.
at 8d03c8d feat: Test with AndroidX support via `cordova-plugin-androidx`
This branch includes the following new commits:
new 8d03c8d feat: Test with AndroidX support via `cordova-plugin-androidx`
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org
[cordova-paramedic] 01/01: feat: Test with AndroidX support via
`cordova-plugin-androidx`
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-androidx
in repository https://gitbox.apache.org/repos/asf/cordova-paramedic.git
commit 8d03c8dddf795da7c8ac5dbe371fdf4c5a5cd196
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Fri Jul 5 14:33:36 2019 +0200
feat: Test with AndroidX support via `cordova-plugin-androidx`
---
.travis.yml | 3 +++
conf/pr/android-9.0-androidx.config.json | 10 ++++++++++
lib/ParamedicApp.js | 4 ++++
lib/ParamedicConfig.js | 11 ++++++++++-
4 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index 5ddd596..f4448e1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -75,6 +75,9 @@ matrix:
- env: PLATFORM=android-9.0
<<: *_android
+ - env: PLATFORM=android-9.0-androidx
+ <<: *_android
+
before_install:
# manually install Node for `language: android`
- if [[ "$PLATFORM" =~ android ]]; then nvm install $TRAVIS_NODE_VERSION; fi
diff --git a/conf/pr/android-9.0-androidx.config.json b/conf/pr/android-9.0-androidx.config.json
new file mode 100644
index 0000000..7653402
--- /dev/null
+++ b/conf/pr/android-9.0-androidx.config.json
@@ -0,0 +1,10 @@
+{
+ "platform": "android",
+ "action": "run",
+ "cleanUpAfterRun": true,
+ "shouldUseSauce": true,
+ "saucePlatformVersion": "9.0",
+ "sauceDeviceName": "Android GoogleAPI Emulator",
+ "verbose": true,
+ "shouldUseAndroidx": true
+}
diff --git a/lib/ParamedicApp.js b/lib/ParamedicApp.js
index 887bb42..e81cec6 100644
--- a/lib/ParamedicApp.js
+++ b/lib/ParamedicApp.js
@@ -86,6 +86,10 @@ class ParamedicApp {
additionalPlugins.push(path.join(__dirname, '..', 'ci-plugin'));
}
+ if (this.config.shouldUseAndroidx()) {
+ additionalPlugins.push('cordova-plugin-androidx');
+ }
+
pluginsManager.installPlugins(additionalPlugins);
}
diff --git a/lib/ParamedicConfig.js b/lib/ParamedicConfig.js
index 474bed8..a211029 100644
--- a/lib/ParamedicConfig.js
+++ b/lib/ParamedicConfig.js
@@ -135,6 +135,14 @@ class ParamedicConfig {
this._config.shouldUseSauce = sus;
}
+ shouldUseAndroidx () {
+ return this._config.shouldUseAndroidx;
+ }
+
+ setshouldUseAndroidx (value) {
+ this._config.shouldUseAndroidx = value;
+ }
+
getBuildName () {
return this._config.buildName || this.getDefaultBuildName();
}
@@ -309,7 +317,8 @@ ParamedicConfig.parseFromArguments = function (argv) {
ci: argv.ci,
target: argv.target,
fileTransferServer: argv.fileTransferServer,
- cli: argv.cli
+ cli: argv.cli,
+ shouldUseAndroidx: !!argv.shouldUseAndroidx || false
});
};
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org