Commit 6a0b2dde authored by topjohnwu's avatar topjohnwu

Let stub APK respect canary builds

parent 24f5bc98
......@@ -4,8 +4,8 @@ android {
defaultConfig {
applicationId 'com.topjohnwu.magisk'
vectorDrawables.useSupportLibrary = true
versionName rootProject.ext.configProps['appVersion']
versionCode rootProject.ext.configProps['appVersionCode'] as Integer
versionName configProps['appVersion']
versionCode configProps['appVersionCode'] as Integer
javaCompileOptions {
annotationProcessorOptions {
argument('butterknife.debuggable', 'false')
......
......@@ -4,7 +4,7 @@ android {
defaultConfig {
applicationId 'com.topjohnwu.magisk'
versionCode 1
versionName "stub"
versionName configProps['appVersion']
}
buildTypes {
......
......@@ -17,7 +17,8 @@ import java.io.File;
public class MainActivity extends Activity {
private static final String URL =
"https://raw.githubusercontent.com/topjohnwu/magisk_files/master/stable.json";
"https://raw.githubusercontent.com/topjohnwu/magisk_files/master/" +
(BuildConfig.VERSION_NAME.contains("-") ? "canary_builds/canary.json" : "stable.json");
private String apkLink;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment