panlili2024
2024-11-14 b1569b789eef12cf5d4252620ca7e7d2d9c8b93a
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
//打包的
apply plugin: 'com.android.library'
apply plugin: 'com.kezong.fat-aar'
 
android {
    compileSdkVersion rootProject.compileSdkVersion
 
    defaultConfig {
        minSdkVersion rootProject.minSdkVersion
        targetSdkVersion rootProject.targetSdkVersion
        versionCode 119
        versionName "1.1.9"
    }
    buildTypes {
        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
}
 
dependencies {
 
    implementation fileTree(include: ['*.jar'], dir: 'libs')
 
    embed 'com.hdl.hdlhttp:hxhttp:1.0.4'
 
//    api 'androidx.appcompat:appcompat:1.3.1'
//    api 'com.google.android.material:material:1.4.0'
 
    embed 'com.squareup.okhttp3:okhttp:4.9.1'
    embed 'com.squareup.okhttp3:logging-interceptor:4.9.1'
    embed 'com.squareup.okio:okio:2.8.0'
    //retrofit
    embed 'com.squareup.retrofit2:retrofit:2.9.0'
    embed 'com.squareup.retrofit2:converter-scalars:2.9.0'
    embed 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
    embed 'io.reactivex.rxjava3:rxandroid:3.0.0'
    embed 'io.reactivex.rxjava3:rxjava:3.1.1'
    embed 'com.google.code.gson:gson:2.8.8'
 
    embed 'com.trello.rxlifecycle4:rxlifecycle:4.0.2'
    embed 'com.trello.rxlifecycle4:rxlifecycle-android:4.0.2'
    embed 'com.trello.rxlifecycle4:rxlifecycle-android-lifecycle:4.0.2'
 
    embed 'org.reactivestreams:reactive-streams:1.0.3'
 
//    embed(name: 'hxhttp_1.0.4_230201',ext: 'aar')
 
    embed project(path: ':hdl-connect', configuration: 'default')
 
}
 
//打包的
buildscript {
 
    repositories {
        google()
        jcenter()
        maven { url "https://plugins.gradle.org/m2/" }
    }
 
    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.3'
        classpath 'com.kezong:fat-aar:1.2.16'
    }
}
 
allprojects {
    repositories {
        flatDir {
            dirs 'libs'
        }
        google()
        jcenter()
    }
}
 
 
////运行的
//
//apply plugin: 'com.android.application'
//apply from: "../app-common/build_common.gradle"
//apply plugin: 'kotlin-android'
//apply plugin: 'kotlin-android-extensions'
//
////如果有用到kapt添加如下配置
//kapt {
//    useBuildCache = true
//    javacOptions {
//        option("-Xmaxerrs", 500)
//    }
//}
//
//android {
//
//    compileSdkVersion 29
//    buildToolsVersion "29.0.3"
//
//    sourceSets {
//        main {
//            jniLibs.srcDirs = ['libs']
//        }
//    }
//    lintOptions {
//        abortOnError false
//    }
//    defaultConfig {
//        applicationId "com.evoyo.home1111112"
//        minSdkVersion 21
//        //noinspection ExpiredTargetSdkVersion
//        targetSdkVersion 28
//        versionCode 4160
//        versionName "v4.16.0.20201230"
//        ndk {
//            abiFilters "armeabi-v7a", "arm64-v8a"
//        }
//        /*禁止使用java8,如果sdk使用了java8编译,但是应用层使用了java7编译,会导致应用层打包无法通过*/
//        compileOptions {
//            sourceCompatibility JavaVersion.VERSION_1_7
//            targetCompatibility JavaVersion.VERSION_1_7
//        }
//    }
//    //在Android代码块中添加如下配置:(可优化最上图中transformClassDexBuilderForDebug的时间)
//    dexOptions {
//        preDexLibraries true
//        maxProcessCount 8
//    }
//    buildTypes {
//        debug {
//            minifyEnabled false
//            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//        }
//    }
//    productFlavors {
//    }
//}
//
//
//dependencies {
//    /*萤石SDK核心模块,必须*/
////  api project(path: ':ezviz-sdk')
//    api 'com.ezviz.sdk:ezviz-sdk:4.16.1'
//
//    /*视频通话模块,按需使用*/
////    api project(path: ':videotalk')
//    api 'com.ezviz.sdk:videotalk:1.2.0'
//
//    /*视频通话模块,按需使用*/
////    api project(path: ':streamctrl')
//    api 'com.ezviz.sdk:streamctrl:1.2.0'
//
//    /*萤石核心模块的三方依赖*/
////    implementation 'javax.jmdns:jmdns:3.4.1'
//    implementation 'com.google.code.gson:gson:2.8.0'
//    api 'com.squareup.okhttp3:okhttp:3.12.1'
//
//    /*demo的依赖项*/
//    api project(path: ':app-common')
//    implementation fileTree(include: ['*.jar'], dir: 'libs')
//    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
//}
//
////repositories {
////    maven { url 'https://dl.bintray.com/open-ezviz/mobile-sdk'}
////}