File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed
templates/android/template Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1760,6 +1760,14 @@ class ProjectXMLParser extends HXProject
1760
1760
config .push (" android.permission" , value );
1761
1761
}
1762
1762
1763
+ case " gradle-maven-repositories" :
1764
+ var repositories = config .getArrayString (" android.gradle-maven-repositories" );
1765
+
1766
+ if (repositories == null || repositories .indexOf (value ) == - 1 )
1767
+ {
1768
+ config .push (" android.gradle-maven-repositories" , value );
1769
+ }
1770
+
1763
1771
case " gradle-version" :
1764
1772
config .set (" android.gradle-version" , value );
1765
1773
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ buildscript {
16
16
allprojects {
17
17
repositories {
18
18
mavenCentral()
19
- google()
19
+ google()::if ANDROID_GRADLE_MAVEN_REPOSITORIES ::::foreach ANDROID_GRADLE_MAVEN_REPOSITORIES ::
20
+ maven { url = uri(" ::__current__::" ) }::end ::::end ::
20
21
}::if ANDROID_GRADLE_BUILD_DIRECTORY ::
21
22
buildDir = " ::ANDROID_GRADLE_BUILD_DIRECTORY::/::APP_FILE::/${ project.name} " ::end ::
22
23
}
Original file line number Diff line number Diff line change @@ -545,6 +545,8 @@ class AndroidPlatform extends PlatformTarget
545
545
Sys .exit (1 );
546
546
}
547
547
548
+ context. ANDROID_GRADLE_MAVEN_REPOSITORIES = project .config .getArrayString (" android.gradle-maven-repositories" , []);
549
+
548
550
if (project .config .exists (" android.gradle-build-directory" ))
549
551
{
550
552
context. ANDROID_GRADLE_BUILD_DIRECTORY = project .config .getString (" android.gradle-build-directory" );
You can’t perform that action at this time.
0 commit comments