12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- apply plugin: 'com.android.application'
- def cmd = 'git rev-list HEAD --first-parent --count'
- def gitVersion = cmd.execute().text.trim().toInteger()
- def cmd2 = 'git describe --tags'
- def version = cmd2.execute().text.trim()
- android {
- compileSdkVersion 33
- signingConfigs {
- release {
- storeFile file('Calculator.jks')
- storePassword 'hrZSsDXk'
- keyAlias 'key0'
- keyPassword 'hrZSsDXk'
- }
- }
- defaultConfig {
- applicationId "me.yoqi.calculator"
- minSdkVersion 21
- targetSdkVersion 33
- versionCode gitVersion
- versionName version
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- minifyEnabled true
- shrinkResources true
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.appcompat:appcompat:1.6.1'
- implementation 'com.google.android.material:material:1.9.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test.ext:junit:1.1.5'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
- }
|