hch
4 天以前 2a011653190c36e6fb1f790b3819a1d6b0744aef
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
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
104
105
106
107
108
109
110
111
112
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_ylgame {
            dimension "default"
            // --------------------------------------------------------------
            // manifestPlaceholders.put("JpushAppKey", "de9e26bb35598bd8c602e1d9") //1.6
            // manifestPlaceholders.put("appId", "com.android.yiru.menghtj") //1.6
            // manifestPlaceholders.put("TrackAppID", "ffae98b68ba32b45a6d5fbd1203b9ae1") // 1.6
            // manifestPlaceholders.put("TT_AppName", "menghuantianjiao") // 1.6
            // manifestPlaceholders.put("TT_AppID", "155534") // 1.6
            // --------------------------------------------------------------
            manifestPlaceholders.put("JpushAppKey", "75cabb6bec28ffc681878516") // 2.0
            manifestPlaceholders.put("appId", "com.yiru.menhtj") //2.0
            manifestPlaceholders.put("TrackAppID", "34984be594b93353e6fd41d0b4f3b78d") // 2.0
            manifestPlaceholders.put("TT_AppName", "mhtj_new") // 2.0
            manifestPlaceholders.put("TT_AppID", "162325") // 2.0
            // --------------------------------------------------------------
            manifestPlaceholders.put("TrackChannelID", "_default_")
            manifestPlaceholders.put("TT_Chanel", "_default_")
 
            manifestPlaceholders.put("WANCMS_APPID", "2")
            manifestPlaceholders.put("WANCMS_GAMEID", "2")
            manifestPlaceholders.put("WANCMS_AGENT", "cps001")
            manifestPlaceholders.put("WANCMS_DEBUG", "1")
            manifestPlaceholders.put("WX_APP_ID", "")
            manifestPlaceholders.put("WX_APP_SECRET", "")
        }
    }
}
 
repositories {
    flatDir {
        dirs 'libs'
    }
}
 
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')
    implementation files('libs/tracking1.3.0.jar')
    compileOnly files('libs/unity-classes.jar')
    implementation files('libs/bugly.jar')
    implementation files('libs/buglyagent.jar')
    // ----------------------------------------------------------
    implementation files('libs/xUtils-2.5.5.jar')
    implementation files('libs/open_sdk_r5785.jar')
    implementation files('libs/mta-sdk-1.6.2.jar')
    implementation files('libs/libammsdk.jar')
    implementation files('libs/aoyou_sdk1.0.jar')
    implementation files('libs/android-support-v4.jar')
    dependencies {
        implementation(name: 'applog-release', ext: 'aar')
    }
    implementation files('libs/alipaySdk-20180403.jar')
}
 
task autoCopy_ylgame_Manifest(type: Copy) {
    dependsOn 'assembleGame_ylgameRelease'
    from zipTree("build/outputs/aar/yl_sdk-game_ylgame-release.aar")
    include "AndroidManifest.xml"
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yilegame\\"
}
 
task autoCopy_ylgame(type: Copy) {
    dependsOn autoCopy_ylgame_Manifest
    from "build/outputs/aar/"
    include "yl_sdk-game_ylgame-release.aar"
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yilegame\\libs\\"
}
 
 
task autoCopy_yilexbqy_Manifest(type: Copy) {
    dependsOn 'assembleGame_ylgameRelease'
    from zipTree("build/outputs/aar/yl_sdk-game_ylgame-release.aar")
    include "AndroidManifest.xml"
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yilexbqy\\"
}
 
task autoCopy_yilexbqy(type: Copy) {
    dependsOn autoCopy_yilexbqy_Manifest
    from "build/outputs/aar/"
    include "yl_sdk-game_ylgame-release.aar"
    into "C:\\Unity3D_SDK\\ChannelDiff\\Android\\yilexbqy\\libs\\"
}