Skip to content

Commit 166e897

Browse files
authored
Fix android CI build ( migrate to maven ) (#942)
1 parent 728b656 commit 166e897

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

lib/android_build/build.gradle

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
ext {
22
debugJniDebuggable = true
33
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
4-
54
buildscript {
65
repositories {
7-
google()
6+
google() // to fetch com.android.tools.build:gradle
7+
mavenCentral()
8+
maven { url 'https://maven.google.com' }
89
jcenter()
9-
10+
maven { url "https://jitpack.io" }
11+
maven { url "https://jcenter.bintray.com" }
12+
mavenCentral()
1013
}
1114
dependencies {
1215
classpath 'com.android.tools.build:gradle:4.0.1'
@@ -15,11 +18,15 @@ buildscript {
1518
// in the individual module build.gradle files
1619
}
1720
}
18-
1921
allprojects {
2022
repositories {
21-
google()
22-
jcenter()
23+
google() // to fetch com.android.tools.build:gradle
24+
mavenCentral()
25+
maven { url 'https://maven.google.com' }
26+
jcenter()
27+
maven { url "https://jitpack.io" }
28+
maven { url "https://jcenter.bintray.com" }
29+
mavenCentral()
2330
}
2431
}
2532

lib/android_build/testandlog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
2-
./gradlew app:connectedDebugAndroidTest
2+
./gradlew app:connectedDebugAndroidTest --refresh-dependencies
33
RC=$?
44
adb logcat -t 2000 MAE:D '*:E' > ./logcat.txt
55
exit $RC

lib/android_build/testandlog.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
call .\gradlew.bat app:connectedDebugAndroidTest --refresh-dependencies
2+
adb.exe logcat -t 2000 MAE:D '*:E' > logcat.txt

0 commit comments

Comments
 (0)