????????????--??????汾????
???????????? ???????[ 2016/4/21 11:31:43 ] ?????????????????? ???ù??? ???????
??????????????????? ??ι???gradle?汾?? ????????????ЩС????.
????????Android????????? ????????? ?????????????? ??????????????? ????????????????????????汾??汾???
????????? Gradle??????????????????????Щ.??
???????
????(1) ??????????????.
????(2) ?????????????汾.
????(3) ???????????в???.
????1. ?????
?????????????? RxJava+Retrofit+Dagger.
????????: ButterKnife??????? Glide/Picasso??????.
???????????(rootProject)????????????????汾.
apply plugin: 'me.tatarka.retrolambda' // Lambda????
apply plugin: 'com.android.application' // Android???
apply plugin: 'com.neenbedankt.android-apt' // ???????
apply plugin: 'com.android.databinding' // ?????
def cfg = rootProject.ext.configuration // ????
def libs = rootProject.ext.libraries // ??
android {
compileSdkVersion cfg.compileVersion
buildToolsVersion cfg.buildToolsVersion
defaultConfig {
applicationId cfg.package
minSdkVersion cfg.minSdk
targetSdkVersion cfg.targetSdk
versionCode cfg.version_code
versionName cfg.version_name
buildConfigField "String"?? "MARVEL_PUBLIC_KEY"?? ""${marvel_public_key}""
buildConfigField "String"?? "MARVEL_PRIVATE_KEY"?? ""${marvel_private_key}""
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt')?? 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// ?????
packagingOptions {
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
}
dependencies {
compile fileTree(dir: 'libs'?? include: ['*.jar'])
testCompile 'junit:junit:4.12'
// Android
compile "com.android.support:design:${libs.supportVersion}"
compile "com.android.support:appcompat-v7:${libs.supportVersion}"
compile "com.android.support:cardview-v7:${libs.supportVersion}"
compile "com.android.support:recyclerview-v7:${libs.supportVersion}"
compile "com.android.support:palette-v7:${libs.supportVersion}"
// Retrofit
compile "com.squareup.retrofit:retrofit:${libs.retrofit}"
compile "com.squareup.retrofit:converter-gson:${libs.retrofit}"
compile "com.squareup.retrofit:adapter-rxjava:${libs.retrofit}"
// ReactiveX
compile "io.reactivex:rxjava:${libs.rxandroid}"
compile "io.reactivex:rxandroid:${libs.rxandroid}"
// Dagger
compile "com.google.dagger:dagger:${libs.dagger}"
apt "com.google.dagger:dagger-compiler:${libs.dagger}"
compile "org.glassfish:javax.annotation:${libs.javax_annotation}"
// Others
compile "com.jakewharton:butterknife:${libs.butterknife}" // ??????
compile "com.github.bumptech.glide:glide:${libs.glide}" // ??????
compile "jp.wasabeef:recyclerview-animators:${libs.recycler_animators}" // Recycler????
compile "de.hdodenhof:circleimageview:${libs.circleimageview}" // ??????
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11