diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index 76e3285be8..95dfe52727 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -60,7 +60,7 @@ jobs: - uses: actions/setup-java@v4 if: ${{ matrix.target == 'android' }} with: - java-version: '11' + java-version: '17' distribution: 'adopt' # Install required dependencies for Flutter on Linux on Ubuntu diff --git a/flutter/example/android/app/build.gradle b/flutter/example/android/app/build.gradle index ed3e1a1b6b..5fc6400f37 100644 --- a/flutter/example/android/app/build.gradle +++ b/flutter/example/android/app/build.gradle @@ -31,6 +31,7 @@ apply plugin: 'com.ydq.android.gradle.native-aar.import' // apply plugin: 'io.sentry.android.gradle' android { + namespace = "io.sentry.samples.flutter" compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 diff --git a/flutter/example/android/app/src/main/AndroidManifest.xml b/flutter/example/android/app/src/main/AndroidManifest.xml index 1b2b2012cf..f6a36a9c26 100644 --- a/flutter/example/android/app/src/main/AndroidManifest.xml +++ b/flutter/example/android/app/src/main/AndroidManifest.xml @@ -16,7 +16,8 @@ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize" - android:exported="true"> + android:exported="true" + android:networkSecurityConfig="@xml/network">