Uh oh!
There was an error while loading. Please reload this page.
Add fabric on iOS - #400
Conversation
BartoszKlonowski
commented
Jul 19, 2022
This PR is part of #380 - linking this to the issue. |
0db2976 to
3e5fde1CompareThere was a problem hiding this comment.
note: I've allowed myself to rebase your branch, as I saw there's a leftover in package lockfile with old npm version (your PR updates it correctly, but the updated version should be on main branch). I updated it on main and rebased your branch to avoid potential conflicts - sorry for inconvenience.
BartoszKlonowski
left a comment
There was a problem hiding this comment.
Looks like a decent base for further implementation 👍
I left some minor comments and we are missing some important props: trackImage, thumbImage and tapToSeek.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
c030233 to
8195867Compare
BartoszKlonowski
left a comment
There was a problem hiding this comment.
Just a couple of minor comments, a question and idea to bring back Pods caching.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (") | ||
| re='\(([-0-9A-Fa-f]+)\)' | ||
| [[ $device =~ $re ]] || exit 1 | ||
| xcodebuild -workspace example.xcworkspace -scheme example -destination "platform=iOS Simulator,id=${BASH_REMATCH[1]}" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build |
There was a problem hiding this comment.
Just wondering: Don't we have COMPILER_INDEX_STORE_ENABLED set to NO by default?
There was a problem hiding this comment.
It defaults to YES, and it gives us major speed improvements. Check this out:
Uh oh!
There was an error while loading. Please reload this page.
* Bring back Pods to cache * Use new-arch string in key for new arch cache * Try to reinstall pods instead of creating new * Separate deps installation between two caches * Rename Pods reinstall step
BartoszKlonowski
left a comment
There was a problem hiding this comment.
Huge amount of hard work, looks good 👍
Thank you!
This check is no longer needed.
* Add fabric on iOS (#400) * Update podspec file for fabric * Define codegen spec & move import to separate file * Add codegenConfig in package.json * Update podspec to detect .mm files * Change spec types to floats * Implement fabric component with props updating * Re-order functions, add accessibilityIncrements prop * Clean up imports, remove comment * Sort out props updating, remove unused functions * Add event handling * Add tapToSeek implementation * Fix tapToSeek * Handle images using bridge * Add missing typedef * Verify the build for new arch with GH Actions * Save new-arch Pods under new-arch cache key * Use Podfile.lock with old arch and regenerate for new one * Correct path for new arch Podfile.lock creation * Disable flipper in Podfile * Install pods with new arch flag * Fix tapToSeek on iOS * Allow value property to be controlled * Generate project.pbxproj for new arch * Separate npm & pods step in CI * Change step names, fix cache keys * Remove pods cache * Run npm install if cache was not found * Run build using xcodebuild * Fix: Pods-related error after using Pods from cache (#407) * Bring back Pods to cache * Use new-arch string in key for new arch cache * Try to reinstall pods instead of creating new * Separate deps installation between two caches * Rename Pods reinstall step * Remove explicit folly version, default to old arch * Add clean scripts in example for codegen cleanup * Change CI step names * Remove isFabricEnabled This check is no longer needed. Co-authored-by: BartoszKlonowski <Bartosz.Klonowski@callstack.com> * Add fabric on Android (#402) * Configure build.gradle * Update libraryName on android * Create ReactSlider shared implementation * Split implementations into oldarch and newarch * Dispatch events * Cleanup eventDispatcher * Make oldarch implementation use shared code * Add defaults to js spec * Clean up newarch ReactSliderManager * Reorder props to fix disabled state * Handle TestID setter * Move ReactSliderShadowNode to shared implementation * Share getExportedCustomDirectEventTypeConstants * Remove comments, add empty line
Summary:
requireNativeComponentto separate fileTest Plan:
iOS: Install pods using
RCT_NEW_ARCH_ENABLED=1 pod install