termux-app
90 строк · 2.9 Кб
1apply plugin: 'com.android.library'
2apply plugin: 'maven-publish'
3
4android {
5compileSdkVersion project.properties.compileSdkVersion.toInteger()
6
7dependencies {
8implementation "androidx.appcompat:appcompat:1.3.1"
9implementation "androidx.annotation:annotation:1.3.0"
10implementation "androidx.core:core:1.6.0"
11implementation "com.google.android.material:material:1.4.0"
12implementation "com.google.guava:guava:24.1-jre"
13implementation "io.noties.markwon:core:$markwonVersion"
14implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
15implementation "io.noties.markwon:linkify:$markwonVersion"
16implementation "io.noties.markwon:recycler:$markwonVersion"
17implementation "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
21implementation "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.
26implementation "commons-io:commons-io:2.5"
27
28implementation project(":terminal-view")
29
30implementation "com.termux:termux-am-library:v2.0.0"
31}
32
33defaultConfig {
34minSdkVersion project.properties.minSdkVersion.toInteger()
35targetSdkVersion project.properties.targetSdkVersion.toInteger()
36testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
37externalNativeBuild {
38ndkBuild {
39cppFlags ''
40}
41}
42}
43
44buildTypes {
45release {
46minifyEnabled false
47proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
48}
49}
50
51compileOptions {
52// Flag to enable support for the new language APIs
53coreLibraryDesugaringEnabled true
54
55sourceCompatibility JavaVersion.VERSION_1_8
56targetCompatibility JavaVersion.VERSION_1_8
57}
58externalNativeBuild {
59ndkBuild {
60path file('src/main/cpp/Android.mk')
61}
62}
63}
64
65dependencies {
66testImplementation "junit:junit:4.13.2"
67androidTestImplementation "androidx.test.ext:junit:1.1.3"
68androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
69coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.1.5"
70}
71
72task sourceJar(type: Jar) {
73from android.sourceSets.main.java.srcDirs
74classifier "sources"
75}
76
77afterEvaluate {
78publishing {
79publications {
80// Creates a Maven publication called "release".
81release(MavenPublication) {
82from components.release
83groupId = 'com.termux'
84artifactId = 'termux-shared'
85version = '0.118.0'
86artifact(sourceJar)
87}
88}
89}
90}
91