Blame view

GameSDKDemo/build.gradle 2.63 KB
d6bc71fcb   赵康   add the project o...
1
  apply plugin: 'com.android.application'
f97711df6   赵康   the demo for sdk ...
2
3
4
  /*The config for internal testing,you could ignore it
  * gump内部测试使用,你可以自行配置,或者直接删除这部分内容
  * --start--
188bc4cf8   赵康   v4.3.3:增加微信登录
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  */
  def keystorePSW = ''
  def keystoreAlias = ''
  def keystoreAliasPSW = ''
  // default keystore file, PLZ config file path in local.properties
  def keyfile = file('s.keystore.temp')
  
  Properties properties = new Properties()
  // local.properties file in the root director
  properties.load(project.file('local.properties').newDataInputStream())
  def keystoreFilepath = properties.getProperty("keystore.path")
  
  if (keystoreFilepath) {
      keystorePSW = properties.getProperty("keystore.password")
      keystoreAlias = properties.getProperty("keystore.alias")
      keystoreAliasPSW = properties.getProperty("keystore.key_passwd")
      keyfile = file(keystoreFilepath)
  }
  /*
f97711df6   赵康   the demo for sdk ...
24
25
26
   * The config for internal testing,you could ignore it
   * gump内部测试使用,你可以自行配置,或者直接删除这部分内容
   * --end--
188bc4cf8   赵康   v4.3.3:增加微信登录
27
   */
43932caac   赵康   update for UI,add...
28
  repositories {
f97711df6   赵康   the demo for sdk ...
29
      maven {
c4a5d1b80   赵康   update to version...
30
          url "http://117.50.8.198:8081/nexus/content/repositories/sdk"
d6bc71fcb   赵康   add the project o...
31
      }
c4a5d1b80   赵康   update to version...
32
33
      jcenter()
      google()
d6bc71fcb   赵康   add the project o...
34
35
36
  }
  
  android {
6a217e5ca   赵康   version4.5.0
37
      compileSdkVersion 26
f97711df6   赵康   the demo for sdk ...
38
      buildToolsVersion '28.0.3'
d6bc71fcb   赵康   add the project o...
39

188bc4cf8   赵康   v4.3.3:增加微信登录
40
41
42
43
44
45
46
47
      signingConfigs {
          release {
              storeFile keyfile
              storePassword keystorePSW
              keyPassword keystoreAliasPSW
              keyAlias keystoreAlias
          }
      }
d6bc71fcb   赵康   add the project o...
48
      defaultConfig {
c4a5d1b80   赵康   update to version...
49
          minSdkVersion 14
4a6edc661   赵康   SDK v4.7.0:增加支付弹窗...
50
          targetSdkVersion 27
f97711df6   赵康   the demo for sdk ...
51
52
          versionCode 6
          versionName "1.4"
7a5aadf06   赵康   v4.1.5:新增运营接口
53
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
188bc4cf8   赵康   v4.3.3:增加微信登录
54
          signingConfig signingConfigs.release
d6bc71fcb   赵康   add the project o...
55
      }
d6bc71fcb   赵康   add the project o...
56
57
58
59
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
188bc4cf8   赵康   v4.3.3:增加微信登录
60
61
62
63
              zipAlignEnabled true
          }
          debug {
              signingConfig signingConfigs.release
d6bc71fcb   赵康   add the project o...
64
65
          }
      }
43932caac   赵康   update for UI,add...
66
      lintOptions {
d6bc71fcb   赵康   add the project o...
67
68
          abortOnError false
      }
188bc4cf8   赵康   v4.3.3:增加微信登录
69

4a6edc661   赵康   SDK v4.7.0:增加支付弹窗...
70
71
72
73
      applicationVariants.all {
          variant ->
              variant.outputs.all {
                  outputFileName = "GameSDKDemo-" + variant.name + defaultConfig.versionName + ".apk"
f97711df6   赵康   the demo for sdk ...
74
75
              }
      }
d6bc71fcb   赵康   add the project o...
76
77
78
  }
  
  dependencies {
c4a5d1b80   赵康   update to version...
79
      implementation fileTree(include: ['*.jar'], dir: 'libs')
4a6edc661   赵康   SDK v4.7.0:增加支付弹窗...
80
      implementation 'com.android.support:support-v4:26.1.0'
c4a5d1b80   赵康   update to version...
81
      testImplementation 'junit:junit:4.12'
6a217e5ca   赵康   version4.5.0
82
      implementation 'com.android.support:appcompat-v7:26.1.0'
4a6edc661   赵康   SDK v4.7.0:增加支付弹窗...
83
84
85
86
87
      implementation 'com.android.support:design:26.1.0'
      implementation project(':GameSDK')
  //    implementation project(':IAP5Helper')
  //    implementation 'com.gumptech.sdk:GameSDK:4.6.5'
  //    implementation 'com.gumptech.sdk:SamsungIAP:5.1.1'
d6bc71fcb   赵康   add the project o...
88
  }