Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
uses: ./.github/actions/setup

- name: Cache turborepo for Android
id: turbo-cache-android
uses: actions/cache@v4
with:
path: ${{ env.TURBO_CACHE_DIR }}
Expand Down Expand Up @@ -144,6 +145,7 @@ jobs:
- name: Build example for Android
env:
JAVA_OPTS: "-XX:MaxHeapSize=6g"
TURBO_FORCE: ${{ steps.turbo-cache-android.outputs.cache-hit != 'true' }}
run: |
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"

Expand All @@ -160,6 +162,7 @@ jobs:
uses: ./.github/actions/setup

- name: Cache turborepo for iOS
id: turbo-cache-ios
uses: actions/cache@v4
with:
path: ${{ env.TURBO_CACHE_DIR }}
Expand Down Expand Up @@ -208,5 +211,7 @@ jobs:
key: ${{ steps.cocoapods-cache.outputs.cache-key }}

- name: Build example for iOS
env:
TURBO_FORCE: ${{ steps.turbo-cache-ios.outputs.cache-hit != 'true' }}
run: |
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@ class HybridRiveFile : HybridRiveFileSpec() {
val assetsData = referencedAssets.data ?: return
val cache = referencedAssetCache ?: return
val loader = assetLoader ?: return
val context = NitroModules.applicationContext ?: return

val loadJobs = mutableListOf<kotlinx.coroutines.Deferred<Unit>>()

for ((key, assetData) in assetsData) {
val asset = cache[key] ?: continue
loadJobs.add(loader.updateAsset(assetData, asset, context))
loadJobs.add(loader.updateAsset(assetData, asset))
}

if (loadJobs.isNotEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class HybridViewModelImageProperty(private val viewModelImage: ViewModelImagePro
}

override fun addListener(onChanged: () -> Unit) {
listeners.add(onChanged)
listeners.add { _ -> onChanged() }
ensureValueListenerJob(viewModelImage.valueFlow.map { })
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading