1234567891011121314151617181920212223242526272829303132333435 |
- 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
- defaultConfig {
- applicationId "me.yoqi.calculator"
- minSdkVersion 16
- targetSdkVersion 33
- versionCode gitVersion
- versionName version
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- minifyEnabled true
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
-
- }
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'androidx.appcompat:appcompat:1.5.0'
- implementation 'com.google.android.material:material:1.6.1'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
- testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
- }
|