termux-app

Форк
0
/
build.gradle 
90 строк · 2.9 Кб
1
apply plugin: 'com.android.library'
2
apply plugin: 'maven-publish'
3

4
android {
5
    compileSdkVersion project.properties.compileSdkVersion.toInteger()
6

7
    dependencies {
8
        implementation "androidx.appcompat:appcompat:1.3.1"
9
        implementation "androidx.annotation:annotation:1.3.0"
10
        implementation "androidx.core:core:1.6.0"
11
        implementation "com.google.android.material:material:1.4.0"
12
        implementation "com.google.guava:guava:24.1-jre"
13
        implementation "io.noties.markwon:core:$markwonVersion"
14
        implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
15
        implementation "io.noties.markwon:linkify:$markwonVersion"
16
        implementation "io.noties.markwon:recycler:$markwonVersion"
17
        implementation "org.lsposed.hiddenapibypass:hiddenapibypass:2.0"
18

19
        // Do not increment version higher than 1.0.0-alpha09 since it will break ViewUtils and needs to be looked into
20
        // noinspection GradleDependency
21
        implementation "androidx.window:window:1.0.0-alpha09"
22

23
        // Do not increment version higher than 2.5 or there
24
        // will be runtime exceptions on android < 8
25
        // due to missing classes like java.nio.file.Path.
26
        implementation "commons-io:commons-io:2.5"
27

28
        implementation project(":terminal-view")
29

30
        implementation "com.termux:termux-am-library:v2.0.0"
31
    }
32

33
    defaultConfig {
34
        minSdkVersion project.properties.minSdkVersion.toInteger()
35
        targetSdkVersion project.properties.targetSdkVersion.toInteger()
36
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
37
        externalNativeBuild {
38
            ndkBuild {
39
                cppFlags ''
40
            }
41
        }
42
    }
43

44
    buildTypes {
45
        release {
46
            minifyEnabled false
47
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
48
        }
49
    }
50

51
    compileOptions {
52
        // Flag to enable support for the new language APIs
53
        coreLibraryDesugaringEnabled true
54

55
        sourceCompatibility JavaVersion.VERSION_1_8
56
        targetCompatibility JavaVersion.VERSION_1_8
57
    }
58
    externalNativeBuild {
59
        ndkBuild {
60
            path file('src/main/cpp/Android.mk')
61
        }
62
    }
63
}
64

65
dependencies {
66
    testImplementation "junit:junit:4.13.2"
67
    androidTestImplementation "androidx.test.ext:junit:1.1.3"
68
    androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
69
    coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
70
}
71

72
task sourceJar(type: Jar) {
73
    from android.sourceSets.main.java.srcDirs
74
    classifier "sources"
75
}
76

77
afterEvaluate {
78
    publishing {
79
        publications {
80
            // Creates a Maven publication called "release".
81
            release(MavenPublication) {
82
                from components.release
83
                groupId = 'com.termux'
84
                artifactId = 'termux-shared'
85
                version = '0.118.0'
86
                artifact(sourceJar)
87
            }
88
        }
89
    }
90
}
91

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

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

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

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