pytorch

Форк
0
64 строки · 1.7 Кб
1
apply plugin: 'com.android.library'
2
apply plugin: 'maven'
3

4
android {
5
    compileSdkVersion rootProject.compileSdkVersion
6
    buildToolsVersion rootProject.buildToolsVersion
7

8

9
    defaultConfig {
10
        minSdkVersion rootProject.minSdkVersion
11
        targetSdkVersion rootProject.targetSdkVersion
12
        versionCode 0
13
        versionName "0.1"
14

15
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16
        ndk {
17
            abiFilters ABI_FILTERS.split(",")
18
        }
19
    }
20

21
    buildTypes {
22
        debug {
23
            minifyEnabled false
24
            debuggable true
25
        }
26
        release {
27
            minifyEnabled false
28
        }
29
    }
30

31
    externalNativeBuild {
32
        cmake {
33
            path "CMakeLists.txt"
34
        }
35
    }
36

37
    useLibrary 'android.test.runner'
38
    useLibrary 'android.test.base'
39
    useLibrary 'android.test.mock'
40
}
41

42
dependencies {
43
    implementation project(':pytorch_android')
44

45
    implementation 'com.facebook.soloader:nativeloader:' + rootProject.soLoaderNativeLoaderVersion
46

47
    testImplementation 'junit:junit:' + rootProject.junitVersion
48
    testImplementation 'androidx.test:core:' + rootProject.coreVersion
49

50
    androidTestImplementation 'junit:junit:' + rootProject.junitVersion
51
    androidTestImplementation 'androidx.test:core:' + rootProject.coreVersion
52
    androidTestImplementation 'androidx.test.ext:junit:' + rootProject.extJUnitVersion
53
    androidTestImplementation 'androidx.test:rules:' + rootProject.rulesVersion
54
    androidTestImplementation 'androidx.test:runner:' + rootProject.runnerVersion
55
}
56

57
apply from: rootProject.file('gradle/release.gradle')
58

59
task sourcesJar(type: Jar) {
60
    from android.sourceSets.main.java.srcDirs
61
    classifier = 'sources'
62
}
63

64
artifacts.add('archives', sourcesJar)
65

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.