| | |
| | | keyPassword '85521566' |
| | | } |
| | | } |
| | | compileSdk 30 |
| | | compileSdkVersion 31 |
| | | defaultConfig { |
| | | applicationId "com.hdl.photovoltaic" |
| | | minSdk 23 |
| | | targetSdk 30 |
| | | minSdkVersion 23 |
| | | targetSdkVersion 31 |
| | | versionCode 1 |
| | | versionName "1.4.0"//版本规则1.3是产品功能迭代用的,最后一位0是我们修复bug用的 |
| | | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" |
| | |
| | | //noCompress 'foo', 'bar' |
| | | ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~" |
| | | } |
| | | // lintOptions { |
| | | // checkReleaseBuilds false |
| | | // // Or, if you prefer, you can continue to check for errors in release builds, |
| | | // // but continue the build even when errors are found: |
| | | // abortOnError false |
| | | // } |
| | | |
| | | |
| | | /** |
| | | * 打包自动命名 |
| | | */ |
| | | android.applicationVariants.configureEach { variant -> |
| | | variant.outputs.configureEach { |
| | | outputFileName = "photovoltaic_v${versionName}_${generateTime()}_${getEnvironmentVersion(2)}.apk" |
| | | outputFileName = "photovoltaic_v${versionName}_${generateTime()}_${getEnvironmentVersion(4)}.apk" |
| | | } |
| | | } |
| | | |