Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
100 lines (89 loc) · 3.53 KB

File metadata and controls

100 lines (89 loc) · 3.53 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
apply plugin: 'com.android.application'
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.leon.androidplus"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
//这里指定自动生成的文件为MyEventBusIndex
arguments = [eventBusIndex: 'com.leon.androidplus.MyEventBusIndex']
}
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
//为了解决部分第三方库重复打包了META-INF的问题
packagingOptions{
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
lintOptions {
abortOnError false
}
flavorDimensions "release"
productFlavors {
xiaomi {
dimension "release"
manifestPlaceholders = [CHANNEL_VALUE: "xiaomi"]
}
qh360 {
dimension "release"
manifestPlaceholders = [CHANNEL_VALUE: "qh360"]
}
baidu {
dimension "release"
manifestPlaceholders = [CHANNEL_VALUE: "baidu"]
}
wandoujia {
dimension "release"
manifestPlaceholders = [CHANNEL_VALUE: "wandoujia"]
}
tencent {
dimension "release"
manifestPlaceholders = [CHANNEL_VALUE: "tencent"]
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//Support Library
implementation "com.android.support:appcompat-v7:$supportLibraryVersion"
implementation "com.android.support:design:$supportLibraryVersion"
implementation "com.android.support:cardview-v7:$supportLibraryVersion"
//Test Library
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "com.android.support.test:runner:$runnerVersion"
androidTestImplementation "com.android.support.test.espresso:espresso-core:$espressoVersion"
//ButterKnife
implementation "com.jakewharton:butterknife:$butterknifeVersion"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknifeVersion"
//Dagger
implementation "com.google.dagger:dagger:$daggerVersion"
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
//Dagger-Android
implementation "com.google.dagger:dagger-android:$daggerVersion"
implementation "com.google.dagger:dagger-android-support:$daggerVersion"
annotationProcessor "com.google.dagger:dagger-android-processor:$daggerVersion"
// LeanCloud 基础包
implementation "cn.leancloud.android:avoscloud-sdk:v$leanCloudVersion"
// LeanCloud 用户反馈包
implementation "cn.leancloud.android:avoscloud-feedback:v$leanCloudVersion@aar"
//EventBus
implementation "org.greenrobot:eventbus:$eventBusVersion"
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventBusVersion"
//Glide
implementation "com.github.bumptech.glide:glide:$glideVersion"
annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion"
//腾讯Bugly
implementation 'com.tencent.bugly:crashreport_upgrade:latest.release'
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.