// 添加插件 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 { compileSdkVersion 28 lintOptions { disable 'InvalidPackage' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "cn.zhios.zhiying_base_widget_example" minSdkVersion 19 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } 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 } } } flutter { source '../..' } dependencies { testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1' } // 注册SecVerify的相关信息 //MobSDK { //// appKey "2ed488d929488" //// appSecret "53d4a16298d283828f2444cdd6d6548a" // //手机验证登录 // SecVerify {} // // //短信 // SMSSDK {} // // //调用MobPush,推送 //// MobPush { //// //设置角标开关(不需要可不设置) ////// badge true //// //集成其他推送通道(可选) //// devInfo { //// //华为推送配置信息 //// HUAWEI { //// appId "${HUAWEI_PUSH_ID}" //// } //// //魅族推送配置信息 //// MEIZU { //// appId "${MEIZHU_PUSH_APPID}" //// appKey "${MEIZHU_PUSH_APPKEY}" //// } //// //小米推送配置信息 //// XIAOMI { //// appId "${XIAOMI_PUSH_APPID}" //// appKey "${XIAOMI_PUSH_APPKEY}" //// } //// //FCM推送通道配置 ////// FCM { //// //设置默认推送通知显示图标 ////// iconRes "@mipmap/ic_launcher" ////// } //// //OPPO推送配置信息 //// OPPO { //// appKey "${OPPO_PUSH_APPKEY}" //// appSecret "${OPPO_PUSH_APPSECRET}" //// } //// //VIVO推送配置信息 //// VIVO { //// appId "${VIVO_PUSH_APPID}" //// appKey "${VIVO_PUSH_APPKEY}" //// } //// } //// } // // //分享 // ShareSDK { // loopShare true // devInfo { // SinaWeibo { // enable true // } // Wechat { //// appId "${Wechat_appid}" //// appSecret "${Wechat_appSecret}" // enable true // withShareTicket true // bypassApproval false // } // QQ { // enable true // } // WechatMoments { // enable true // } // WechatFavorite { // enable true // } // QZone { // enable true // } // } // } // // //网页打开app,接受邀请码 // MobLink { //// uriScheme "${uri_Scheme}" //// appLinkHost "${app_LinkHost}" // } //}