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 2018/11/06 18:48:23 UTC
[cordova-docs] branch master updated: more examples and better
explanation for `build-extras.gradle` (#871)
This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 45ee7b2 more examples and better explanation for `build-extras.gradle` (#871)
45ee7b2 is described below
commit 45ee7b28111928f5d81b9f463f6d273326067770
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Tue Nov 6 19:48:18 2018 +0100
more examples and better explanation for `build-extras.gradle` (#871)
---
www/docs/en/dev/guide/platforms/android/index.md | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
diff --git a/www/docs/en/dev/guide/platforms/android/index.md b/www/docs/en/dev/guide/platforms/android/index.md
index 51fd2c9..62c4871 100644
--- a/www/docs/en/dev/guide/platforms/android/index.md
+++ b/www/docs/en/dev/guide/platforms/android/index.md
@@ -255,9 +255,23 @@ Here's an example:
```groovy
// Example build-extras.gradle
// This file is included at the beginning of `build.gradle`
+
+// special properties (see `build.gradle`) can be set and overwrite the defaults
ext.cdvDebugSigningPropertiesFile = '../../android-debug-keys.properties'
-// When set, this function allows code to run at the end of `build.gradle`
+// normal `build.gradle` configuration can happen
+android {
+ defaultConfig {
+ testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
+ }
+}
+dependencies {
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2', {
+ exclude group: 'com.android.support', module: 'support-annotations'
+ }
+}
+
+// When set, this function `ext.postBuildExtras` allows code to run at the end of `build.gradle`
ext.postBuildExtras = {
android.buildTypes.debug.applicationIdSuffix = '.debug'
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org