Blame view

UnifiedPOSDevicesDemo_V1.026_EN/app/build.gradle 1.34 KB
3ead62fc   杨鑫   优化
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
33
34
35
36
37
38
39
40
41
  apply plugin: 'com.android.application'
  def versionTime = new Date().format("yyyy-MM-dd HH:mm")
  android {
      compileSdkVersion 34
      buildToolsVersion "34.0.0"
      defaultConfig {
          applicationId "pos.com.demo"
          minSdkVersion 21
          targetSdkVersion 34
          versionCode 1026
          versionName "1.026_"+versionTime
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      android.applicationVariants.all {
          variant ->
              variant.outputs.all {
                  outputFileName "POSDemo.apk"
              }
      }
  
      packagingOptions{
          exclude 'META-INF/MANIFEST.MF'
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation fileTree(include: ['*.aar'], dir: 'libs')
      implementation 'androidx.appcompat:appcompat:1.0.2'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      implementation 'com.android.support.constraint:constraint-layout:1.0.2'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.1'
      androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  }