You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TermApp/mpres/build.gradle

73 lines
2.1 KiB
Groovy

plugins {
id 'com.android.application'
}
def AppMajorVersion = 1
def AppMinorVersion = 0
def AppBuildNumber = 14
def ConfigProjectOwner = "NX_2024"
def AppVersionName = AppMajorVersion + "." + AppMinorVersion + "." + AppBuildNumber
def AppVersionCode = AppMajorVersion * 100000 + AppMinorVersion * 1000 + AppBuildNumber
android {
signingConfigs {
debug {
storeFile file('../sign.jks')
storePassword 'XyMpApp'
keyAlias 'xymp'
keyPassword 'XyMpApp'
}
}
namespace 'com.xypower.mpres'
compileSdk 33
defaultConfig {
applicationId "com.xypower.mpres"
minSdk 28
//noinspection ExpiredTargetSdkVersion
targetSdk 28
versionCode AppVersionCode
versionName AppVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
if (outputFileName.endsWith('.apk')) {
def fileName = "MpRes_v${defaultConfig.versionName}_${ConfigProjectOwner}_${new Date(System.currentTimeMillis()).format("yyyyMMdd")}.apk"
outputFileName = fileName
}
}
}
}
dependencies {
implementation 'androidx.core:core:1.6.0'
implementation 'androidx.activity:activity:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
// implementation 'androidx.activity:activity:1.8.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation project(':common')
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation project(path: ':common')
implementation files('../app/libs/devapi.aar')
}