Skip to content

Commit

Permalink
update app
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed May 23, 2019
1 parent c46b804 commit 1430d49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

def gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
def baseVersionName = '19.1'

android {
compileSdkVersion rootProject.ext.targetSdkVersion
defaultConfig {
applicationId "moe.riru.manager"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 4
versionName "0.0.4"
versionCode gitCommitCount
versionName baseVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/java/moe/riru/manager/utils/NativeHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
@Keep
public class NativeHelper {

private static final int MAX_VERSION = 20;
private static final int V19_1 = 22;
private static final int V19 = 20;
private static final int V18 = 19;
private static final int V17_1 = 18;
private static final int MAX_VERSION = V19_1;

static {
System.loadLibrary("helper");
Expand All @@ -28,6 +29,8 @@ public static String versionName(Context context, int versionCode) {
}

switch (versionCode) {
case V19_1:
return "v19.1";
case V19:
return "v19";
case V18:
Expand Down

0 comments on commit 1430d49

Please sign in to comment.