diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14108094..a6a88353 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -121,6 +121,10 @@ jobs: with: channel: 'stable' cache: true + - uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: 21 - name: Configure Flutter run: | flutter config --no-analytics diff --git a/android/build.gradle b/android/build.gradle index f28ee5fb..615844ce 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,10 +25,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - // Conditional for compatibility with AGP <4.2. - if (project.android.hasProperty("namespace")) { - namespace 'dev.google.webcrypto' - } + namespace 'dev.google.webcrypto' compileSdkVersion 31 @@ -53,7 +50,7 @@ android { } defaultConfig { - minSdkVersion 16 + minSdkVersion 21 ndk { abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' } diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 06c43a03..4438c79a 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -14,6 +14,5 @@ limitations under the License. --> - + diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 856a1cd5..0a9de12b 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -45,7 +45,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.webcrypto_example" - minSdkVersion 16 + minSdkVersion flutter.minSdkVersion targetSdkVersion 31 versionCode flutterVersionCode.toInteger() versionName flutterVersionName @@ -58,6 +58,7 @@ android { signingConfig signingConfigs.debug } } + namespace 'com.example.webcrypto_example' } flutter { diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml index 805c372c..9cadc7e1 100644 --- a/example/android/app/src/debug/AndroidManifest.xml +++ b/example/android/app/src/debug/AndroidManifest.xml @@ -14,8 +14,7 @@ limitations under the License. --> - + - + - +