hch
3 天以前 aaa822b7f20f04d9ae00fff5efa6c2ec7e2cd83c
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
apply plugin: 'com.android.library'
 
android {
 
    compileSdkVersion 26
 
    defaultConfig {
        //applicationId "com.secondworld.univeralsdk"
        minSdkVersion 18
        targetSdkVersion 26
        versionCode 1
        versionName "1.1.0"
    }
 
    buildTypes {
        release {
            //混淆
            minifyEnabled true
            //对齐
            zipAlignEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
 
        }
    }
 
    flavorDimensions "default"
    productFlavors {
        game_jisugame {
            dimension "default"
            manifestPlaceholders.put("appId", "com.lingleigame.shaonianqixiachuan")
            manifestPlaceholders.put("JpushAppKey", "803d5cb73efe51a59968bf52")
            manifestPlaceholders.put("LL_APPID", "1073")
//            manifestPlaceholders.put("Mr_GAME_ID", "_559")
        }
    }
}
 
dependencies {
    implementation files('libs/jcore-android-1.2.1.jar')
    implementation files('libs/jpush-android-3.1.3.jar')
    implementation files('libs/gson.jar')
    implementation files('libs/okhttp.jar')
    implementation files('libs/okio.jar')
    compileOnly files('libs/unity-classes.jar')
    implementation files('libs/bugly.jar')
    implementation files('libs/buglyagent.jar')
    implementation files('libs/lingleisdk-3.0.1.jar')
}
 
task autoCopy_jisugame_Manifest(type: Copy) {
    dependsOn 'assembleGame_jisugameRelease'
    from zipTree("build/outputs/aar/js_sdk-game_jisugame-release.aar")
    include "AndroidManifest.xml"
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\jisugame\\"
}
 
task autoCopy_jisugame(type: Copy) {
    dependsOn autoCopy_jisugame_Manifest
    from "build/outputs/aar/"
    include "js_sdk-game_jisugame-release.aar"
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\jisugame\\libs\\"
}