From 9052e708260619b8ef39df19ddf1952acfa5cb8b Mon Sep 17 00:00:00 2001 From: sfsheng0322 Date: Sat, 30 Jun 2018 15:45:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Travis=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 63 ++++++++++++++++++++++++++++++ GlideImageView/build.gradle | 1 + GlideImageView/proguard-rules.pro | 3 ++ signings/keystore.jks.enc | Bin 0 -> 2240 bytes 4 files changed, 67 insertions(+) create mode 100644 .travis.yml create mode 100644 signings/keystore.jks.enc 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 0000000000000000000000000000000000000000..c7ae4710e900007b66d2a0a154d01c7f945894da GIT binary patch literal 2240 zcmV;x2tW6kSTC+b;y%?%XW*`~-!vr4wog+X>5vJI@4p1_s)6o_eVK2V(T2n0FvA`C z`Yx9R>qGaWUc*rg7OOuT>LGNEr@wP`r^EY~zz`EZj(S#m`K*h#)6|`lZu=Dn>nQr5 zMx3~q(InVjz z8p8zj)!6VfqxPf@-c;-R`}{;Ez%#^rP} zB@r|l%D45yye9sBq-*`DdVc=hKyF{^I%7Ew^c8zwh zF5DTG^2e1z#@0P&hSi%tmRe!hcg6VAZf1($1* zfyzw%>R$bzf*%ENID8&T^%XZXjjyE#I40JwYAm)(1mNTwZQ+UhLR{3s$3yE1KnEGT z7>yQ5w~!|<&B?c7+vsvht3j(&9}h{giG3FQ?XrZcg#b?PEIA%G>&kWAO>T{upiPbu9S|4D$um4Dju~Z=3#9_dn7t#DE z7{XP{T1_e_?3z!>jQc?f941!999BlXr0l?Dv&ej9`pt_W9 z>iraBIchcL1xg{N4poRW`Wil;Jx7v#V*K^6M9NHL#2=lT-BzJd$P^^s` zm$5-8b)3-}@jBj1$r=hwG*9k7@~TQa@T`ZRLYQGqv7V#15J7M?xdRjr-_&lvZ&RuJ zZo7k_q69}$U_bq{mxS`T?Y{yIIoEX{@Bs8KnuP6(xjd}r$;#H!vtSDW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