mirror of
https://github.com/flutter/packages.git
synced 2025-07-01 23:51:55 +08:00
[camera_android] Set buildconfig to true for compatibility with AGP 8.0+ (#4951)
Fixes https://github.com/flutter/flutter/issues/134818 See https://github.com/flutter/packages/pull/4535 for an example of when this was done for a different plugin.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
## 0.10.8+10
|
||||
|
||||
* Sets android.defaults.buildfeatures.buildconfig to true for compatibility with AGP 8.0+.
|
||||
|
||||
## 0.10.8+9
|
||||
|
||||
* Removes usage of `_ambiguate` method in example.
|
||||
|
@ -9,7 +9,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.0.2'
|
||||
classpath 'com.android.tools.build:gradle:8.1.1'
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,6 +27,9 @@ project.getTasks().withType(JavaCompile){
|
||||
apply plugin: 'com.android.library'
|
||||
|
||||
android {
|
||||
buildFeatures {
|
||||
buildConfig true
|
||||
}
|
||||
// Conditional for compatibility with AGP <4.2.
|
||||
if (project.android.hasProperty("namespace")) {
|
||||
namespace 'io.flutter.plugins.camera'
|
||||
|
@ -5,7 +5,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.4.2'
|
||||
classpath 'com.android.tools.build:gradle:8.1.1'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-all.zip
|
||||
|
@ -3,7 +3,7 @@ description: Android implementation of the camera plugin.
|
||||
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera_android
|
||||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
|
||||
|
||||
version: 0.10.8+9
|
||||
version: 0.10.8+10
|
||||
|
||||
environment:
|
||||
sdk: ">=2.19.0 <4.0.0"
|
||||
|
Reference in New Issue
Block a user