diff --git a/.woodpecker/nightly.yml b/.woodpecker/nightly.yml index b245e61fc..38894cc10 100644 --- a/.woodpecker/nightly.yml +++ b/.woodpecker/nightly.yml @@ -26,8 +26,8 @@ steps: - if [ -f .do_not_build ]; then return 0; fi # build the apks - echo "$${SIGNING_KEY}" | base64 -d > app/keystore.p12 - - ./gradlew assembleMainNightly -Dnightly_store_file="keystore.p12" -Dnightly_store_password="$${KEYSTOREPASS}" -Dnightly_key_alias="gadgetbridge" -Dnightly_key_password="$${KEYPASS}" - - ./gradlew assembleMainNopebble -Dnightly_store_file="keystore.p12" -Dnightly_store_password="$${KEYSTOREPASS}" -Dnightly_key_alias="gadgetbridge" -Dnightly_key_password="$${KEYPASS}" + - ./gradlew assembleMainlineNightly -Dnightly_store_file="keystore.p12" -Dnightly_store_password="$${KEYSTOREPASS}" -Dnightly_key_alias="gadgetbridge" -Dnightly_key_password="$${KEYPASS}" + - ./gradlew assembleMainlineNopebble -Dnightly_store_file="keystore.p12" -Dnightly_store_password="$${KEYSTOREPASS}" -Dnightly_key_alias="gadgetbridge" -Dnightly_key_password="$${KEYPASS}" - ./gradlew assembleBanglejsNightly -Dnightly_store_file="keystore.p12" -Dnightly_store_password="$${KEYSTOREPASS}" -Dnightly_key_alias="gadgetbridge" -Dnightly_key_password="$${KEYPASS}" secrets: [ signing_key, keystorepass, keypass ] diff --git a/app/build.gradle b/app/build.gradle index f36a52fa5..c3389ed8f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -78,13 +78,15 @@ android { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } - compileSdkVersion 33 - buildToolsVersion "33.0.1" + + namespace 'nodomain.freeyourgadget.gadgetbridge' defaultConfig { applicationId "nodomain.freeyourgadget.gadgetbridge" + minSdkVersion 21 targetSdkVersion 33 + compileSdk 33 // Note: always bump BOTH versionCode and versionName! versionName "0.78.0" @@ -112,8 +114,8 @@ android { flavorDimensions "device_type" productFlavors { - main { - // Ensure that when starting from scratch, 'main' is selected, not 'banglejs' + mainline { + // Ensure that when starting from scratch, 'mainline' is selected, not 'banglejs' getIsDefault().set(true) // the default build product flavor dimension "device_type" @@ -162,20 +164,20 @@ android { resValue "string", "about_activity_title", "@string/about_activity_title_main_nightly" resValue "string", "about_description", "@string/about_description_main_nightly" resValue "string", "gadgetbridge_running", "@string/gadgetbridge_running_main_nightly" - + debuggable true if (System.getProperty("nightly_store_file") != null) { signingConfig signingConfigs.nightly //this was conflicting with regular debug type (it should not), so it is only available for CI builds: - productFlavors.main.resValue "string", "pebble_content_provider", "com.getpebble.android.provider" - productFlavors.main.resValue "string", "app_name", "@string/application_name_main_nightly" - productFlavors.main.resValue "string", "title_activity_controlcenter", "@string/title_activity_controlcenter_main_nightly" - productFlavors.main.resValue "string", "about_activity_title", "@string/about_activity_title_main_nightly" - productFlavors.main.resValue "string", "about_description", "@string/about_description_main_nightly" - productFlavors.main.resValue "string", "gadgetbridge_running", "@string/gadgetbridge_running_main_nightly" - + productFlavors.mainline.resValue "string", "pebble_content_provider", "com.getpebble.android.provider" + productFlavors.mainline.resValue "string", "app_name", "@string/application_name_main_nightly" + productFlavors.mainline.resValue "string", "title_activity_controlcenter", "@string/title_activity_controlcenter_main_nightly" + productFlavors.mainline.resValue "string", "about_activity_title", "@string/about_activity_title_main_nightly" + productFlavors.mainline.resValue "string", "about_description", "@string/about_description_main_nightly" + productFlavors.mainline.resValue "string", "gadgetbridge_running", "@string/gadgetbridge_running_main_nightly" + //keep the pebble provider for people who want this. In case of need we can create Banglejs Nopebble productFlavors.banglejs.resValue "string", "pebble_content_provider", "com.getpebble.android.provider" productFlavors.banglejs.resValue "string", "app_name", "@string/application_name_banglejs_nightly" @@ -222,10 +224,9 @@ android { } - - lintOptions { + lint { abortOnError ABORT_ON_CHECK_FAILURE - lintConfig file("${project.rootDir}/app/src/main/lint.xml") + lintConfig file("$rootDir/app/src/main/lint.xml") // If true, generate an HTML report (with issue explanations, sourcecode, etc) htmlReport true // Optional path to report (default will be lint-results.html in the builddir) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 41bdf43b2..fe0f9b349 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ + xmlns:tools="http://schemas.android.com/tools">