Patch draggable-flatlist with fix for reanimated 3 (#1346)

* Temporarily comment out Android in Fastfile build lane

* Fix: make draggable flatlist work with reanimated 3

* Add lib and commonjs library patch
This commit is contained in:
Amanda Bullington
2024-04-02 15:54:16 -07:00
committed by GitHub
parent cee68a073f
commit 0e71fb5062
4 changed files with 394 additions and 42 deletions

2
.gitignore vendored
View File

@@ -72,6 +72,8 @@ fastlane/Appfile
# Apple signing and auth files that fastlane might download # Apple signing and auth files that fastlane might download
*.cer *.cer
*.mobileprovision *.mobileprovision
*.certSigningRequest
*.p12
# Detox e2e test artifacts # Detox e2e test artifacts
artifacts/ artifacts/

View File

@@ -310,7 +310,8 @@ end
lane :build do lane :build do
desc "Build release files for all platforms" desc "Build release files for all platforms"
Fastlane::LaneManager.cruise_lane "ios", "build" Fastlane::LaneManager.cruise_lane "ios", "build"
Fastlane::LaneManager.cruise_lane "android", "build" # commenting out temporarily to avoid building in Android
# Fastlane::LaneManager.cruise_lane "android", "build"
end end
lane :clean do lane :clean do
@@ -347,49 +348,51 @@ lane :release do
build build
apk_path = File.expand_path( get_apk_path( build_number ) ) # commenting out temporarily to avoid building in Android
if File.exist?( apk_path ) # apk_path = File.expand_path( get_apk_path( build_number ) )
UI.success "Found APK at #{apk_path}" # if File.exist?( apk_path )
else # UI.success "Found APK at #{apk_path}"
UI.abort_with_message! "Failed to find APK at #{apk_path}" # else
end # UI.abort_with_message! "Failed to find APK at #{apk_path}"
# end
github_release = get_github_release( # github_release = get_github_release(
url: "inaturalist/iNaturalistReactNative", # url: "inaturalist/iNaturalistReactNative",
version: last_tag, # version: last_tag,
api_token: ENV["GITHUB_TOKEN"] # api_token: ENV["GITHUB_TOKEN"]
) # )
if github_release # if github_release
UI.important "Release already exists at #{github_release['url']}. You need to manually upload any missing assets." # UI.important "Release already exists at #{github_release['url']}. You need to manually upload any missing assets."
else # else
set_github_release( # set_github_release(
repository_name: "inaturalist/iNaturalistReactNative", # repository_name: "inaturalist/iNaturalistReactNative",
api_token: ENV["GITHUB_TOKEN"], # api_token: ENV["GITHUB_TOKEN"],
name: last_tag, # name: last_tag,
tag_name: last_tag, # tag_name: last_tag,
description: begin # description: begin
File.read( changelog_path ) # File.read( changelog_path )
rescue StandardError # rescue StandardError
nil # nil
end, # end,
# This is really just a fallback in case last_tag isn't really a tag # # This is really just a fallback in case last_tag isn't really a tag
commitish: "main", # commitish: "main",
upload_assets: [apk_path] # upload_assets: [apk_path]
) # )
end # end
system "git checkout #{original_branch}", exception: true system "git checkout #{original_branch}", exception: true
end end
lane :internal do lane :internal do
desc "Push builds for the latest tag for internal testing" desc "Push builds for the latest tag for internal testing"
# commenting out temporarily to avoid building in Android
# Ensure build files exist for the latest tag # Ensure build files exist for the latest tag
aab_path = get_aab_path # aab_path = get_aab_path
unless File.exist?( aab_path ) # unless File.exist?( aab_path )
UI.abort_with_message! <<~MSG # UI.abort_with_message! <<~MSG
AAB does not exist at #{aab_path}. You may need to run the release lane before doing this. # AAB does not exist at #{aab_path}. You may need to run the release lane before doing this.
MSG # MSG
end # end
last_tag = last_git_tag last_tag = last_git_tag
if last_tag.nil? || last_tag.empty? if last_tag.nil? || last_tag.empty?
UI.abort_with_message! "No tags have been added yet. Try starting with `fastlane tag`" UI.abort_with_message! "No tags have been added yet. Try starting with `fastlane tag`"
@@ -401,11 +404,12 @@ lane :internal do
created when you ran `fastlane tag`. created when you ran `fastlane tag`.
MSG MSG
end end
upload_to_play_store( # commenting out temporarily to avoid building in Android
aab: aab_path, # upload_to_play_store(
track: "internal", # aab: aab_path,
version_name: last_tag # track: "internal",
) # version_name: last_tag
# )
upload_to_testflight( upload_to_testflight(
ipa: get_ipa_path, ipa: get_ipa_path,

View File

@@ -210,6 +210,7 @@ GEM
PLATFORMS PLATFORMS
arm64-darwin-21 arm64-darwin-21
ruby
x86_64-darwin-21 x86_64-darwin-21
DEPENDENCIES DEPENDENCIES

View File

File diff suppressed because one or more lines are too long