xref: /aosp_15_r20/external/pytorch/.ci/docker/android/build.gradle (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1*da0073e9SAndroid Build Coastguard Workerbuildscript {
2*da0073e9SAndroid Build Coastguard Worker    ext {
3*da0073e9SAndroid Build Coastguard Worker        minSdkVersion = 21
4*da0073e9SAndroid Build Coastguard Worker        targetSdkVersion = 28
5*da0073e9SAndroid Build Coastguard Worker        compileSdkVersion = 28
6*da0073e9SAndroid Build Coastguard Worker        buildToolsVersion = '28.0.3'
7*da0073e9SAndroid Build Coastguard Worker
8*da0073e9SAndroid Build Coastguard Worker        coreVersion = "1.2.0"
9*da0073e9SAndroid Build Coastguard Worker        extJUnitVersion = "1.1.1"
10*da0073e9SAndroid Build Coastguard Worker        runnerVersion = "1.2.0"
11*da0073e9SAndroid Build Coastguard Worker        rulesVersion = "1.2.0"
12*da0073e9SAndroid Build Coastguard Worker        junitVersion = "4.12"
13*da0073e9SAndroid Build Coastguard Worker    }
14*da0073e9SAndroid Build Coastguard Worker
15*da0073e9SAndroid Build Coastguard Worker    repositories {
16*da0073e9SAndroid Build Coastguard Worker        google()
17*da0073e9SAndroid Build Coastguard Worker        mavenLocal()
18*da0073e9SAndroid Build Coastguard Worker        mavenCentral()
19*da0073e9SAndroid Build Coastguard Worker        jcenter()
20*da0073e9SAndroid Build Coastguard Worker    }
21*da0073e9SAndroid Build Coastguard Worker
22*da0073e9SAndroid Build Coastguard Worker    dependencies {
23*da0073e9SAndroid Build Coastguard Worker        classpath 'com.android.tools.build:gradle:4.1.2'
24*da0073e9SAndroid Build Coastguard Worker        classpath 'com.vanniktech:gradle-maven-publish-plugin:0.14.2'
25*da0073e9SAndroid Build Coastguard Worker    }
26*da0073e9SAndroid Build Coastguard Worker}
27*da0073e9SAndroid Build Coastguard Worker
28*da0073e9SAndroid Build Coastguard Workerrepositories {
29*da0073e9SAndroid Build Coastguard Worker    google()
30*da0073e9SAndroid Build Coastguard Worker    jcenter()
31*da0073e9SAndroid Build Coastguard Worker}
32*da0073e9SAndroid Build Coastguard Worker
33*da0073e9SAndroid Build Coastguard Workerapply plugin: 'com.android.library'
34*da0073e9SAndroid Build Coastguard Worker
35*da0073e9SAndroid Build Coastguard Workerandroid {
36*da0073e9SAndroid Build Coastguard Worker    compileSdkVersion rootProject.compileSdkVersion
37*da0073e9SAndroid Build Coastguard Worker    buildToolsVersion rootProject.buildToolsVersion
38*da0073e9SAndroid Build Coastguard Worker
39*da0073e9SAndroid Build Coastguard Worker    defaultConfig {
40*da0073e9SAndroid Build Coastguard Worker        minSdkVersion minSdkVersion
41*da0073e9SAndroid Build Coastguard Worker        targetSdkVersion targetSdkVersion
42*da0073e9SAndroid Build Coastguard Worker    }
43*da0073e9SAndroid Build Coastguard Worker
44*da0073e9SAndroid Build Coastguard Worker    sourceSets {
45*da0073e9SAndroid Build Coastguard Worker        main {
46*da0073e9SAndroid Build Coastguard Worker            manifest.srcFile 'AndroidManifest.xml'
47*da0073e9SAndroid Build Coastguard Worker        }
48*da0073e9SAndroid Build Coastguard Worker    }
49*da0073e9SAndroid Build Coastguard Worker}
50*da0073e9SAndroid Build Coastguard Worker
51*da0073e9SAndroid Build Coastguard Workerdependencies {
52*da0073e9SAndroid Build Coastguard Worker    implementation 'com.android.support:appcompat-v7:28.0.0'
53*da0073e9SAndroid Build Coastguard Worker    implementation 'androidx.appcompat:appcompat:1.0.0'
54*da0073e9SAndroid Build Coastguard Worker    implementation 'com.facebook.fbjni:fbjni-java-only:0.2.2'
55*da0073e9SAndroid Build Coastguard Worker    implementation 'com.google.code.findbugs:jsr305:3.0.1'
56*da0073e9SAndroid Build Coastguard Worker    implementation 'com.facebook.soloader:nativeloader:0.10.5'
57*da0073e9SAndroid Build Coastguard Worker
58*da0073e9SAndroid Build Coastguard Worker    implementation 'junit:junit:' + rootProject.junitVersion
59*da0073e9SAndroid Build Coastguard Worker    implementation 'androidx.test:core:' + rootProject.coreVersion
60*da0073e9SAndroid Build Coastguard Worker
61*da0073e9SAndroid Build Coastguard Worker    implementation 'junit:junit:' + rootProject.junitVersion
62*da0073e9SAndroid Build Coastguard Worker    implementation 'androidx.test:core:' + rootProject.coreVersion
63*da0073e9SAndroid Build Coastguard Worker    implementation 'androidx.test.ext:junit:' + rootProject.extJUnitVersion
64*da0073e9SAndroid Build Coastguard Worker    implementation 'androidx.test:rules:' + rootProject.rulesVersion
65*da0073e9SAndroid Build Coastguard Worker    implementation 'androidx.test:runner:' + rootProject.runnerVersion
66*da0073e9SAndroid Build Coastguard Worker}
67