Modifying the available apps to be the real one and
a promo that is useful to promote Burguillos.info to advertisers.
This commit is contained in:
parent
414c27fd86
commit
6fea21cf42
@ -18,15 +18,15 @@ android {
|
||||
applicationId = "info.burguillos.bi"
|
||||
minSdk = 26
|
||||
targetSdk = 33
|
||||
versionCode = 1
|
||||
versionName = "1.0"
|
||||
versionCode = 4
|
||||
versionName = "4.0"
|
||||
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = false
|
||||
isMinifyEnabled = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
@ -38,6 +38,19 @@ android {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
flavorDimensions += "destination"
|
||||
productFlavors {
|
||||
create("promo") {
|
||||
manifestPlaceholders["host"] = "promo.burguillos.info"
|
||||
applicationIdSuffix = ".promo";
|
||||
versionNameSuffix = "-promo"
|
||||
}
|
||||
create("real") {
|
||||
manifestPlaceholders["host"] = "burguillos.info"
|
||||
versionNameSuffix = "-real"
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
Binary file not shown.
BIN
app/build/outputs/apk/promo/release/app-promo-release.apk
Normal file
BIN
app/build/outputs/apk/promo/release/app-promo-release.apk
Normal file
Binary file not shown.
BIN
app/build/outputs/apk/real/release/app-real-release.apk
Normal file
BIN
app/build/outputs/apk/real/release/app-real-release.apk
Normal file
Binary file not shown.
@ -34,7 +34,7 @@
|
||||
|
||||
<data android:scheme="https"/>
|
||||
<data android:scheme="http"/>
|
||||
<data android:host="burguillos.info"/>
|
||||
<data android:host="${host}"/>
|
||||
</intent-filter>
|
||||
</activity-alias>
|
||||
</application>
|
||||
|
@ -57,7 +57,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
private WebView webView;
|
||||
private SwipeRefreshLayout swipeRefreshLayout;
|
||||
private RelativeLayout relativeLayout;
|
||||
String baseUrl = "https://burguillos.info";
|
||||
String baseUrl;
|
||||
|
||||
String hrefContextMenu = null;
|
||||
String srcContextMenu = null;
|
||||
@ -116,8 +116,8 @@ public class MainActivity extends AppCompatActivity {
|
||||
final int id = item.getItemId();
|
||||
ClipData clip = null;
|
||||
ClipboardManager clipboard = (ClipboardManager) getSystemService(this.CLIPBOARD_SERVICE);
|
||||
Intent targetIntent = null;
|
||||
Uri targetUri = null;
|
||||
Intent targetIntent = null;
|
||||
Uri targetUri = null;
|
||||
switch (id) {
|
||||
case MenuId.OPEN_LINK:
|
||||
targetUri = Uri.parse(hrefContextMenu);
|
||||
@ -170,6 +170,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
public void onCreateContextMenu (ContextMenu menu,
|
||||
View v,
|
||||
ContextMenu.ContextMenuInfo menuinfo) {
|
||||
Log.w("BurguillosInfo", baseUrl);
|
||||
new MenuInflater(MainActivity.this).inflate(R.menu.long_click_webview, menu);
|
||||
if (hrefContextMenu != null) {
|
||||
menu.add(Menu.NONE, MenuId.OPEN_LINK, Menu.NONE, "Abrir enlace.");
|
||||
@ -188,6 +189,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
baseUrl = getResources().getString(R.string.baseUrl);
|
||||
|
||||
setContentView(R.layout.activity_main);
|
||||
|
||||
|
3
app/src/promo/res/values/destination.xml
Normal file
3
app/src/promo/res/values/destination.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="baseUrl">https://promo.burguillos.info</string>
|
||||
</resources>
|
3
app/src/real/res/values/destination.xml
Normal file
3
app/src/real/res/values/destination.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="baseUrl">https://burguillos.info</string>
|
||||
</resources>
|
Loading…
x
Reference in New Issue
Block a user