Blame view

build.gradle 3.07 KB
96b488c3   杜方   畅游通核销app: 1.提交项目配置文件
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
29
30
31
32
  //apply plugin: 'android'
  apply plugin: 'com.android.application'
  buildscript {
      repositories {
          mavenCentral()
          maven {
              url 'https://maven.aliyun.com/repository/google/'
  //        url 'https://maven.google.com/'
  //        name 'Google'
          }
          maven {
              url 'https://maven.aliyun.com/repository/jcenter/'
          }
  //        maven {
  //            url 'https://maven.google.com/'
  //            name 'Google'
  //        }
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:3.4.0'
      }
  }
  
  dependencies {
      implementation files('libs/android-support-v4.jar')
      implementation files('libs/bcprov-jdk16-1.45.jar')
      implementation files('libs/dom4j-1.6.1.jar')
      implementation files('libs/fastjson-1.2.3.jar')
      implementation files('libs/sunjce_provider.jar')
      implementation files('libs/zbar.jar')
      implementation files('libs/zxing.jar')
      implementation files('libs/gson-2.6.2.jar')
d77aad46   杜方   畅游通核销app: 1.适配55...
33
      implementation files('libs\\zypos1.8.jar')
c0c53083   杜方   畅游通核销app: 1.增加本地写入日志
34
35
      implementation files('libs\\android-logging-log4j-1.0.3.jar')
      implementation files('libs\\log4j-1.2.17.jar')
96b488c3   杜方   畅游通核销app: 1.提交项目配置文件
36
37
38
39
40
41
42
      compileOnly files('external_libs/classes_2.1.11_20160907.jar')
      compileOnly files('external_libs/bw_odm_20160526.jar')
      implementation files('libs/bw_pos_sdk2.0.18.jar')
  }
  
  android {
      compileSdkVersion 24
d77aad46   杜方   畅游通核销app: 1.适配55...
43
44
45
46
47
      defaultConfig {
          ndk {
              abiFilters "armeabi-v7a"//可以适当补填其他
          }
      }
96b488c3   杜方   畅游通核销app: 1.提交项目配置文件
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
  
      buildTypes {
          release {
              //在这里添加:
              lintOptions {
                  checkReleaseBuilds false
                  abortOnError false
              }
              minifyEnabled false
              shrinkResources false//去掉不用资源
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  
      sourceSets {
          main {
              manifest.srcFile 'AndroidManifest.xml'
              java.srcDirs = ['src']
              resources.srcDirs = ['src']
              aidl.srcDirs = ['src']
              renderscript.srcDirs = ['src']
              res.srcDirs = ['res']
              assets.srcDirs = ['assets']
              jniLibs.srcDirs = ['libs']
          }
  
          // Move the tests to tests/java, tests/res, etc...
          // instrumentTest.setRoot('tests')
  
          // Move the build types to build-types/<type>
          // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
          // This moves them out of them default location under src/<type>/... which would
          // conflict with src/ being used by the main source set.
          // Adding new build types or product flavors should be accompanied
          // by a similar customization.
          debug.setRoot('build-types/debug')
          release.setRoot('build-types/release')
      }
      defaultConfig {
          minSdkVersion 11
          targetSdkVersion 21
      }
  
  
  }
  
  repositories {
      maven {
          url 'https://maven.aliyun.com/repository/google/'
  //        url 'https://maven.google.com/'
  //        name 'Google'
      }
      maven {
          url 'https://maven.aliyun.com/repository/jcenter/'
      }
  }