Let stub APK respect canary builds
This commit is contained in:
parent
24f5bc98d8
commit
6a0b2ddee9
@ -4,8 +4,8 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId 'com.topjohnwu.magisk'
|
applicationId 'com.topjohnwu.magisk'
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
versionName rootProject.ext.configProps['appVersion']
|
versionName configProps['appVersion']
|
||||||
versionCode rootProject.ext.configProps['appVersionCode'] as Integer
|
versionCode configProps['appVersionCode'] as Integer
|
||||||
javaCompileOptions {
|
javaCompileOptions {
|
||||||
annotationProcessorOptions {
|
annotationProcessorOptions {
|
||||||
argument('butterknife.debuggable', 'false')
|
argument('butterknife.debuggable', 'false')
|
||||||
|
@ -4,7 +4,7 @@ android {
|
|||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId 'com.topjohnwu.magisk'
|
applicationId 'com.topjohnwu.magisk'
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "stub"
|
versionName configProps['appVersion']
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
@ -17,7 +17,8 @@ import java.io.File;
|
|||||||
public class MainActivity extends Activity {
|
public class MainActivity extends Activity {
|
||||||
|
|
||||||
private static final String URL =
|
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;
|
private String apkLink;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user