-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding support for Compose assets and reference assets #537
base: main
Are you sure you want to change the base?
Conversation
1380dc3
to
e6992b6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #537 +/- ##
=======================================
Coverage 89.75% 89.76%
=======================================
Files 331 331
Lines 19836 19836
Branches 1949 1949
=======================================
+ Hits 17804 17805 +1
+ Misses 2018 2017 -1
Partials 14 14 ☔ View full report in Codecov by Sentry. |
9a1e5cf
to
043d251
Compare
043d251
to
8f25d41
Compare
8f25d41
to
f44ae2f
Compare
/canary |
3 similar comments
/canary |
/canary |
/canary |
d4b7917
to
ab8d9c0
Compare
0fee23f
to
cfa784d
Compare
cfa784d
to
273db6d
Compare
@@ -9,8 +9,7 @@ It's been tested on Andriod Studio Chipmunk(2021.2.1) and Android Studio Giraffe | |||
Assuming you have read the [requirements on the root contributing guide](https://github.com/player-ui/player/blob/main/CONTRIBUTING.md). | |||
|
|||
1. Once you have Android Studio installed, you will need to go to tools->SDK Manager->SDK Platforms. | |||
1. Make sure you have **only** the following SDK installed: Android API 32. | |||
*If you are using Android Giraffe, you may need to click on show package details and it will be under Android12L. (Android SDK Platrform 32)* | |||
1. Make sure you have **only** the following SDK installed: Android API 33. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if this is needed but I couldnt get it to build with API 32
@@ -186,7 +186,7 @@ public constructor(public val assetContext: AssetContext) : NodeWrapper { | |||
.render() | |||
|
|||
/** Render a [View] with specific [styles] */ | |||
public fun RenderableAsset.render(@StyleRes styles: Styles): View = assetContext | |||
public fun RenderableAsset.render(@StyleRes styles: Styles?): View = assetContext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated these to avoid have to call multiple render implementations here
Any concerns?
rules_kotlin_extensions.kotlinc_version( | ||
sha256 = "9db4b467743c1aea8a21c08e1c286bc2aeb93f14c7ba2037dbd8f48adc357d83", | ||
version = "1.7.22", | ||
sha256 = "5e3c8d0f965410ff12e90d6f8dc5df2fc09fd595a684d514616851ce7e94ae7d", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason in particular we have to downgrade rules versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was mainly due to point 5 in the PR description. This was the highest version I could stay at with the least amount of changes. I will give another combination of dependencies a shot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried to upgrade to a few different versions till v1.8.20 but all such changes open a can of worms that require several other dependencies to be updated
Definitely not something that needs to be in this PR, but for completeness across platforms, we should probably add issues to replicate the Badge component on all the other platforms |
Makes sense. I will create those issues once this PR merges so that I can link the Android code |
273db6d
to
e0474c5
Compare
This PR adds:
2. Adding reference assets using Jetpack Compose - Collection and Badge (Create Jetpack Compose Reference Assets #90)
Relevant files:
@Composable
calls, I ended up working directly with ProvidedValues.Change Type (required)
Indicate the type of change your pull request is:
patch
minor
major
Does your PR have any documentation updates?