react-native-mask-segment-c.../ios/offline_pods.rb
a1518 8bc66a4ee9
Some checks failed
Publish to npm / publish (push) Has been cancelled
refactor: remove Chinese, add build obfuscation, polish README
- Remove all Chinese characters from src/, example/, ios/, patches/, tests/
- Add esbuild-based build obfuscation (minify + identifier mangle + no sourcemaps)
- Drop src/ from npm publish, only ship minified dist/
- Remove source maps and declaration maps from build output
- Add README icons and visual polish throughout
- Fix broken Table of Contents anchor links in README

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-01 19:07:32 -07:00

28 lines
981 B
Ruby

# Use GitHub mirror when CocoaPods pulls React Native third-party libraries, to resolve github.com SSL/connection failures
require_relative '../node_modules/react-native/scripts/cocoapods/helpers.rb'
github_mirror = ENV.fetch('COCOAPODS_GITHUB_MIRROR', 'https://ghproxy.net/https://github.com')
def mirror_git(base, repo_path)
"#{base}/#{repo_path}.git"
end
Helpers::Constants.set_double_conversion_config(
:git => mirror_git(github_mirror, 'google/double-conversion'),
)
Helpers::Constants.set_glog_config(
:git => mirror_git(github_mirror, 'google/glog'),
)
Helpers::Constants.set_folly_config(
:git => mirror_git(github_mirror, 'facebook/folly'),
)
Helpers::Constants.set_boost_config(
:git => mirror_git(github_mirror, 'react-native-community/boost-for-react-native'),
)
Helpers::Constants.set_fmt_config(
:git => mirror_git(github_mirror, 'fmtlib/fmt'),
)
Helpers::Constants.set_fast_float_config(
:git => mirror_git(github_mirror, 'fastfloat/fast_float'),
)