基础组件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

148 lines
4.1 KiB

  1. // 添加插件
  2. def localProperties = new Properties()
  3. def localPropertiesFile = rootProject.file('local.properties')
  4. if (localPropertiesFile.exists()) {
  5. localPropertiesFile.withReader('UTF-8') { reader ->
  6. localProperties.load(reader)
  7. }
  8. }
  9. def flutterRoot = localProperties.getProperty('flutter.sdk')
  10. if (flutterRoot == null) {
  11. throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
  12. }
  13. def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
  14. if (flutterVersionCode == null) {
  15. flutterVersionCode = '1'
  16. }
  17. def flutterVersionName = localProperties.getProperty('flutter.versionName')
  18. if (flutterVersionName == null) {
  19. flutterVersionName = '1.0'
  20. }
  21. apply plugin: 'com.android.application'
  22. apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
  23. android {
  24. compileSdkVersion 28
  25. lintOptions {
  26. disable 'InvalidPackage'
  27. }
  28. defaultConfig {
  29. // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  30. applicationId "cn.zhios.zhiying_base_widget_example"
  31. minSdkVersion 19
  32. targetSdkVersion 28
  33. versionCode flutterVersionCode.toInteger()
  34. versionName flutterVersionName
  35. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  36. }
  37. buildTypes {
  38. release {
  39. // TODO: Add your own signing config for the release build.
  40. // Signing with the debug keys for now, so `flutter run --release` works.
  41. signingConfig signingConfigs.debug
  42. }
  43. }
  44. }
  45. flutter {
  46. source '../..'
  47. }
  48. dependencies {
  49. testImplementation 'junit:junit:4.12'
  50. androidTestImplementation 'androidx.test:runner:1.1.1'
  51. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  52. }
  53. // 注册SecVerify的相关信息
  54. //MobSDK {
  55. //// appKey "2ed488d929488"
  56. //// appSecret "53d4a16298d283828f2444cdd6d6548a"
  57. // //手机验证登录
  58. // SecVerify {}
  59. //
  60. // //短信
  61. // SMSSDK {}
  62. //
  63. // //调用MobPush,推送
  64. //// MobPush {
  65. //// //设置角标开关(不需要可不设置)
  66. ////// badge true
  67. //// //集成其他推送通道(可选)
  68. //// devInfo {
  69. //// //华为推送配置信息
  70. //// HUAWEI {
  71. //// appId "${HUAWEI_PUSH_ID}"
  72. //// }
  73. //// //魅族推送配置信息
  74. //// MEIZU {
  75. //// appId "${MEIZHU_PUSH_APPID}"
  76. //// appKey "${MEIZHU_PUSH_APPKEY}"
  77. //// }
  78. //// //小米推送配置信息
  79. //// XIAOMI {
  80. //// appId "${XIAOMI_PUSH_APPID}"
  81. //// appKey "${XIAOMI_PUSH_APPKEY}"
  82. //// }
  83. //// //FCM推送通道配置
  84. ////// FCM {
  85. //// //设置默认推送通知显示图标
  86. ////// iconRes "@mipmap/ic_launcher"
  87. ////// }
  88. //// //OPPO推送配置信息
  89. //// OPPO {
  90. //// appKey "${OPPO_PUSH_APPKEY}"
  91. //// appSecret "${OPPO_PUSH_APPSECRET}"
  92. //// }
  93. //// //VIVO推送配置信息
  94. //// VIVO {
  95. //// appId "${VIVO_PUSH_APPID}"
  96. //// appKey "${VIVO_PUSH_APPKEY}"
  97. //// }
  98. //// }
  99. //// }
  100. //
  101. // //分享
  102. // ShareSDK {
  103. // loopShare true
  104. // devInfo {
  105. // SinaWeibo {
  106. // enable true
  107. // }
  108. // Wechat {
  109. //// appId "${Wechat_appid}"
  110. //// appSecret "${Wechat_appSecret}"
  111. // enable true
  112. // withShareTicket true
  113. // bypassApproval false
  114. // }
  115. // QQ {
  116. // enable true
  117. // }
  118. // WechatMoments {
  119. // enable true
  120. // }
  121. // WechatFavorite {
  122. // enable true
  123. // }
  124. // QZone {
  125. // enable true
  126. // }
  127. // }
  128. // }
  129. //
  130. // //网页打开app,接受邀请码
  131. // MobLink {
  132. //// uriScheme "${uri_Scheme}"
  133. //// appLinkHost "${app_LinkHost}"
  134. // }
  135. //}