Update dependencies and travis scripts
This commit is contained in:
parent
12673dbc0e
commit
9078f82963
|
@ -6,3 +6,5 @@ build/
|
||||||
/captures
|
/captures
|
||||||
.idea/
|
.idea/
|
||||||
*.iml
|
*.iml
|
||||||
|
repo/
|
||||||
|
apk/
|
||||||
|
|
50
.travis.yml
50
.travis.yml
|
@ -1,43 +1,45 @@
|
||||||
language: android
|
language: android
|
||||||
android:
|
android:
|
||||||
components:
|
components:
|
||||||
- platform-tools
|
- build-tools-27.0.2
|
||||||
- tools
|
- android-27
|
||||||
|
|
||||||
# The BuildTools version used by your project
|
|
||||||
- build-tools-25.0.1
|
|
||||||
- android-25
|
|
||||||
- extra-android-m2repository
|
- extra-android-m2repository
|
||||||
- extra-google-m2repository
|
- extra-google-m2repository
|
||||||
- extra-android-support
|
- extra-android-support
|
||||||
- extra-google-google_play_services
|
|
||||||
|
|
||||||
licenses:
|
licenses:
|
||||||
- android-sdk-license-.+
|
- android-sdk-license-.+
|
||||||
- '.+'
|
|
||||||
|
|
||||||
jdk:
|
|
||||||
- oraclejdk8
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- chmod +x gradlew
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- yes | sdkmanager "platforms;android-27" # workaround for accepting the license
|
||||||
|
- openssl aes-256-cbc -K $encrypted_5ba4ee4c096f_key -iv $encrypted_5ba4ee4c096f_iv -in "$PWD/.travis/secrets.tar.enc" -out secrets.tar -d
|
||||||
|
- tar xf secrets.tar
|
||||||
- mkdir "$ANDROID_HOME/licenses" || true
|
- mkdir "$ANDROID_HOME/licenses" || true
|
||||||
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
|
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
|
||||||
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
|
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
|
||||||
|
script:
|
||||||
#Build, and run tests
|
- .travis/build.sh && .travis/create-repo.sh
|
||||||
script: "./gradlew clean assembleDebug"
|
|
||||||
sudo: false
|
|
||||||
|
|
||||||
before_cache:
|
before_cache:
|
||||||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
||||||
|
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.gradle/caches/
|
- $HOME/.gradle/caches/
|
||||||
- $HOME/.gradle/wrapper/
|
- $HOME/.gradle/wrapper/
|
||||||
|
- $HOME/.android/build-cache
|
||||||
|
- repo
|
||||||
|
deploy:
|
||||||
|
- provider: pages
|
||||||
|
local-dir: repo
|
||||||
|
target-branch: repo
|
||||||
|
skip-cleanup: true
|
||||||
|
keep-history: true
|
||||||
|
github-token:
|
||||||
|
secure: "SCzQyavQM/bfOjEF+eKp9l0DxiAgsB3v64hYQNb2s/sql4WiL8Mjv9HEAyxBWDfGwUg1cNELWR7s2Y1j/8lCLFaZ5doy7222ZSaRP48MGhpGJQi22jGOqavMNCIcS5EZCjo3OJ9+VWLcx67OIJUQK3KHmnxgeM00luPjzC0a3FiED7/7joU4y9fkQhizfnV6AEZjEma0wUH4+wQxUC+5H71nNDZuz77BO3slZ4TX2YKg9O+QIr5jIjv4GT7dqh+UDQUoMvPXVtORUTI3yOzziwEawc64uMUr+0NtSr9ww+9lg4fs7IeVwkTlDEDbVDFdwvLYAvKlZCqboKygG7NX5Pi11grLYYCrqynXXIsyyBtEyV/fkGt2UcQrMOJRxxI6RkZFuUwozP/DVVO9XiebEfoKKZaQ/ehljveu8+B5S+qsKTO/sFMQJhvi2muhXkUvXeduSjHfqgAxEzrnh6sTR4laI05ICVJVw5j38iUfqOEo4rF+cX11ywgHFzp9RJjYCYhndvobv5vtwk77hrndzVcLlKKlKO4tJDfwg+czRRD7oSX9pT0NeL7tRyD86sNryPMG5pBAfJ4D7knnM9+YmRNJmnsmnu/FGeYlBygUK5IiG05LQ7TfkXiF0wQt7nvlixAiB3ULrso18lqP9U2bGHdjLNaRip3dVxHbrCmP9xY="
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
repo: inorichi/tachiyomi-extensions
|
||||||
env:
|
env:
|
||||||
- GRADLE_OPTS="-XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m"
|
global:
|
||||||
|
- secure: "VvCw9E2eOPoExCKjs4jbGEUJ8hYS6Hw8YzJ4VPqtLa0YJSMKhdwNAcW2ldy47tJklTYKv6djehjh7oivTMFOR4m5jhG5MNrAbCprPtTeiK7KU3o8vCK8CyCYgRS/+LfmryNdXTB4N5B8VQzx26jl3+aJE8g5uJacSOYnv1bc+i89ZLAVW9Xwy4EGKZqQW/cZrDS6NDAPyU05Hell/PZMcHIqkNhcb4AJdGfjXJ3zOrv02F7PxYL8cAsapfUgaFME/2rNokuUTYAWN9lHx3VH51bxEM36lVlPKme0O9Op7hVE4GWvcjab7u54oOlOTFk1L4f2gYC75f1rsweRLwxpQ/XgZgwMAQHkGdYsp1jagVJkbXZE0p+jFN12KOQK/+9ahLuSJwxk4rCsIvR1XlIU2Taw0/v3OWM5u2A00WQkRHW7A3LfHGDFg2JgKCxPnBlzUFliFEubuU5WyWK/BllqZPpSUhinQrymVQEdSFM1eJEfJNVxN6lj4DmcWUmcMiRQIjol5tqopDbL/Htf3sRMacL+X9acPSuUQGnJdQWJ+6VIXmzyrjQl1IXCll4MHvAAnHkn/v4wFHjgKMESYlVtk6q8yiWVgoGkR1lq13TYnjXLTPqmFgBzFd/IqmNYn+33QwRi9s3Njuawm61eDspqmJ8OXxM+QStDW8DckRQCEts="
|
||||||
|
- secure: "GkIGZB+A0N+NMhWlX1d9bLpz98qwHu6nW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A/dP5v8Wtwa0Ipv/bpqZwE7unZU1PxF0f4xd4QmCfjZ98oi1TLV5uY+z+2kuWaXcKF1ETNof9oYgkUKg++ezYLhyLp1NxFtEpgAFgWSTHG838PfvCX0768Ept0XifICz+SjD5jnSZ7Vi9D77czSmKGQO2tnT3+tqf3A2ldZjzEY9oLnYbxpEwBC6PYzthn0rox5KmE3ffIQnt299Em9yxbXH3jqOQo2pFvthuiEzZ9G+dZ6bNRqfT25T7HwzqtDlNLypEvi8/UA="
|
||||||
|
- secure: "XiY+CQZqCSfo4DMUWuA+7YAuDSZxphTODAhENwsTV/jPKm/CV4i4bw3mdS7EtMLVyixFuvV1RdNd96MEF+kjpFG1qN3xO8+6VP6GVz7ycBP73NVGwseLvCaSG+xiW/iiwpINRCMdLS+9YGcj9rGKvPYkLrLQMox9zFoHFEXvRxGCe72sOgRaqf5AQICn4KTyaDBFsCrVtWI9obPNGDel4Y7ZpSRiz5JPxPQVBFC4FX5CdH5MuHQVHuiAHcwKIzzienwhAAkzK0pPINTpNdQB6Qa1R8B8/vNE12iHPMCGF5eQFWe5yy07lOwrt5Np3gVbg8cLocv9L+dUKuG+qXnLS8UlEtiFj01MImG/1qS+TNY323S1sPD/zmQrKCRj77qtxwC2mmZ3PONpkqEwx/wlyk4up93F9jDZWrHPDxw7kbvIP5AiNPR5ZQG7U++ClcFzAxhKNMGFaJV2W3XKFjOwZbMy7bwIKOHXxQQrQsb8kdFnZ1G4Y+WersYolf4/1PItHmhCM1KaXL8qu5JuwQCiOUsRrip+a3AB3T2+yfYY3m0xH73X4SoMUWWAgBJqTSghgCxtxTqMaeI1psMq2k1IWq42wPYlDlEqRNoyR1q4Hh3CW4Q6Sz3k5lktLoUUsQREJ5/5d/mNOr76gOUDO4C+QJKYBLojZnfHiY66RjHIqjs="
|
||||||
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
./gradlew --no-daemon clean assembleRelease
|
||||||
|
|
||||||
|
TOOLS="$(ls -d ${ANDROID_HOME}/build-tools/* | tail -1)"
|
||||||
|
|
||||||
|
shopt -s globstar nullglob extglob
|
||||||
|
APKS=( **/*"-unsigned.apk"* )
|
||||||
|
|
||||||
|
DEST=$PWD/apk
|
||||||
|
|
||||||
|
rm -rf $DEST && mkdir -p $DEST
|
||||||
|
|
||||||
|
for APK in ${APKS[@]}; do
|
||||||
|
BASENAME=$(basename $APK)
|
||||||
|
APKNAME="${BASENAME%%+(-release*)}.apk"
|
||||||
|
APKDEST="$DEST/$APKNAME"
|
||||||
|
|
||||||
|
${TOOLS}/zipalign -v -p 4 $APK $APKDEST
|
||||||
|
${TOOLS}/apksigner sign --ks $STORE_PATH --ks-key-alias $STORE_ALIAS --ks-pass env:STORE_PASS --key-pass env:KEY_PASS $APKDEST
|
||||||
|
done
|
|
@ -0,0 +1,42 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
TOOLS="$(ls -d ${ANDROID_HOME}/build-tools/* | tail -1)"
|
||||||
|
|
||||||
|
mkdir -p repo/apk
|
||||||
|
mkdir -p repo/icon
|
||||||
|
|
||||||
|
cp -f apk/* repo/apk || true
|
||||||
|
|
||||||
|
cd repo
|
||||||
|
|
||||||
|
APKS=( apk/*".apk"* )
|
||||||
|
|
||||||
|
for APK in ${APKS[@]}; do
|
||||||
|
FILENAME=$(basename ${APK})
|
||||||
|
BADGING="$(${TOOLS}/aapt dump badging $APK)"
|
||||||
|
|
||||||
|
PACKAGE=$(echo "$BADGING" | grep package:)
|
||||||
|
PKGNAME=$(echo $PACKAGE | grep -Po "name='\K[^']+")
|
||||||
|
VCODE=$(echo $PACKAGE | grep -Po "versionCode='\K[^']+")
|
||||||
|
VNAME=$(echo $PACKAGE | grep -Po "versionName='\K[^']+")
|
||||||
|
|
||||||
|
APPLICATION=$(echo "$BADGING" | grep application:)
|
||||||
|
LABEL=$(echo $APPLICATION | grep -Po "label='\K[^']+")
|
||||||
|
|
||||||
|
LANG=$(echo $APK | grep -Po "tachiyomi-\K[^\.]+")
|
||||||
|
|
||||||
|
ICON=$(echo "$BADGING" | grep -Po "application-icon-320.*'\K[^']+")
|
||||||
|
unzip -p $APK $ICON > icon/${FILENAME%.*}.png
|
||||||
|
|
||||||
|
jq -n \
|
||||||
|
--arg name "$LABEL" \
|
||||||
|
--arg pkg "$PKGNAME" \
|
||||||
|
--arg apk "$FILENAME" \
|
||||||
|
--arg lang "$LANG" \
|
||||||
|
--argjson code $VCODE \
|
||||||
|
--arg version "$VNAME" \
|
||||||
|
'{name:$name, pkg:$pkg, apk:$apk, lang:$lang, code:$code, version:$version}'
|
||||||
|
|
||||||
|
done | jq -sr '[.[]]' > index.json
|
Binary file not shown.
|
@ -1,10 +1,11 @@
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.1.2'
|
ext.kotlin_version = '1.2.21'
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
google()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.1'
|
classpath 'com.android.tools.build:gradle:3.0.1'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,6 +13,7 @@ buildscript {
|
||||||
allprojects {
|
allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
|
google()
|
||||||
maven { url 'https://dl.bintray.com/inorichi/tachiyomi' }
|
maven { url 'https://dl.bintray.com/inorichi/tachiyomi' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 25
|
compileSdkVersion 27
|
||||||
buildToolsVersion "25.0.2"
|
buildToolsVersion "27.0.2"
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
@ -28,7 +28,7 @@ android {
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 25
|
targetSdkVersion 27
|
||||||
applicationIdSuffix pkgNameSuffix
|
applicationIdSuffix pkgNameSuffix
|
||||||
versionCode extVersionCode
|
versionCode extVersionCode
|
||||||
versionName "$libVersion.$extVersionSuffix"
|
versionName "$libVersion.$extVersionSuffix"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#Thu Jun 01 17:09:13 CEST 2017
|
#Sun Feb 04 00:22:22 CET 2018
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
|
||||||
|
|
Loading…
Reference in New Issue