diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ce47b20 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,63 @@ +language: android +jdk: oraclejdk8 +sudo: true + +android: + components: + - tools + - platform-tools + - tools + - build-tools-27.1.1 + - android-27 + - sys-img-armeabi-v7a-android-27 + - extra-android-support + - extra-android-m2repository + - extra-google-m2repository + - add-on + - extra + licenses: + - android-sdk-preview-license-52d11cd2 + - android-sdk-license-.+ + - google-gdk-license-.+ + +before_cache: +- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock +- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ + +cache: + directories: + - "$HOME/.gradle/caches/" + - "$HOME/.gradle/wrapper/" + - "$HOME/.android/build-cache" + +before_install: +- mkdir "$ANDROID_HOME/licenses" || true +- echo "d56f5187479451eabf01fb78af6dfcb131a6481e" > "$ANDROID_HOME/licenses/android-sdk-license" +- openssl aes-256-cbc -K $encrypted_0f82fc3ea788_key -iv $encrypted_0f82fc3ea788_iv + -in signings/keystore.jks.enc -out signings/keystore.jks -d +- gem install fir-cli + +before_script: +- chmod +x gradlew + +script: +- "./gradlew assembleRelease" + +deploy: + provider: releases + api_key: + secure: BwzVE9rrCLQ1CKalfO66vdBVrpajt1AZVzG8n2qwRSRQxIKabnQht2NCEVWA9jBCGan6ahKG3ZV4Ky5Xeue49FZHb69zuvi7pdhL2AVGDv/T48TXks39FviJD40gSvtOC9H8ju5LokRBoTs74bdhg/weu0fbwjarioS+gsx/AdLYoji5xpe+FaCuwZEKRQ2Cer000XSntmm4d91oW1gJ9DiBLEyb0eEA4t0Trd+zCvC38pv5+sEEag1FIOnOnwc5dixozL0FSSSSPC3mDMxLJL0cgrDmSHzhRL6/DOb/taRGpAyyhOlrIn1H6fPcot8oQFPMv9LUzltYrdYjaKEgg5fGP/+4GVA50UqmQ7UEdtN6i1+UqfnRtkAugJRozy6M0+c8fgg9l5eZfH0jXCpNL8wYsTC0nmDnsG5kLayIM23nQRQOeYEoIiPZxnwvwCwyVZ0GbTEQIql/GHHBpcW9fjBDASsnK3CGtVVf/EHzU/5f0Y71GSPJ5DUHl79ZBNmw+fYkjuoAIt27vP+sf3WPAkGOUGT7PvwpAEe16Xh8cYr37R/Ryuw57Rk3vN/Js0pCqlDymIjMeOIeU57RK8KXKsqrYQtleC8Erjx89eeq1oqq/zZ2g3gFl31c9ajiCjjSpkMR+df518tqgfa40/SfqHX+oz6ihAsCs2PGwqPG8ig= + file: Sample/outputs/GlideImageView.apk + skip_cleanup: true + on: + repo: sfsheng0322/GlideImageView + tags: true + all_branches: true + +after_deploy: +- "./gradlew clean build bintrayUpload -PbintrayUser=sfsheng0322 -PbintrayKey=$BINTRAY_TOKEN -PdryRun=false" +- fir p Sample/outputs/GlideImageView.apk -T $FIR_TOKEN -c "基于Glide V4.7.1封装的图片加载库,可以监听加载图片时的进度" + +notifications: + email: + - sfsheng0322@126.com \ No newline at end of file diff --git a/GlideImageView/build.gradle b/GlideImageView/build.gradle index 9c141c2..7b61d1e 100644 --- a/GlideImageView/build.gradle +++ b/GlideImageView/build.gradle @@ -30,6 +30,7 @@ android { dependencies { api "com.android.support:support-v4:$rootProject.supportLibraryVersion" api 'com.github.bumptech.glide:glide:4.7.1' + api 'com.github.bumptech.glide:annotations:4.7.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1' api "com.github.bumptech.glide:okhttp3-integration:4.7.1" } diff --git a/GlideImageView/proguard-rules.pro b/GlideImageView/proguard-rules.pro index 3555ae3..e04d982 100644 --- a/GlideImageView/proguard-rules.pro +++ b/GlideImageView/proguard-rules.pro @@ -23,3 +23,6 @@ # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile + +-keep public class extends com.bumptech.glide.module.AppGlideModule +-keep class com.bumptech.glide.GeneratedAppGlideModuleImpl \ No newline at end of file diff --git a/signings/keystore.jks.enc b/signings/keystore.jks.enc new file mode 100644 index 0000000..c7ae471 Binary files /dev/null and b/signings/keystore.jks.enc differ