Skip to content

Commit

Permalink
Update Readme for LayoutLib publish (cashapp#1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-powell authored Mar 1, 2024
1 parent 88d57c2 commit 5fcbf24
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions libs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,8 @@ Note that layoutlib's version tracks [Android Studio Releases][studio_releases]
layoutlib = "2022.2.1-5128371"
layoutlibPrebuiltSha = "5128371"
```
5. Build and upload:
```
./gradlew publishMavenNativeLibraryPublicationToMavenCentralRepository
```
This may take a few minutes. It clones a large repo (2.4 GiB) and then uploads a large artifact
(30 MiB) to Maven Central.
6. Visit [Sonatype Nexus][nexus] to promote the artifact. Or drop it if there is a problem!
5. Create a branch that matches the `**/publish-layoutlib**` filter and push to GitHub.
6. Go to [GitHub Actions][publish_action] and run the `publish-layoutlib` action using this branch.
7. Once deploy is live, continue with changeset from step 4 to update Paparazzi to consume this
latest version. Here's an [example PR][dolphin_bump].

Expand All @@ -49,6 +42,6 @@ In `~/.gradle/gradle.properties`, set the following:
[android_studio]: https://developer.android.com/studio
[studio_releases]: https://developer.android.com/studio/releases
[studio_versions]: https://developer.android.com/studio/releases#android_gradle_plugin_and_android_studio_compatibility
[nexus]: https://oss.sonatype.org/
[prebuilt_refs]: https://android.googlesource.com/platform/prebuilts/studio/layoutlib/+refs
[dolphin_bump]: https://github.com/cashapp/paparazzi/pull/639
[publish_action]: https://github.com/cashapp/paparazzi/actions/workflows/publish-layoutlib.yml

0 comments on commit 5fcbf24

Please sign in to comment.