Skip to content

Commit 4c80695

Browse files
author
hegj
committed
Initial commit
0 parents  commit 4c80695

File tree

333 files changed

+49748
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

333 files changed

+49748
-0
lines changed

.github/ISSUE_TEMPLATE.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
## Look at here
2+
3+
- → Did you conform to the [Rules](https://github.com/JessYanCoding/MVPArms/issues/150)?
4+
- → Did you read the [Wiki](https://github.com/JessYanCoding/MVPArms/wiki) **Carefully**?
5+
- → Did you search in Google?
6+
- → Did you search in openned&closed Issues?
7+
-**Receive only bugs and suggestions**
8+
9+
### Environment
10+
11+
- [x] MVPArms Version: <!-- like: v2.3.1 -->
12+
- [x] AndroidStudio Version: <!-- like: v3.0.0 -->
13+
- [x] Gradle Plugin Version: <!-- like: v3.0.0 -->
14+
- [x] Target Android Version: <!-- like: Android 5.0 -->
15+
- [x] Device Model: <!-- like: Nexus 6 -->
16+
17+
18+
### Bug Description:
19+
<!-- 不接受框架之外的任何问题, 比如说 Retrofit 怎么使用, 不接受基础的问题以及 Google 或者百度能搜索到的问题, 比如说 Gradle 怎么下载不了三方库, 不接受已经回答过的 issues, 比如说 DaggerAppComponent, DaggerUserComponent 文件怎么不存在, 提问前最好先看下 https://github.com/JessYanCoding/MVPArms/issues/150, 当发现此 issues 不符合要求, 会在未被告知的情况下直接被 close!-->
20+
21+
22+
### Related Code:
23+
```java
24+
25+
26+
```
27+
28+
### Bug Log:
29+
```log
30+
31+
32+
```
33+
34+
### Others:

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
5+
# Files for the ART/Dalvik VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# Generated files
12+
bin/
13+
gen/
14+
out/
15+
16+
# Gradle files
17+
.gradle/
18+
build/
19+
20+
# Local configuration file (sdk path, etc)
21+
local.properties
22+
23+
# Proguard folder generated by Eclipse
24+
proguard/
25+
26+
# Log Files
27+
*.log
28+
29+
# Android Studio Navigation editor temp files
30+
.navigation/
31+
32+
# Android Studio captures folder
33+
captures/
34+
35+
# Intellij
36+
*.iml
37+
.idea
38+
39+
# Keystore files
40+
*.jks
41+
42+
# MacOS
43+
.DS_Store

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-kapt'
4+
apply plugin: 'kotlin-android-extensions'
5+
6+
android {
7+
compileSdkVersion rootProject.ext.android["compileSdkVersion"]
8+
buildToolsVersion rootProject.ext.android["buildToolsVersion"]
9+
useLibrary 'org.apache.http.legacy'
10+
11+
compileOptions {
12+
targetCompatibility JavaVersion.VERSION_1_8
13+
sourceCompatibility JavaVersion.VERSION_1_8
14+
}
15+
16+
defaultConfig {
17+
multiDexEnabled true
18+
applicationId "me.hegj.wandroid"
19+
minSdkVersion rootProject.ext.android["minSdkVersion"]
20+
targetSdkVersion rootProject.ext.android["targetSdkVersion"]
21+
versionCode rootProject.ext.android["versionCode"]
22+
versionName rootProject.ext.android["versionName"]
23+
testInstrumentationRunner rootProject.ext.dependencies["androidJUnitRunner"]
24+
ndk {
25+
// 设置支持的SO库架构
26+
abiFilters 'armeabi-v7a'
27+
}
28+
}
29+
30+
signingConfigs {
31+
def alias = "wandroid"
32+
def password = "password"
33+
def filePath = "wandroid.jks"
34+
35+
debug {
36+
keyAlias alias
37+
keyPassword password
38+
storeFile file(filePath)
39+
storePassword(password)
40+
}
41+
release {
42+
keyAlias alias
43+
keyPassword password
44+
storeFile file(filePath)
45+
storePassword(password)
46+
}
47+
}
48+
49+
buildTypes {
50+
debug {
51+
buildConfigField "boolean", "LOG_DEBUG", "true"
52+
buildConfigField "boolean", "USE_CANARY", "false"
53+
minifyEnabled false
54+
shrinkResources false
55+
zipAlignEnabled false
56+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
57+
}
58+
59+
release {
60+
buildConfigField "boolean", "LOG_DEBUG", "false"
61+
buildConfigField "boolean", "USE_CANARY", "false"
62+
minifyEnabled true//开启混淆
63+
shrinkResources true
64+
zipAlignEnabled true//去除无用资源
65+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
66+
}
67+
}
68+
69+
lintOptions {
70+
disable 'InvalidPackage'
71+
disable "ResourceType"
72+
abortOnError false
73+
}
74+
dexOptions {
75+
javaMaxHeapSize "4g"
76+
jumboMode = true
77+
preDexLibraries = false
78+
additionalParameters = [
79+
'--multi-dex',//多分包
80+
'--set-max-idx-number=60000'//每个包内方法数上限
81+
]
82+
}
83+
}
84+
85+
dependencies {
86+
implementation fileTree(include: ['*.jar'], dir: 'libs')
87+
//androidX基础库
88+
implementation "androidx.appcompat:appcompat:1.1.0-rc01"
89+
implementation 'com.google.android.material:material:1.1.0-alpha09'
90+
implementation "androidx.constraintlayout:constraintlayout:1.1.3"
91+
implementation "androidx.preference:preference:1.1.0-rc01"
92+
implementation "androidx.cardview:cardview:1.0.0"
93+
//dagger
94+
annotationProcessor rootProject.ext.dependencies["dagger2-compiler"]
95+
kapt rootProject.ext.dependencies["dagger2-compiler"]
96+
//黄油刀
97+
implementation "com.jakewharton:butterknife:10.0.0"
98+
kapt "com.jakewharton:butterknife-compiler:10.0.0"
99+
//test
100+
testImplementation rootProject.ext.dependencies["junit"]
101+
debugImplementation rootProject.ext.dependencies["canary-debug"]
102+
releaseImplementation rootProject.ext.dependencies["canary-release"]
103+
testImplementation rootProject.ext.dependencies["canary-release"]
104+
//kotlin
105+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
106+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0"
107+
//项目用到的库大部分封装在里面 具体在 config.gradle
108+
implementation rootProject.ext.customLibs
109+
}
110+
repositories {
111+
mavenCentral()
112+
}

0 commit comments

Comments
 (0)