Build 2026: AGP 9.4.1 + Gradle 9.6, compileSdk 37/target 36, minSdk 26, AndroidX y AdMob 25.5.0 al día, firma release vía keystore.properties
This commit is contained in:
1 parent
592e96366d
commit
cab30c2a98
11 files changed
+113
-102
No files matched your search
+45
-20
@@ -1,45 +1,70 @@
|
||||
apply plugin: 'com.android.application'
|
||||
plugins {
|
||||
id 'com.android.application'
|
||||
}
|
||||
|
||||
// Credenciales de firma de release: viven en keystore.properties (ignorado por git).
|
||||
// Si el fichero no existe el build sigue funcionando (release sin firmar).
|
||||
def keystorePropsFile = rootProject.file('keystore.properties')
|
||||
def keystoreProps = new Properties()
|
||||
if (keystorePropsFile.exists()) {
|
||||
keystoreProps.load(new FileInputStream(keystorePropsFile))
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.jkanetwork.st.calendariodefrases'
|
||||
compileSdk 37
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.jkanetwork.st.calendariodefrases"
|
||||
minSdkVersion 21
|
||||
compileSdk 34
|
||||
targetSdkVersion 34
|
||||
minSdk 26
|
||||
targetSdk 36
|
||||
versionName "1.3.5"
|
||||
// Sube automáticamente la build en cada
|
||||
// Sube automáticamente la build en cada compilación
|
||||
def versionPropsFile = file('version.count')
|
||||
def Properties versionProps = new Properties()
|
||||
|
||||
versionProps.load(new FileInputStream(versionPropsFile))
|
||||
|
||||
def code = versionProps['VERSION_CODE'].toInteger() + 1
|
||||
versionCode code
|
||||
versionProps['VERSION_CODE'] = code.toString()
|
||||
versionProps.store(versionPropsFile.newWriter(), null)
|
||||
versionCode code
|
||||
// Fin de subida automática de build
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
if (keystorePropsFile.exists()) {
|
||||
storeFile file(keystoreProps['storeFile'])
|
||||
storePassword keystoreProps['storePassword']
|
||||
keyAlias keystoreProps['keyAlias']
|
||||
keyPassword keystoreProps['keyPassword']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
if (keystorePropsFile.exists()) {
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
}
|
||||
namespace 'com.jkanetwork.st.calendariodefrases'
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_17
|
||||
targetCompatibility JavaVersion.VERSION_17
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
/*androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
|
||||
exclude group: 'com.android.support', module: 'support-annotations'
|
||||
})*/
|
||||
implementation 'androidx.appcompat:appcompat:1.6.1'
|
||||
implementation 'androidx.core:core:1.12.0'
|
||||
implementation 'com.google.android.material:material:1.11.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.8.0'
|
||||
implementation 'androidx.core:core:1.19.1'
|
||||
implementation 'androidx.work:work-runtime:2.12.0'
|
||||
implementation 'com.github.marcohc:robotocalendarview:3.1.1'
|
||||
implementation 'com.google.android.gms:play-services-ads:23.0.0'
|
||||
//compile 'com.tappx.sdk.android:tappx-sdk:3.+'
|
||||
//testImplementation 'junit:junit:4.12'
|
||||
implementation 'com.google.android.gms:play-services-ads:25.5.0'
|
||||
implementation 'com.google.android.ump:user-messaging-platform:4.0.0'
|
||||
}
|
||||
@@ -84,25 +84,25 @@ public class FavsActivity extends AppCompatActivity {
|
||||
@SuppressWarnings("unchecked") /* Because next line has a type change without checking it */
|
||||
HashMap<String, String> obj = (HashMap<String,String>) listFavs.getItemAtPosition(info.position);
|
||||
|
||||
switch (item.getItemId()) {
|
||||
case R.id.copy:
|
||||
ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
|
||||
clipboard.setPrimaryClip(ClipData.newPlainText("Sentence", obj.get("item")+this.getString(R.string.sharefrom)));
|
||||
Toast.makeText(getApplicationContext(), "Copiado al portapapeles", Toast.LENGTH_LONG ).show();
|
||||
return true;
|
||||
case R.id.delfav:
|
||||
Integer[] IDFavs = db.getIDFavs();
|
||||
db.delFav(IDFavs[info.position]);
|
||||
/* Restart activity for refresh favs */
|
||||
finish();
|
||||
startActivity(getIntent());
|
||||
return true;
|
||||
case R.id.share:
|
||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||
intent.setType("text/plain");
|
||||
intent.putExtra(Intent.EXTRA_TEXT,obj.get("item")+this.getString(R.string.sharefrom));
|
||||
startActivity(Intent.createChooser(intent, "Compartir con"));
|
||||
return true;
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.copy) {
|
||||
ClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
|
||||
clipboard.setPrimaryClip(ClipData.newPlainText("Sentence", obj.get("item")+this.getString(R.string.sharefrom)));
|
||||
Toast.makeText(getApplicationContext(), "Copiado al portapapeles", Toast.LENGTH_LONG ).show();
|
||||
return true;
|
||||
} else if (id == R.id.delfav) {
|
||||
Integer[] IDFavs = db.getIDFavs();
|
||||
db.delFav(IDFavs[info.position]);
|
||||
/* Restart activity for refresh favs */
|
||||
finish();
|
||||
startActivity(getIntent());
|
||||
return true;
|
||||
} else if (id == R.id.share) {
|
||||
Intent intent = new Intent(Intent.ACTION_SEND);
|
||||
intent.setType("text/plain");
|
||||
intent.putExtra(Intent.EXTRA_TEXT,obj.get("item")+this.getString(R.string.sharefrom));
|
||||
startActivity(Intent.createChooser(intent, "Compartir con"));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -56,24 +56,20 @@ public class MainActivity extends AppCompatActivity implements RobotoCalendarLis
|
||||
|
||||
@Override
|
||||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case R.id.favorites:
|
||||
Intent newIF= new Intent(MainActivity.this,FavsActivity.class);
|
||||
startActivity(newIF);
|
||||
return true;
|
||||
case R.id.options:
|
||||
Intent newIO= new Intent(MainActivity.this,OptsActivity.class);
|
||||
startActivity(newIO);
|
||||
return true;
|
||||
case R.id.about:
|
||||
Intent newIA= new Intent(MainActivity.this,AboutOfActivity.class);
|
||||
startActivity(newIA);
|
||||
return true;
|
||||
case R.id.exit:
|
||||
moveTaskToBack(true); /* Returns to "desktop" */
|
||||
default:
|
||||
return super.onOptionsItemSelected(item);
|
||||
int id = item.getItemId();
|
||||
if (id == R.id.favorites) {
|
||||
startActivity(new Intent(MainActivity.this, FavsActivity.class));
|
||||
return true;
|
||||
} else if (id == R.id.options) {
|
||||
startActivity(new Intent(MainActivity.this, OptsActivity.class));
|
||||
return true;
|
||||
} else if (id == R.id.about) {
|
||||
startActivity(new Intent(MainActivity.this, AboutOfActivity.class));
|
||||
return true;
|
||||
} else if (id == R.id.exit) {
|
||||
moveTaskToBack(true); /* Returns to "desktop" */
|
||||
}
|
||||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
#Sun Apr 07 14:20:00 CEST 2024
|
||||
VERSION_CODE=353
|
||||
#Tue Oct 20 12:44:21 UTC 2026
|
||||
VERSION_CODE=361
|
||||
Reference in new issue
Block a user