mirror of https://github.com/termux/termux-app
63 lines
1.6 KiB
Groovy
63 lines
1.6 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'maven-publish'
|
|
|
|
android {
|
|
compileSdkVersion project.properties.compileSdkVersion.toInteger()
|
|
|
|
dependencies {
|
|
implementation "androidx.annotation:annotation:1.1.0"
|
|
api project(":terminal-emulator")
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdkVersion project.properties.minSdkVersion.toInteger()
|
|
targetSdkVersion project.properties.targetSdkVersion.toInteger()
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'junit:junit:4.13.2'
|
|
}
|
|
|
|
task sourceJar(type: Jar) {
|
|
from android.sourceSets.main.java.srcDirs
|
|
classifier "sources"
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
bar(MavenPublication) {
|
|
groupId 'com.termux'
|
|
artifactId 'terminal-view'
|
|
version "0.114"
|
|
artifact(sourceJar)
|
|
artifact("$buildDir/outputs/aar/terminal-view-release.aar")
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/termux/termux-app")
|
|
|
|
credentials {
|
|
username = System.getenv("GH_USERNAME")
|
|
password = System.getenv("GH_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
}
|