| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- def localProperties = new Properties()
- def localPropertiesFile = rootProject.file('local.properties')
- if (localPropertiesFile.exists()) {
- localPropertiesFile.withReader('UTF-8') { reader ->
- localProperties.load(reader)
- }
- }
- def flutterRoot = localProperties.getProperty('flutter.sdk')
- if (flutterRoot == null) {
- throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
- }
- def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
- if (flutterVersionCode == null) {
- flutterVersionCode = '1'
- }
- def flutterVersionName = localProperties.getProperty('flutter.versionName')
- if (flutterVersionName == null) {
- flutterVersionName = '1.0'
- }
- apply plugin: 'com.android.application'
- apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
- android {
- signingConfigs {
- debug {
- storeFile file('/Users/Work/fast/key/android_key')
- storePassword 'fast2022'
- keyPassword 'fast2022'
- keyAlias 'key0'
- }
- release {
- storeFile file('/Users/Work/fast/key/android_key')
- storePassword 'fast2022'
- keyPassword 'fast2022'
- keyAlias 'key0'
- }
- }
- compileSdkVersion flutter.compileSdkVersion
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- defaultConfig {
- // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
- applicationId "com.hye.fast"
- minSdkVersion 19//flutter.minSdkVersion
- targetSdkVersion flutter.targetSdkVersion
- versionCode flutterVersionCode.toInteger()
- versionName flutterVersionName
- multiDexEnabled true
- manifestPlaceholders = [
- JPUSH_PKGNAME : applicationId,
- JPUSH_APPKEY : "7cf918ada725a9e9aecc8a17",//值来自开发者平台取得的AppKey
- JPUSH_CHANNEL : "default_developer",
- // //meizu_config_start
- // MEIZU_APPKEY : "MZ-魅族的APPKEY",
- // MEIZU_APPID : "MZ-魅族的APPID",
- // //meizu_config_end
- // //xiaomi_config_start
- // XIAOMI_APPID : "MI-小米的APPID",
- // XIAOMI_APPKEY : "MI-小米的APPKEY",
- // //xiaomi_config_end
- // //oppo_config_start
- // OPPO_APPKEY : "OP-oppo的APPKEY",
- // OPPO_APPID : "OP-oppo的APPID",
- // OPPO_APPSECRET: "OP-oppo的APPSECRET",
- // //oppo_config_end
- // //vivo_config_start
- // VIVO_APPKEY : "vivo的APPKEY",
- // VIVO_APPID : "vivo的APPID",
- // //vivo_config_end
- ]
- }
- buildTypes {
- release {
- // TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
- signingConfig signingConfigs.debug
- }
- }
- }
- dependencies {
- implementation 'com.android.support:multidex:1.0.3'
- }
- flutter {
- source '../..'
- }
|