hch
5 天以前 e8d63e91d80cc59d7947ad026149c2b752ce9364
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
42
43
44
45
46
47
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
apply plugin: 'com.android.library'
//**APPLY_PLUGINS**
apply from: 'deps.gradle'
 
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation('androidx.appcompat:appcompat:1.0.0') {
        force = true
    }
 
    //sdk所需依赖
    implementation 'androidx.recyclerview:recyclerview:1.2.1' 
    implementation 'com.squareup.okhttp3:logging-interceptor:3.12.0'
    //firebase
    implementation(platform("com.google.firebase:firebase-bom:32.2.2"))
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-auth'
    // google
    implementation 'com.google.android.gms:play-services-auth:20.6.0'
    // facebook
    implementation 'com.facebook.android:facebook-login:16.2.0'
    implementation 'androidx.activity:activity-compose:1.3.1'
    // google 支付
    implementation 'com.android.billingclient:billing:6.0.1'
    implementation 'androidx.fragment:fragment:1.3.2'
    // adjust (V1.0.2新增)
    implementation 'com.adjust.sdk:adjust-android:4.33.5'
    implementation 'com.android.installreferrer:installreferrer:2.2'
    implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
    implementation 'com.google.android.gms:play-services-appset:16.0.2'
**DEPS**}
 
android {
    compileSdkVersion **APIVERSION**
    buildToolsVersion '28.0.0'
 
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    
    packagingOptions {exclude 'META-INF/rxjava.properties'}
    
    //signingConfigs 必须在defaultConfig前面
    signingConfigs {
        release {
            v1SigningEnabled = true
            v2SigningEnabled = false
        }
    }
 
    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
        ndk {
            abiFilters **ABIFILTERS**
        }
        versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    }
 
    lintOptions {
        abortOnError false
        checkReleaseBuilds false
    }
 
    aaptOptions {
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
    }**PACKAGING_OPTIONS**
}**REPOSITORIES****SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**