Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
dc3f3f5ac3 | |||
1180d3cfdd | |||
ea7cadde4e | |||
817e8198b5 |
3 changed files with 14 additions and 5 deletions
|
@ -58,7 +58,7 @@ jobs:
|
|||
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)
|
||||
uses: https://source.mapcomplete.org/actions/forgejo-release@v2.6.0
|
||||
with:
|
||||
|
|
|
@ -5,9 +5,9 @@ android {
|
|||
compileSdk rootProject.ext.compileSdkVersion
|
||||
defaultConfig {
|
||||
applicationId "org.mapcomplete"
|
||||
minSdk 33
|
||||
targetSdkVersion targetSdkVersion
|
||||
versionCode 9
|
||||
minSdk 28
|
||||
targetSdkVersion 35
|
||||
versionCode 10
|
||||
versionName "debug"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
|
|
|
@ -20,7 +20,7 @@ import androidx.core.view.WindowCompat;
|
|||
import com.getcapacitor.BridgeActivity;
|
||||
import com.getcapacitor.JSObject;
|
||||
import com.getcapacitor.PluginCall;
|
||||
|
||||
import android.app.Activity;
|
||||
public class MainActivity extends BridgeActivity {
|
||||
|
||||
private PluginCall locationRequest = null;
|
||||
|
@ -67,6 +67,11 @@ public class MainActivity extends BridgeActivity {
|
|||
responder.setKeepAlive(true);
|
||||
});
|
||||
|
||||
Databridge.addResponder("exit", responder -> {
|
||||
Log.i("databridge","got exit request");
|
||||
finishAffinity();
|
||||
});
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
EdgeToEdge.enable(this);
|
||||
|
||||
|
@ -86,6 +91,10 @@ public class MainActivity extends BridgeActivity {
|
|||
});
|
||||
}else{
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue