mirror of https://github.com/termux/termux-app
87 lines
2.8 KiB
Groovy
87 lines
2.8 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'maven-publish'
|
|
|
|
android {
|
|
compileSdkVersion project.properties.compileSdkVersion.toInteger()
|
|
|
|
dependencies {
|
|
implementation "androidx.appcompat:appcompat:1.3.1"
|
|
implementation "androidx.annotation:annotation:1.3.0"
|
|
implementation "androidx.core:core:1.6.0"
|
|
implementation "com.google.android.material:material:1.4.0"
|
|
implementation "com.google.guava:guava:24.1-jre"
|
|
implementation "io.noties.markwon:core:$markwonVersion"
|
|
implementation "io.noties.markwon:ext-strikethrough:$markwonVersion"
|
|
implementation "io.noties.markwon:linkify:$markwonVersion"
|
|
implementation "io.noties.markwon:recycler:$markwonVersion"
|
|
implementation "org.lsposed.hiddenapibypass:hiddenapibypass:2.0"
|
|
|
|
// Do not increment version higher than 1.0.0-alpha09 since it will break ViewUtils and needs to be looked into
|
|
// noinspection GradleDependency
|
|
implementation "androidx.window:window:1.0.0-alpha09"
|
|
|
|
// Do not increment version higher than 2.5 or there
|
|
// will be runtime exceptions on android < 8
|
|
// due to missing classes like java.nio.file.Path.
|
|
implementation "commons-io:commons-io:2.5"
|
|
|
|
implementation project(":terminal-view")
|
|
|
|
implementation 'com.github.termux:termux-am-library:1.0'
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion project.properties.minSdkVersion.toInteger()
|
|
targetSdkVersion project.properties.targetSdkVersion.toInteger()
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
cppFlags ''
|
|
}
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
externalNativeBuild {
|
|
ndkBuild {
|
|
path file('src/main/cpp/Android.mk')
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation "junit:junit:4.13.2"
|
|
androidTestImplementation "androidx.test.ext:junit:1.1.3"
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
|
|
}
|
|
|
|
task sourceJar(type: Jar) {
|
|
from android.sourceSets.main.java.srcDirs
|
|
classifier "sources"
|
|
}
|
|
|
|
afterEvaluate {
|
|
publishing {
|
|
publications {
|
|
// Creates a Maven publication called "release".
|
|
release(MavenPublication) {
|
|
from components.release
|
|
groupId = 'com.termux'
|
|
artifactId = 'termux-shared'
|
|
version = '0.118.0'
|
|
artifact(sourceJar)
|
|
}
|
|
}
|
|
}
|
|
}
|