Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 15 #1141

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ allprojects {
}
}

static def androidCompileSdk() { return 34 }
static def androidCompileSdk() { return 35 }

static def androidMinSdk() { return 21 }

static def androidTargetSdk() { return 34 }
static def androidTargetSdk() { return 35 }

static def versionCode() { return 1 }

Expand Down
1 change: 1 addition & 0 deletions vtm-android-example/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:requestLegacyExternalStorage="true"
android:theme="@style/AppThemeLight"
android:usesCleartextTraffic="true">
<activity
android:name=".Samples"
Expand Down
12 changes: 12 additions & 0 deletions vtm-android-example/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">

<style name="AppThemeDark" parent="android:Theme.Material">
<item name="android:fitsSystemWindows" tools:targetApi="VANILLA_ICE_CREAM">true</item>
</style>

<style name="AppThemeLight" parent="android:Theme.Material.Light.DarkActionBar">
<item name="android:fitsSystemWindows" tools:targetApi="VANILLA_ICE_CREAM">true</item>
</style>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Map view
mapView = new MapView(this);
setContentView(mapView);
setContentView(R.layout.activity_map);
mapView = findViewById(R.id.mapView);

// Open map
Intent intent = new Intent(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT ? Intent.ACTION_OPEN_DOCUMENT : Intent.ACTION_GET_CONTENT);
Expand Down