Compare commits

..

No commits in common. "main" and "feature/edge-to-edge" have entirely different histories.

3 changed files with 14 additions and 20 deletions

View file

@ -26,6 +26,12 @@ jobs:
- name: Grant execute permission to gradlew - name: Grant execute permission to gradlew
run: chmod +x ./gradlew run: chmod +x ./gradlew
- name: Monkeypatch version number
run: |
echo "--- @capacitor ---"
ls @capacitor
sed "s/\.\.\/node_modules\///" -i capacitor.settings.gradle
- name: Build signed APK - name: Build signed APK
run: | run: |
./gradlew --version ./gradlew --version
@ -38,21 +44,18 @@ jobs:
export keyPassword=${{ secrets.KEY_PASSWORD }} export keyPassword=${{ secrets.KEY_PASSWORD }}
./gradlew build ./gradlew build
./gradlew assembleRelease ./gradlew assembleRelease
rm -rf app/build/outputs/apk/release/baselineProfiles
rm -rf app/build/outputs/apk/release/output-metadata.json
TAG=$( echo ${{ env.GITHUB_REF_NAME }} ) TAG=$( echo ${{ env.GITHUB_REF_NAME }} )
scp app/build/outputs/apk/release/app-release.apk hetzner:~/public/apk/mapcomplete-$TAG.apk scp app/build/outputs/apk/release/app-release.apk hetzner:~/public/apk/mapcomplete-$TAG.apk
ssh hetzner 'rm -f public/apk/mapcomplete-latest.apk && cp "public/apk/$(ls -v public/apk/ | tail -n 1)" public/apk/mapcomplete-latest.apk' ssh hetzner 'rm -f public/apk/mapcomplete-latest.apk && cp "public/apk/$(ls -v public/apk/ | tail -n 1)" public/apk/mapcomplete-latest.apk'
# Build versions for legacy versions # Build versions vor legacy
./scripts/compile_version.sh $TAG 9-PIE 28 ./scripts/compile_version.shs $TAG 9-PIE 28
./scripts/compile_version.sh $TAG 10-QUINCE-TART 29 ./scripts/compile_version.sh $TAG 10-QUINCE-TART 29
./scripts/compile_version.sh $TAG 11-RED-VELVET-CAKE 30 ./scripts/compile_version.sh $TAG 11-RED-VELVET-CAKE 30
./scripts/compile_version.sh $TAG 12-SNOW-CONE 31 ./scripts/compile_version.sh $TAG 12-SNOW-CONE 31
./scripts/compile_version.sh $TAG 13-TIRAMISU 32 ./scripts/compile_version.sh $TAG 13-TIRAMISU 32
- name: clean intermediate files
run: |
rm -rf app/build/outputs/apk/release/baselineProfiles
rm -rf app/build/outputs/apk/release/output-metadata.json
- name: Upload APK to forgejo releases (MapComplete) - name: Upload APK to forgejo releases (MapComplete)
uses: https://source.mapcomplete.org/actions/forgejo-release@v2.6.0 uses: https://source.mapcomplete.org/actions/forgejo-release@v2.6.0
with: with:

View file

@ -5,9 +5,9 @@ android {
compileSdk rootProject.ext.compileSdkVersion compileSdk rootProject.ext.compileSdkVersion
defaultConfig { defaultConfig {
applicationId "org.mapcomplete" applicationId "org.mapcomplete"
minSdk 28 // Use 32 for google play, 28 for FDroid minSdk 33
targetSdkVersion 35 targetSdkVersion targetSdkVersion
versionCode 2031 versionCode 9
versionName "debug" versionName "debug"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions { aaptOptions {

View file

@ -20,7 +20,7 @@ import androidx.core.view.WindowCompat;
import com.getcapacitor.BridgeActivity; import com.getcapacitor.BridgeActivity;
import com.getcapacitor.JSObject; import com.getcapacitor.JSObject;
import com.getcapacitor.PluginCall; import com.getcapacitor.PluginCall;
import android.app.Activity;
public class MainActivity extends BridgeActivity { public class MainActivity extends BridgeActivity {
private PluginCall locationRequest = null; private PluginCall locationRequest = null;
@ -67,11 +67,6 @@ public class MainActivity extends BridgeActivity {
responder.setKeepAlive(true); responder.setKeepAlive(true);
}); });
Databridge.addResponder("exit", responder -> {
Log.i("databridge","got exit request");
finishAffinity();
});
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
EdgeToEdge.enable(this); EdgeToEdge.enable(this);
@ -91,10 +86,6 @@ public class MainActivity extends BridgeActivity {
}); });
}else{ }else{
Log.i("insets","Not enabling insets, version to low"); Log.i("insets","Not enabling insets, version to low");
Databridge.addResponder("insets", (responder) -> {
var json = "{ \"top\": 0, \"bottom\": 0}";
Databridge.sendAnswerTo(responder, json);
});
} }
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {