File tree Expand file tree Collapse file tree 7 files changed +15
-7
lines changed
google_api_availability_android
google_api_availability/example/android Expand file tree Collapse file tree 7 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ apply plugin: 'com.android.application'
2525apply from : " $flutterRoot /packages/flutter_tools/gradle/flutter.gradle"
2626
2727android {
28+ namespace ' com.baseflow.googleapiavailabilityexample'
2829 compileSdkVersion flutter. compileSdkVersion
2930
3031 compileOptions {
Original file line number Diff line number Diff line change 11<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
2- xmlns : tools =" http://schemas.android.com/tools"
3- package =" com.baseflow.googleapiavailabilityexample" >
4-
2+ xmlns : tools =" http://schemas.android.com/tools" >
53 <uses-permission android : name =" android.permission.INTERNET" />
64
75 <application
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
55 }
66
77 dependencies {
8- classpath ' com.android.tools.build:gradle:4.1 .0'
8+ classpath ' com.android.tools.build:gradle:7.3 .0'
99 }
1010}
1111
@@ -24,6 +24,6 @@ subprojects {
2424 project. evaluationDependsOn(' :app' )
2525}
2626
27- task clean ( type : Delete ) {
27+ tasks . register( " clean " , Delete ) {
2828 delete rootProject. buildDir
2929}
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-6 .5-all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-7 .5-all.zip
Original file line number Diff line number Diff line change 1+ ## 1.0.1
2+
3+ * Adds support for the namespace property to support Android Gradle Plugin (AGP) 8.
4+
15## 1.0.0+1
26
37* Declares ` dartPluginClass ` in pubspec declaration.
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ rootProject.allprojects {
2222apply plugin : ' com.android.library'
2323
2424android {
25+ // Conditional for compatibility with AGP <4.2.
26+ if (project. android. hasProperty(" namespace" )) {
27+ namespace ' com.baseflow.googleapiavailability'
28+ }
29+
2530 compileSdkVersion 31
2631
2732 compileOptions {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ description: An Android implementation for the google_api_availability plugin.
33repository : https://github.com/baseflow/flutter-google-api-availability/tree/main/google_api_availability_android
44# NOTE: We strongly prefer non-breaking changes, even at the expense of a
55# less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes
6- version : 1.0.0+ 1
6+ version : 1.0.1
77
88flutter :
99 plugin :
You can’t perform that action at this time.
0 commit comments