| | |
| | | ] |
| | | |
| | | android { |
| | | signingConfigs { |
| | | debug { |
| | | storeFile file('../keystore/Untitled') |
| | | keyAlias 'hdlphotovotaic' |
| | | storePassword '85521566' |
| | | keyPassword '85521566' |
| | | } |
| | | release { |
| | | storeFile file('../keystore/Untitled') |
| | | keyAlias 'photovoltaic' |
| | | storePassword '85521566' |
| | | keyPassword '85521566' |
| | | } |
| | | } |
| | | compileSdk 30 |
| | | |
| | | defaultConfig { |
| | |
| | | dirs 'libs' |
| | | } |
| | | } |
| | | /** |
| | | * 打包自动命名 |
| | | */ |
| | | android.applicationVariants.configureEach { variant -> |
| | | variant.outputs.configureEach { |
| | | outputFileName = "photovoltaic_${name}_v${versionName}_${generateTime()}.apk" |
| | | } |
| | | } |
| | | |
| | | buildTypes { |
| | | release { |
| | | minifyEnabled false |
| | | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' |
| | | signingConfig signingConfigs.release |
| | | } |
| | | debug { |
| | | signingConfig signingConfigs.debug |
| | | } |
| | | } |
| | | |
| | |
| | | sourceCompatibility JavaVersion.VERSION_1_8 |
| | | targetCompatibility JavaVersion.VERSION_1_8 |
| | | } |
| | | } |
| | | //构建时间 |
| | | static def generateTime() { |
| | | return new Date().format("yyyyMMddHHmm") |
| | | } |
| | | |
| | | dependencies { |
| | |
| | | implementation project(path: ':third-zxing') |
| | | //Link本地库 |
| | | implementation project(path: ':HDLLinkLocalSdk') |
| | | // implementation project(path: ':HDLLinkPMSdk') |
| | | |
| | | testImplementation 'junit:junit:4.13.2' |
| | | androidTestImplementation 'androidx.test.ext:junit:1.1.3' |
| | | androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' |
| | |
| | | //屏幕适配 |
| | | implementation 'com.github.JessYanCoding:AndroidAutoSize:v1.2.1' |
| | | |
| | | //图片加载库 |
| | | implementation 'com.github.bumptech.glide:glide:4.12.0' |
| | | annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0' |
| | | |
| | | |
| | | |
| | | //********UniSDK必须添加的依赖 start******** |
| | | implementation "androidx.recyclerview:recyclerview:1.0.0" |
| | |
| | | implementation 'androidx.webkit:webkit:1.3.0'//3.6.15版本之后 必须集成,用来支持暗黑模式 |
| | | //********UniSDK必须添加的依赖 end******** |
| | | |
| | | //NanoHTTPD搭建服务器 |
| | | implementation 'org.nanohttpd:nanohttpd:2.3.1' |
| | | |
| | | |
| | | } |