Skip to content

Commit ab0a800

Browse files
author
Christopher J. Brody
committed
move imports in generated android/build.gradle (see PR #141)
move the following lines near the beginning: apply plugin: 'com.android.library' apply plugin: 'maven'
1 parent 50205dc commit ab0a800

File tree

24 files changed

+72
-0
lines changed

24 files changed

+72
-0
lines changed

templates/android.js

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ def safeExtGet(prop, fallback) {
1111
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
1212
}
1313
14+
apply plugin: 'com.android.library'
15+
apply plugin: 'maven'
16+
1417
buildscript {
1518
// The Android Gradle plugin is only required when opening the android folder stand-alone.
1619
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/integration/cli/create/view/__snapshots__/cli-create-with-view.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ def safeExtGet(prop, fallback) {
109109
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
110110
}
111111
112+
apply plugin: 'com.android.library'
113+
apply plugin: 'maven'
114+
112115
buildscript {
113116
// The Android Gradle plugin is only required when opening the android folder stand-alone.
114117
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/integration/cli/create/with-defaults/__snapshots__/cli-create-with-defaults.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ def safeExtGet(prop, fallback) {
109109
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
110110
}
111111
112+
apply plugin: 'com.android.library'
113+
apply plugin: 'maven'
114+
112115
buildscript {
113116
// The Android Gradle plugin is only required when opening the android folder stand-alone.
114117
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/view/with-defaults/__snapshots__/create-view-with-defaults.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def safeExtGet(prop, fallback) {
184184
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
185185
}
186186
187+
apply plugin: 'com.android.library'
188+
apply plugin: 'maven'
189+
187190
buildscript {
188191
// The Android Gradle plugin is only required when opening the android folder stand-alone.
189192
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/view/with-example/with-defaults/__snapshots__/create-view-with-example-with-defaults.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ def safeExtGet(prop, fallback) {
189189
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
190190
}
191191
192+
apply plugin: 'com.android.library'
193+
apply plugin: 'maven'
194+
192195
buildscript {
193196
// The Android Gradle plugin is only required when opening the android folder stand-alone.
194197
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/view/with-example/with-options/__snapshots__/create-view-with-example-with-options.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ def safeExtGet(prop, fallback) {
189189
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
190190
}
191191
192+
apply plugin: 'com.android.library'
193+
apply plugin: 'maven'
194+
192195
buildscript {
193196
// The Android Gradle plugin is only required when opening the android folder stand-alone.
194197
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/view/with-options/for-android/__snapshots__/lib-view-android-config-options.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ def safeExtGet(prop, fallback) {
153153
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
154154
}
155155
156+
apply plugin: 'com.android.library'
157+
apply plugin: 'maven'
158+
156159
buildscript {
157160
// The Android Gradle plugin is only required when opening the android folder stand-alone.
158161
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-defaults/__snapshots__/create-with-defaults.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def safeExtGet(prop, fallback) {
184184
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
185185
}
186186
187+
apply plugin: 'com.android.library'
188+
apply plugin: 'maven'
189+
187190
buildscript {
188191
// The Android Gradle plugin is only required when opening the android folder stand-alone.
189192
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-example/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ def safeExtGet(prop, fallback) {
189189
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
190190
}
191191
192+
apply plugin: 'com.android.library'
193+
apply plugin: 'maven'
194+
192195
buildscript {
193196
// The Android Gradle plugin is only required when opening the android folder stand-alone.
194197
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-example/with-missing-package-scripts/__snapshots__/recover-from-missing-package-scripts.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ def safeExtGet(prop, fallback) {
189189
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
190190
}
191191
192+
apply plugin: 'com.android.library'
193+
apply plugin: 'maven'
194+
192195
buildscript {
193196
// The Android Gradle plugin is only required when opening the android folder stand-alone.
194197
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-example/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-null-prefix.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ def safeExtGet(prop, fallback) {
189189
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
190190
}
191191
192+
apply plugin: 'com.android.library'
193+
apply plugin: 'maven'
194+
192195
buildscript {
193196
// The Android Gradle plugin is only required when opening the android folder stand-alone.
194197
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-example/with-options/__snapshots__/create-with-example-with-options.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ def safeExtGet(prop, fallback) {
189189
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
190190
}
191191
192+
apply plugin: 'com.android.library'
193+
apply plugin: 'maven'
194+
192195
buildscript {
193196
// The Android Gradle plugin is only required when opening the android folder stand-alone.
194197
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-name-in-camel-case/__snapshots__/create-with-name-in-camel-case.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def safeExtGet(prop, fallback) {
184184
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
185185
}
186186
187+
apply plugin: 'com.android.library'
188+
apply plugin: 'maven'
189+
187190
buildscript {
188191
// The Android Gradle plugin is only required when opening the android folder stand-alone.
189192
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-options/for-android/__snapshots__/create-with-options-for-android.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ def safeExtGet(prop, fallback) {
153153
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
154154
}
155155
156+
apply plugin: 'com.android.library'
157+
apply plugin: 'maven'
158+
156159
buildscript {
157160
// The Android Gradle plugin is only required when opening the android folder stand-alone.
158161
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-options/platforms-array/__snapshots__/platforms-array.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def safeExtGet(prop, fallback) {
184184
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
185185
}
186186
187+
apply plugin: 'com.android.library'
188+
apply plugin: 'maven'
189+
187190
buildscript {
188191
// The Android Gradle plugin is only required when opening the android folder stand-alone.
189192
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-options/platforms-comma-separated/__snapshots__/platforms-comma-separated.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def safeExtGet(prop, fallback) {
184184
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
185185
}
186186
187+
apply plugin: 'com.android.library'
188+
apply plugin: 'maven'
189+
187190
buildscript {
188191
// The Android Gradle plugin is only required when opening the android folder stand-alone.
189192
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-options/with-custom-module-prefix/__snapshots__/create-with-custom-module-prefix.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def safeExtGet(prop, fallback) {
184184
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
185185
}
186186
187+
apply plugin: 'com.android.library'
188+
apply plugin: 'maven'
189+
187190
buildscript {
188191
// The Android Gradle plugin is only required when opening the android folder stand-alone.
189192
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-injection/create/with-options/with-module-name/__snapshots__/create-with-module-name.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ def safeExtGet(prop, fallback) {
184184
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
185185
}
186186
187+
apply plugin: 'com.android.library'
188+
apply plugin: 'maven'
189+
187190
buildscript {
188191
// The Android Gradle plugin is only required when opening the android folder stand-alone.
189192
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-mocks/cli/command/func/with-options/__snapshots__/cli-command-func-with-options.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ def safeExtGet(prop, fallback) {
188188
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
189189
}
190190
191+
apply plugin: 'com.android.library'
192+
apply plugin: 'maven'
193+
191194
buildscript {
192195
// The Android Gradle plugin is only required when opening the android folder stand-alone.
193196
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-mocks/cli/program/with-defaults/for-android/__snapshots__/cli-program-with-defaults-for-android.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ def safeExtGet(prop, fallback) {
338338
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
339339
}
340340
341+
apply plugin: 'com.android.library'
342+
apply plugin: 'maven'
343+
341344
buildscript {
342345
// The Android Gradle plugin is only required when opening the android folder stand-alone.
343346
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-mocks/lib/create/with-example/with-logging/with-defaults/__snapshots__/create-with-example-with-defaults.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ def safeExtGet(prop, fallback) {
255255
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
256256
}
257257
258+
apply plugin: 'com.android.library'
259+
apply plugin: 'maven'
260+
258261
buildscript {
259262
// The Android Gradle plugin is only required when opening the android folder stand-alone.
260263
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-mocks/lib/create/with-example/with-logging/with-error/__snapshots__/with-yarn-error-logging.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ def safeExtGet(prop, fallback) {
255255
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
256256
}
257257
258+
apply plugin: 'com.android.library'
259+
apply plugin: 'maven'
260+
258261
buildscript {
259262
// The Android Gradle plugin is only required when opening the android folder stand-alone.
260263
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-mocks/lib/create/with-example/with-logging/with-null-options/with-null-prefix/__snapshots__/create-with-example-with-options.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ def safeExtGet(prop, fallback) {
255255
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
256256
}
257257
258+
apply plugin: 'com.android.library'
259+
apply plugin: 'maven'
260+
258261
buildscript {
259262
// The Android Gradle plugin is only required when opening the android folder stand-alone.
260263
// This avoids unnecessary downloads and potential conflicts when the library is included as a

tests/with-mocks/lib/create/with-example/with-logging/with-options/__snapshots__/create-with-example-with-options.test.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ def safeExtGet(prop, fallback) {
249249
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
250250
}
251251
252+
apply plugin: 'com.android.library'
253+
apply plugin: 'maven'
254+
252255
buildscript {
253256
// The Android Gradle plugin is only required when opening the android folder stand-alone.
254257
// This avoids unnecessary downloads and potential conflicts when the library is included as a

0 commit comments

Comments
 (0)