a/app/build.gradle | b/app/build.gradle | ||
---|---|---|---|
1 | apply plugin: 'com.android.application' |
1 | apply plugin: 'com.android.application' |
2 | 2 | ||
3 | def date = new Date() |
||
4 | def formattedDate = date.format('yyyyMMdd') |
||
5 | def vcode = formattedDate.toInteger() |
||
6 | def vname = formattedDate.toString() |
||
7 | |||
3 | android { |
8 | android { |
4 | compileSdkVersion 29 |
9 | compileSdkVersion 29 |
5 | buildToolsVersion "29.0.2" |
10 | buildToolsVersion "29.0.2" |
6 | defaultConfig { |
11 | defaultConfig { |
7 | applicationId "com.codesys.forge" |
12 | applicationId "com.codesys.forge" |
8 | minSdkVersion var |
13 | minSdkVersion var |
9 | targetSdkVersion 29 |
14 | targetSdkVersion 29 |
10 | versionCode 1 |
15 | versionCode vcode |
11 | versionName "1.0" |
16 | versionName vname |
12 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
17 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
13 | } |
18 | } |
14 | buildTypes { |
19 | buildTypes { |
15 | release { |
20 | release { |
16 | minifyEnabled false |
21 | minifyEnabled false |
... |
... |
||
29 | implementation 'androidx.cardview:cardview:1.0.0' |
34 | implementation 'androidx.cardview:cardview:1.0.0' |
30 | implementation 'com.google.android.material:material:1.0.0' |
35 | implementation 'com.google.android.material:material:1.0.0' |
31 | } |
36 | } |