Blame view

GameSDKDemo/build.gradle 2.79 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 {
7b52014d1   赵康   version4.7.1
37
      compileSdkVersion 27
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
7b52014d1   赵康   version4.7.1
51
          applicationId "mx.she.rd4"
f97711df6   赵康   the demo for sdk ...
52
53
          versionCode 6
          versionName "1.4"
7a5aadf06   赵康   v4.1.5:新增运营接口
54
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
188bc4cf8   赵康   v4.3.3:增加微信登录
55
          signingConfig signingConfigs.release
d6bc71fcb   赵康   add the project o...
56
      }
d6bc71fcb   赵康   add the project o...
57
58
59
60
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
188bc4cf8   赵康   v4.3.3:增加微信登录
61
62
63
64
              zipAlignEnabled true
          }
          debug {
              signingConfig signingConfigs.release
d6bc71fcb   赵康   add the project o...
65
66
          }
      }
43932caac   赵康   update for UI,add...
67
      lintOptions {
d6bc71fcb   赵康   add the project o...
68
69
          abortOnError false
      }
7b52014d1   赵康   version4.7.1
70
71
72
73
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_7
          targetCompatibility JavaVersion.VERSION_1_7
      }
4a6edc661   赵康   SDK v4.7.0:增加支付弹窗...
74
75
76
77
      applicationVariants.all {
          variant ->
              variant.outputs.all {
                  outputFileName = "GameSDKDemo-" + variant.name + defaultConfig.versionName + ".apk"
f97711df6   赵康   the demo for sdk ...
78
79
              }
      }
d6bc71fcb   赵康   add the project o...
80
81
82
  }
  
  dependencies {
c4a5d1b80   赵康   update to version...
83
      implementation fileTree(include: ['*.jar'], dir: 'libs')
7b52014d1   赵康   version4.7.1
84
      implementation 'com.android.support:support-v4:27.1.1'
c4a5d1b80   赵康   update to version...
85
      testImplementation 'junit:junit:4.12'
7b52014d1   赵康   version4.7.1
86
87
      implementation 'com.android.support:appcompat-v7:27.1.1'
      implementation 'com.android.support:design:27.1.1'
442dd9372   赵康   4.7.0:修改依赖为远程依赖
88
  //    implementation project(':GameSDK')
4a6edc661   赵康   SDK v4.7.0:增加支付弹窗...
89
  //    implementation project(':IAP5Helper')
d4c3b9dce   赵康   v4.7.6
90
      implementation 'com.gumptech.sdk:GameSDK:4.7.6'
4a6edc661   赵康   SDK v4.7.0:增加支付弹窗...
91
  //    implementation 'com.gumptech.sdk:SamsungIAP:5.1.1'
d6bc71fcb   赵康   add the project o...
92
  }