Skip to content

Commit

Permalink
Play
Browse files Browse the repository at this point in the history
  • Loading branch information
yunowo committed Mar 21, 2018
1 parent d2b76dc commit ff3ed21
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ jdk:
- oraclejdk8

before_install:
- openssl aes-256-cbc -K $encrypted_fe6e969707e0_key -iv $encrypted_fe6e969707e0_iv
-in yun.jks.enc -out yun.jks -d
- openssl aes-256-cbc -K $encrypted_fe6e969707e0_key -iv $encrypted_fe6e969707e0_iv -in yun.jks.enc -out yun.jks -d
- openssl aes-256-cbc -K $encrypted_f4baf1fb5ebf_key -iv $encrypted_f4baf1fb5ebf_iv -in play.json.enc -out play.json -d
- chmod +x gradlew
- gem install fir-cli
- yes | sdkmanager "platforms;android-27"

script:
- "./gradlew assembleReleaseGitHub"
- ./gradlew assembleReleaseGitHub

deploy:
provider: releases
Expand All @@ -32,6 +32,7 @@ deploy:
on:
tags: true

after_script:
after_deploy:
- fir login $fir_token
- fir p app/build/outputs/apk/releaseGitHub/app-releaseGitHub.apk -c "$TRAVIS_COMMIT_MESSAGE"
- ./gradlew publishApkReleaseGitHub
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ BJUT Wi-Fi client for Android.

**Warning:** This is an experimental app.

<a href="https://play.google.com/store/apps/details?id=me.liuyun.bjutlgn"><img src="https://play.google.com/intl/en_us/badges/images/generic/en-play-badge.png" height="48"></a>

## Install
See [Releases](https://github.com/yunv/BJUTWiFi/releases).

Only Android 8.1 and later is supported. If you are using older versions, go to [BJUTLoginApp](https://github.com/ZeroGoYoosee/BJUTLoginApp/).
Only Android 7.1 and later is supported. If you are using older versions, go to [BJUTLoginApp](https://github.com/ZeroGoYoosee/BJUTLoginApp/).

## Screenshot
<img src="https://github.com/yunv/BJUTWiFi/blob/master/art/0.png" width="540px">
27 changes: 22 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.android.extensions'
id 'org.jetbrains.kotlin.kapt'
id 'com.github.triplet.play'
}

def gitCommitCount = "git rev-list HEAD --count".execute().text.trim()
Expand All @@ -19,17 +20,26 @@ android {
keyPassword System.getenv("KEY_PASSWORD")
}
}
playAccountConfigs {
defaultAccountConfig {
jsonFile = file('../play.json')
}
}
defaultConfig {
applicationId "me.liuyun.bjutlgn"
minSdkVersion 27
minSdkVersion 25
targetSdkVersion 27
versionCode 9
versionName "9.0.0"
versionCode gitCommitCount.toInteger()
versionName "10.0.0"
versionNameSuffix = " (${gitCommitCount})"
resConfigs "en", "zh-rCN"
manifestPlaceholders = [app_name: "@string/app_name"]
playAccountConfig = playAccountConfigs.defaultAccountConfig
}
buildTypes {
debug {
applicationIdSuffix ".debug"
manifestPlaceholders = [app_name: "@string/app_name_debug"]
signingConfig signingConfigs.release
}
release {
Expand All @@ -43,10 +53,17 @@ android {
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.github
play {
track = 'beta'
userFraction = 1.0
untrackOld = true
}
}
}
dataBinding {
// enabled = true
packagingOptions {
exclude 'kotlin/**'
exclude 'META-INF/*.kotlin_module'
exclude 'META-INF/*.version'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0-rc03'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.triplet.gradle:play-publisher:1.2.0'
}
}

Expand Down
Binary file added play.json.enc
Binary file not shown.

0 comments on commit ff3ed21

Please sign in to comment.