Skip to content

Commit

Permalink
chore: add support for upcoming 0.73 (#1038)
Browse files Browse the repository at this point in the history
* chore: add support for upcoming 0.73

reference: react-native-community/discussions-and-proposals#671

* chore: revert xml def

* fix: backward compatiblity for AGP namespace
  • Loading branch information
matinzd committed Jul 21, 2023
1 parent 076de43 commit 4579e5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
6 changes: 6 additions & 0 deletions packages/core/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ if (isNewArchitectureEnabled()) {
}

android {
def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
// Check AGP version for backward compatibility reasons
if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
namespace = "com.airbnb.android.react.lottie"
}

compileSdk getExtOrDefault('compileSdkVersion', 31)

// Used to override the NDK path/version on internal CI or by allowing
Expand Down
9 changes: 3 additions & 6 deletions packages/core/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.airbnb.android.react.lottie"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET"/>
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.airbnb.android.react.lottie">
</manifest>

0 comments on commit 4579e5f

Please sign in to comment.