Utilize gradle product flavors to produce free and plus versions
This commit is contained in:
parent
4a38511218
commit
e9203f20b3
2
app/.gitignore
vendored
2
app/.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
/build
|
||||
app-release.apk
|
||||
*.apk
|
||||
manifest-merger-release-report.txt
|
@ -5,23 +5,36 @@ android {
|
||||
buildToolsVersion "22.0.1"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "acr.browser.lightning"
|
||||
minSdkVersion 14
|
||||
targetSdkVersion 22
|
||||
versionCode 78
|
||||
versionName "4.0.10a"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
debug {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles 'proguard-project.txt'
|
||||
}
|
||||
|
||||
release {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles 'proguard-project.txt'
|
||||
}
|
||||
debug {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles 'proguard-project.txt'
|
||||
}
|
||||
|
||||
productFlavors {
|
||||
LightningPlus {
|
||||
buildConfigField "boolean", "FULL_VERSION", "true"
|
||||
applicationId "acr.browser.lightning"
|
||||
versionCode 78
|
||||
}
|
||||
|
||||
LightningFree {
|
||||
buildConfigField "boolean", "FULL_VERSION", "false"
|
||||
applicationId "acr.browser.barebones"
|
||||
versionCode 81
|
||||
}
|
||||
}
|
||||
|
||||
|
0
app/src/LightningFree/assets/hosts.txt
Normal file
0
app/src/LightningFree/assets/hosts.txt
Normal file
26808
app/src/LightningPlus/assets/hosts.txt
Normal file
26808
app/src/LightningPlus/assets/hosts.txt
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -5,12 +5,14 @@ package acr.browser.lightning.constant;
|
||||
|
||||
import android.os.Environment;
|
||||
|
||||
import acr.browser.lightning.BuildConfig;
|
||||
|
||||
public final class Constants {
|
||||
|
||||
private Constants() {
|
||||
}
|
||||
|
||||
public static final boolean FULL_VERSION = true;
|
||||
public static final boolean FULL_VERSION = BuildConfig.FULL_VERSION;
|
||||
|
||||
public static final String DESKTOP_USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36";
|
||||
public static final String MOBILE_USER_AGENT = "Mozilla/5.0 (Linux; U; Android 4.4; en-us; Nexus 4 Build/JOP24G) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30";
|
||||
|
Loading…
x
Reference in New Issue
Block a user