Skip to content

Commit

Permalink
fix(android): Add AGP 8 support with namespace property (#1514)
Browse files Browse the repository at this point in the history
Cherry-pick of #1503

Co-authored-by: Hugo Delaunay <Skyost@users.noreply.github.com>
  • Loading branch information
Gustl22 and Skyost committed May 23, 2023
1 parent 93dc2a5 commit 8d7b322
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions packages/audioplayers_android/android/build.gradle
Expand Up @@ -31,6 +31,11 @@ apply plugin: 'de.mannodermaus.android-junit5'
android {
compileSdk 33

// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty('namespace')) {
namespace 'xyz.luan.audioplayers'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
Expand Down
@@ -1,4 +1 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xyz.luan.audioplayers"
android:versionCode="1"
android:versionName="0.1.0" />
<manifest package="xyz.luan.audioplayers"/>

0 comments on commit 8d7b322

Please sign in to comment.