Blame view

android/app/build.gradle 2.66 KB
2a29701f   liangchengyou   feat:提交代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  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 plugin: 'kotlin-android'
  apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
  
  android {
22b7d4da   Key   feat: user, api path
29
      namespace "com.kouyuxingqiu.wow_english"
156efec9   Key   修改包名,配置证书
30
31
      // compileSdkVersion flutter.compileSdkVersion
      compileSdkVersion 33
6d61919a   吴启风   feat:增加过渡页&集成串联游戏
32
      // 暂时没有ndk需求
156efec9   Key   修改包名,配置证书
33
      // ndkVersion flutter.ndkVersion
2a29701f   liangchengyou   feat:提交代码
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  
      kotlinOptions {
          jvmTarget = '1.8'
      }
  
      sourceSets {
          main.java.srcDirs += 'src/main/kotlin'
      }
  
      defaultConfig {
22b7d4da   Key   feat: user, api path
49
          applicationId "com.kouyuxingqiu.wow_english"
156efec9   Key   修改包名,配置证书
50
51
52
53
          //minSdkVersion flutter.minSdkVersion
          //targetSdkVersion flutter.targetSdkVersion
          minSdkVersion 23
          targetSdkVersion 33
2a29701f   liangchengyou   feat:提交代码
54
55
56
57
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
      }
  
156efec9   Key   修改包名,配置证书
58
      signingConfigs {
e62c1a97   吴启风   feat:1、游戏列表页优化;2、...
59
60
61
62
63
64
          debug {
              storeFile file("../certificate/wow_english")
              storePassword "wow_english"
              keyAlias "wow_english"
              keyPassword "wow_english"
          }
156efec9   Key   修改包名,配置证书
65
66
67
68
69
70
71
72
          release {
              storeFile file("../certificate/wow_english")
              storePassword "wow_english"
              keyAlias "wow_english"
              keyPassword "wow_english"
          }
      }
  
2a29701f   liangchengyou   feat:提交代码
73
      buildTypes {
156efec9   Key   修改包名,配置证书
74
75
76
          debug {
              signingConfig signingConfigs.release
          }
2a29701f   liangchengyou   feat:提交代码
77
          release {
156efec9   Key   修改包名,配置证书
78
              signingConfig signingConfigs.release
2a29701f   liangchengyou   feat:提交代码
79
80
81
82
83
84
85
86
87
          }
      }
  }
  
  flutter {
      source '../..'
  }
  
  dependencies {
c44c20f3   吴启风   feat:集成先声sdk andr...
88
89
90
  
      // sing sound
      implementation 'com.singsound.library:evaluating:2.1.9'
cde7505e   吴启风   feat:应用内升级
91
      implementation "com.google.code.gson:gson:2.10"
a38a01d4   吴启风   feat:android原生设置隐...
92
93
94
95
      // 基础依赖包,必须要依赖
      implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2'
      // kotlin扩展(可选)
      implementation 'com.geyifeng.immersionbar:immersionbar-ktx:3.2.2'
cde7505e   吴启风   feat:应用内升级
96
      // coco2d游戏
ca0d27b6   吴启风   feat:会员有效期增加点击跳转&...
97
      implementation 'io.keyss.android.library:steve_game:1.0.1'
2a29701f   liangchengyou   feat:提交代码
98
  }