Skip to content

Commit

Permalink
Fix namespaces on Android (#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 authored Aug 1, 2023
1 parent ba68860 commit 37deae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
namespace 'com.flutterandies.photo_manager'
if (project.android.hasProperty('namespace') ||
getGradle().getGradleVersion().substring(0, 1).toInteger() >= 8) {
namespace 'com.flutterandies.photo_manager'
}

compileSdkVersion 33

Expand Down
2 changes: 2 additions & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ apply plugin: 'kotlin-kapt'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
namespace 'com.fluttercandies.photo_manager_example'

compileSdkVersion compileVersion.toInteger()

signingConfigs {
Expand Down

0 comments on commit 37deae4

Please sign in to comment.