pytorch
64 строки · 1.7 Кб
1apply plugin: 'com.android.library'
2apply plugin: 'maven'
3
4android {
5compileSdkVersion rootProject.compileSdkVersion
6buildToolsVersion rootProject.buildToolsVersion
7
8
9defaultConfig {
10minSdkVersion rootProject.minSdkVersion
11targetSdkVersion rootProject.targetSdkVersion
12versionCode 0
13versionName "0.1"
14
15testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16ndk {
17abiFilters ABI_FILTERS.split(",")
18}
19}
20
21buildTypes {
22debug {
23minifyEnabled false
24debuggable true
25}
26release {
27minifyEnabled false
28}
29}
30
31externalNativeBuild {
32cmake {
33path "CMakeLists.txt"
34}
35}
36
37useLibrary 'android.test.runner'
38useLibrary 'android.test.base'
39useLibrary 'android.test.mock'
40}
41
42dependencies {
43implementation project(':pytorch_android')
44
45implementation 'com.facebook.soloader:nativeloader:' + rootProject.soLoaderNativeLoaderVersion
46
47testImplementation 'junit:junit:' + rootProject.junitVersion
48testImplementation 'androidx.test:core:' + rootProject.coreVersion
49
50androidTestImplementation 'junit:junit:' + rootProject.junitVersion
51androidTestImplementation 'androidx.test:core:' + rootProject.coreVersion
52androidTestImplementation 'androidx.test.ext:junit:' + rootProject.extJUnitVersion
53androidTestImplementation 'androidx.test:rules:' + rootProject.rulesVersion
54androidTestImplementation 'androidx.test:runner:' + rootProject.runnerVersion
55}
56
57apply from: rootProject.file('gradle/release.gradle')
58
59task sourcesJar(type: Jar) {
60from android.sourceSets.main.java.srcDirs
61classifier = 'sources'
62}
63
64artifacts.add('archives', sourcesJar)
65