-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Android): Update readme.md with Gradle info.
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
# record Android | ||
|
||
Android specific implementation for record package called by record_platform_interface. | ||
Android specific implementation for record package called by record_platform_interface. | ||
|
||
## Setup | ||
### Plugin targets API level 34: | ||
|
||
You must set Android Gradle Plugin to at least version 8.1.1 for compatibility. | ||
|
||
In android/settings.gradle, apply: | ||
```groovy | ||
plugins { | ||
id "com.android.application" version "8.3.1" apply false | ||
... | ||
} | ||
``` | ||
|
||
### Plugin uses Java 17: | ||
|
||
You must set Gradle to at least version 7.3.0 for compatibility. | ||
|
||
Since we raised Android Gradle Plugin, minimum is version 8.4. | ||
|
||
In android/gradle/wrapper/gradle-wrapper.properties, apply: | ||
``` | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
``` | ||
|
||
or use `android/gradle/gradlew wrapper --gradle-version=8.7` | ||
|
||
For more info on how to update Gradle: | ||
https://developer.android.com/build/releases/gradle-plugin |