Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 52 additions & 29 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@ apply plugin: 'android-apt'
apply plugin: 'realm-android'

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

dataBinding {
enabled = true
}


compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION

defaultConfig {
applicationId "com.codeest.geeknews"
minSdkVersion 21
targetSdkVersion 24
versionCode 2
versionName "1.0.1"
applicationId project.APP_APPLICATIONID
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
versionCode Integer.parseInt(project.APP_VERSIONCODE)
versionName project.APP_VERSIONNAME
multiDexEnabled true
}

buildTypes {
Expand All @@ -28,54 +39,66 @@ android {
}
}

ext {
appCompat = "25.0.1"
easyPermissions="0.2.1"
retrofit = "2.0.2"
dagger = "2.0.2"
reactivex = "1.1.0"
butterknife = "8.2.1"
blockcanary = "1.2.1"
leakcanary = "1.4-beta2"
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/tbs_sdk_thirdapp_v2.2.0.1096_36549_sharewithdownload_withoutGame_obfs_20160830_211645.jar')
testCompile 'junit:junit:4.12'


//ui
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:design:24.1.1'
compile 'com.android.support:recyclerview-v7:24.1.1'
compile 'com.android.support:cardview-v7:24.1.1'
compile "com.android.support:recyclerview-v7:${appCompat}"
compile "com.android.support:appcompat-v7:${appCompat}"
compile "com.android.support:cardview-v7:${appCompat}"
compile "com.android.support:design:${appCompat}"
compile "pub.devrel:easypermissions:${easyPermissions}"

//rx
compile 'io.reactivex:rxjava:1.1.0'
compile 'io.reactivex:rxandroid:1.1.0'
compile "io.reactivex:rxjava:${reactivex}"
compile "io.reactivex:rxandroid:${reactivex}"
compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'

//network
compile 'com.google.code.gson:gson:2.4'
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
compile 'com.squareup.retrofit2:adapter-rxjava:2.0.2'
compile 'com.google.code.gson:gson:2.7'
compile "com.squareup.retrofit2:retrofit:${retrofit}"
compile "com.squareup.retrofit2:converter-gson:${retrofit}"
compile "com.squareup.retrofit2:adapter-rxjava:${retrofit}"
compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.0.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.bumptech.glide:okhttp3-integration:1.4.0@aar'

//di
compile 'com.google.dagger:dagger:2.0.2'
compile 'com.google.dagger:dagger-compiler:2.0.2'
compile 'com.jakewharton:butterknife:8.2.1'
apt 'com.jakewharton:butterknife-compiler:8.2.1'
compile "com.google.dagger:dagger:${dagger}"
compile "com.google.dagger:dagger-compiler:${dagger}"
compile "com.jakewharton:butterknife:${butterknife}"
apt "com.jakewharton:butterknife-compiler:${butterknife}"
provided 'org.glassfish:javax.annotation:10.0-b28'

//other
compile 'com.umeng.analytics:analytics:latest.integration'
compile 'com.orhanobut:logger:1.15'
compile 'me.yokeyword:fragmentation:0.7.9'
compile 'me.yokeyword:fragmentation:0.8.4'

//widget
compile 'com.victor:lib:1.0.4'
compile 'com.prolificinteractive:material-calendarview:1.4.0'
compile 'net.opacapp:multiline-collapsingtoolbar:1.2.2'
compile 'com.github.chrisbanes:PhotoView:1.3.0'
compile 'net.opacapp:multiline-collapsingtoolbar:1.3.1'
compile 'com.github.chrisbanes:PhotoView:1.3.1'
compile 'com.miguelcatalan:materialsearchview:1.4.0'

//canary
debugCompile 'com.github.moduth:blockcanary-android:1.2.1'
releaseCompile 'com.github.moduth:blockcanary-no-op:1.2.1'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
debugCompile "com.github.moduth:blockcanary-android:${blockcanary}"
releaseCompile "com.github.moduth:blockcanary-no-op:${blockcanary}"
debugCompile "com.squareup.leakcanary:leakcanary-android:${leakcanary}"
releaseCompile "com.squareup.leakcanary:leakcanary-android-no-op:${leakcanary}"
}
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
android:launchMode="singleTop"
android:screenOrientation="portrait"/>

<activity
android:name=".ui.licenses.LicensesActivity"
android:label="@string/navi_software_licenses"
android:launchMode="singleTask"/>

<meta-data
android:value="YOUR_APP_KEY"
android:name="UMENG_APPKEY"/>
Expand Down
15 changes: 15 additions & 0 deletions app/src/main/assets/licenses-box/AOSP.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
The Android Open Source Project

Copyright (c) <year> <copyright holders>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
13 changes: 13 additions & 0 deletions app/src/main/assets/licenses-box/Apache-LICENSE-2.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright (c) <year> <copyright holders>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Loading