@ccrf01/react-native-template 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +28 -0
- package/.vscode/settings.json +15 -0
- package/README.md +58 -0
- package/package.json +16 -0
- package/template/.bundle/config +2 -0
- package/template/.env.development +1 -0
- package/template/.env.production +1 -0
- package/template/.eslintrc.js +392 -0
- package/template/.java-version +1 -0
- package/template/.prettierrc.js +5 -0
- package/template/.ruby-version +1 -0
- package/template/.watchmanconfig +1 -0
- package/template/Gemfile +23 -0
- package/template/Gemfile.lock +330 -0
- package/template/README.md +97 -0
- package/template/ReactotronConfig.js +17 -0
- package/template/__tests__/App.test.tsx +13 -0
- package/template/_gitignore +75 -0
- package/template/_node-version +1 -0
- package/template/android/app/build.gradle +162 -0
- package/template/android/app/debug.keystore +0 -0
- package/template/android/app/proguard-rules.pro +10 -0
- package/template/android/app/src/debug/AndroidManifest.xml +9 -0
- package/template/android/app/src/main/AndroidManifest.xml +26 -0
- package/template/android/app/src/main/java/com/projectname/MainActivity.kt +30 -0
- package/template/android/app/src/main/java/com/projectname/MainApplication.kt +27 -0
- package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
- package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/template/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/template/android/app/src/main/res/values/strings.xml +3 -0
- package/template/android/app/src/main/res/values/styles.xml +9 -0
- package/template/android/build.gradle +37 -0
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/template/android/gradle.properties +48 -0
- package/template/android/gradlew +251 -0
- package/template/android/gradlew.bat +99 -0
- package/template/android/keystore/keystore.properties +4 -0
- package/template/android/settings.gradle +6 -0
- package/template/android/version.properties +2 -0
- package/template/app.json +4 -0
- package/template/babel.config.js +38 -0
- package/template/fastlane/Fastfile +136 -0
- package/template/fastlane/Pluginfile +9 -0
- package/template/fastlane/README.md +46 -0
- package/template/index.js +9 -0
- package/template/ios/.xcode.env +11 -0
- package/template/ios/Podfile +35 -0
- package/template/ios/Podfile.lock +3669 -0
- package/template/ios/ProjectName/AppDelegate.swift +48 -0
- package/template/ios/ProjectName/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- package/template/ios/ProjectName/Images.xcassets/Contents.json +6 -0
- package/template/ios/ProjectName/Info.plist +66 -0
- package/template/ios/ProjectName/LaunchScreen.storyboard +47 -0
- package/template/ios/ProjectName/PrivacyInfo.xcprivacy +47 -0
- package/template/ios/ProjectName.xcodeproj/project.pbxproj +482 -0
- package/template/ios/ProjectName.xcodeproj/xcshareddata/xcschemes/ProjectName.xcscheme +88 -0
- package/template/ios/ProjectName.xcworkspace/contents.xcworkspacedata +10 -0
- package/template/jest.config.js +3 -0
- package/template/metro.config.js +20 -0
- package/template/package-lock.json +17073 -0
- package/template/package.json +156 -0
- package/template/src/@types/emotion.d.ts +12 -0
- package/template/src/@types/env.d.ts +3 -0
- package/template/src/@types/redux-persist-transform-immutable.d.ts +1 -0
- package/template/src/@types/typing.d.ts +17 -0
- package/template/src/AppContainer.tsx +109 -0
- package/template/src/assets/images/143.png +0 -0
- package/template/src/assets/index.ts +13 -0
- package/template/src/components/basic/BackButton/index.tsx +34 -0
- package/template/src/components/basic/Body/index.tsx +68 -0
- package/template/src/components/basic/Button/index.tsx +181 -0
- package/template/src/components/basic/Button/utils.ts +78 -0
- package/template/src/components/basic/ButtonGroup/index.tsx +182 -0
- package/template/src/components/basic/Card/index.tsx +3 -0
- package/template/src/components/basic/Container/index.tsx +38 -0
- package/template/src/components/basic/Content/index.tsx +87 -0
- package/template/src/components/basic/DropDown/index.tsx +354 -0
- package/template/src/components/basic/ExpandableOverlay/index.tsx +113 -0
- package/template/src/components/basic/Header/index.tsx +216 -0
- package/template/src/components/basic/Header/styles.ts +0 -0
- package/template/src/components/basic/Icons/index.tsx +131 -0
- package/template/src/components/basic/InputLabel/index.tsx +19 -0
- package/template/src/components/basic/LoadingOverlay/index.tsx +68 -0
- package/template/src/components/basic/MaterialTextInput/index.tsx +153 -0
- package/template/src/components/basic/NumberInput/index.tsx +53 -0
- package/template/src/components/basic/Picker/PickerContext.ts +7 -0
- package/template/src/components/basic/Picker/PickerHeader.tsx +130 -0
- package/template/src/components/basic/Picker/PickerItem.tsx +105 -0
- package/template/src/components/basic/Picker/PickerItemsList.tsx +135 -0
- package/template/src/components/basic/Picker/PickerPresenter.ts +54 -0
- package/template/src/components/basic/Picker/hooks/useImperativePickerHandle.ts +27 -0
- package/template/src/components/basic/Picker/hooks/usePickerLabel.ts +74 -0
- package/template/src/components/basic/Picker/hooks/usePickerSearch.ts +37 -0
- package/template/src/components/basic/Picker/hooks/usePickerSelection.ts +57 -0
- package/template/src/components/basic/Picker/index.tsx +284 -0
- package/template/src/components/basic/Picker/types.tsx +229 -0
- package/template/src/components/basic/PressableOpacity/index.tsx +20 -0
- package/template/src/components/basic/RootDialog/Dialog.tsx +246 -0
- package/template/src/components/basic/RootDialog/Manager.tsx +110 -0
- package/template/src/components/basic/RootDialog/animations/Animation.ts +29 -0
- package/template/src/components/basic/RootDialog/animations/FadeAnimation.ts +40 -0
- package/template/src/components/basic/RootDialog/animations/ScaleAnimation.ts +37 -0
- package/template/src/components/basic/RootDialog/animations/SlideAnimation.ts +89 -0
- package/template/src/components/basic/RootDialog/components/Backdrop.tsx +60 -0
- package/template/src/components/basic/RootDialog/components/BaseDialog.tsx +564 -0
- package/template/src/components/basic/RootDialog/components/BottomDialog.tsx +32 -0
- package/template/src/components/basic/RootDialog/components/DialogButton.tsx +87 -0
- package/template/src/components/basic/RootDialog/components/DialogContent.tsx +26 -0
- package/template/src/components/basic/RootDialog/components/DialogContext.tsx +8 -0
- package/template/src/components/basic/RootDialog/components/DialogFooter.tsx +42 -0
- package/template/src/components/basic/RootDialog/components/DialogTitle.tsx +53 -0
- package/template/src/components/basic/RootDialog/components/DraggableView.tsx +271 -0
- package/template/src/components/basic/RootDialog/index.ts +21 -0
- package/template/src/components/basic/RootDialog/type.ts +102 -0
- package/template/src/components/basic/Text/index.tsx +8 -0
- package/template/src/components/basic/index.ts +35 -0
- package/template/src/configs/constants/type/APIStatus.type.ts +8 -0
- package/template/src/configs/constants/type/Locale.type.ts +7 -0
- package/template/src/configs/constants/type/StorageKey.type.ts +7 -0
- package/template/src/configs/constants/type/ThemeType.type.ts +6 -0
- package/template/src/configs/constants/type/index.ts +11 -0
- package/template/src/configs/index.ts +22 -0
- package/template/src/contexts/ThemeContext.ts +6 -0
- package/template/src/hooks/useAppLoading.ts +26 -0
- package/template/src/hooks/useAppState.ts +36 -0
- package/template/src/hooks/useArray.ts +47 -0
- package/template/src/hooks/useAsync.ts +42 -0
- package/template/src/hooks/useAsyncStorage.ts +41 -0
- package/template/src/hooks/useBoolean.ts +21 -0
- package/template/src/hooks/useBuildTheme.ts +249 -0
- package/template/src/hooks/useCountDown.ts +111 -0
- package/template/src/hooks/useCounter.ts +27 -0
- package/template/src/hooks/useDebounce.ts +25 -0
- package/template/src/hooks/useDebouncedValidate.ts +32 -0
- package/template/src/hooks/useDebugInformation.ts +38 -0
- package/template/src/hooks/useDeviceToken.ts +20 -0
- package/template/src/hooks/useEncryptedStorage.ts +41 -0
- package/template/src/hooks/useFontFamily.ts +13 -0
- package/template/src/hooks/useHttp.ts +18 -0
- package/template/src/hooks/useInterval.ts +24 -0
- package/template/src/hooks/useIsForeground.ts +17 -0
- package/template/src/hooks/useMMKVStorage.ts +0 -0
- package/template/src/hooks/usePrevious.ts +12 -0
- package/template/src/hooks/useRenderCount.ts +10 -0
- package/template/src/hooks/useTheme.ts +17 -0
- package/template/src/hooks/useTimeCountDown.ts +91 -0
- package/template/src/index.tsx +65 -0
- package/template/src/infrastructures/NetClient/AbstractClient.ts +66 -0
- package/template/src/infrastructures/NetClient/ApiResponse.ts +16 -0
- package/template/src/infrastructures/NetClient/ApisauceClient.ts +76 -0
- package/template/src/infrastructures/NetClient/AxiosClient.ts +80 -0
- package/template/src/infrastructures/NetClient/FetchNetClient.ts +120 -0
- package/template/src/infrastructures/NetClient/config.ts +3 -0
- package/template/src/infrastructures/NetClient/interfaces/INetClient.ts +6 -0
- package/template/src/infrastructures/Storage/IStorage.ts +7 -0
- package/template/src/infrastructures/Storage/MMKVStorage.ts +41 -0
- package/template/src/infrastructures/common/Timeout.ts +27 -0
- package/template/src/infrastructures/common/colorUtils.ts +82 -0
- package/template/src/infrastructures/common/dateUtils.ts +39 -0
- package/template/src/infrastructures/common/logger.ts +115 -0
- package/template/src/locales/en-US/general.json +26 -0
- package/template/src/locales/en-US/index.ts +9 -0
- package/template/src/locales/en-US/screens.json +4 -0
- package/template/src/locales/en-US/setting.json +3 -0
- package/template/src/locales/i18n.ts +109 -0
- package/template/src/locales/zh-TW/general.json +26 -0
- package/template/src/locales/zh-TW/index.ts +9 -0
- package/template/src/locales/zh-TW/screens.json +4 -0
- package/template/src/locales/zh-TW/setting.json +3 -0
- package/template/src/models/index.ts +5 -0
- package/template/src/models/request.model.ts +50 -0
- package/template/src/navigators/DrawerNav/DrawerContent.tsx +66 -0
- package/template/src/navigators/DrawerNav/DrawerItem.tsx +261 -0
- package/template/src/navigators/DrawerNav/index.tsx +39 -0
- package/template/src/navigators/DrawerNav/props.ts +12 -0
- package/template/src/navigators/DrawerNav/types.ts +8 -0
- package/template/src/navigators/MainBottomTabNav/index.tsx +83 -0
- package/template/src/navigators/MainBottomTabNav/props.ts +16 -0
- package/template/src/navigators/MainBottomTabNav/types.ts +6 -0
- package/template/src/navigators/RootStack.tsx +43 -0
- package/template/src/navigators/index.tsx +40 -0
- package/template/src/navigators/props.ts +14 -0
- package/template/src/navigators/types.ts +18 -0
- package/template/src/navigators/utils.ts +68 -0
- package/template/src/redux/api/api.ts +41 -0
- package/template/src/redux/reducers/appSlice.ts +26 -0
- package/template/src/redux/reducers/index.ts +21 -0
- package/template/src/redux/reducers/nonPersistSlice.ts +51 -0
- package/template/src/redux/reducers/settingSlice.ts +48 -0
- package/template/src/redux/reducers/themeSlice.ts +55 -0
- package/template/src/redux/saga/index.ts +5 -0
- package/template/src/redux/saga/settingSaga.ts +21 -0
- package/template/src/redux/selectors/app.ts +9 -0
- package/template/src/redux/selectors/nonPersist.ts +23 -0
- package/template/src/redux/selectors/setting.ts +29 -0
- package/template/src/redux/selectors/theme.ts +13 -0
- package/template/src/redux/store/index.ts +79 -0
- package/template/src/redux/store/types.d.ts +5 -0
- package/template/src/screens/Home/index.tsx +146 -0
- package/template/src/screens/Settings/components/Item.tsx +45 -0
- package/template/src/screens/Settings/index.tsx +97 -0
- package/template/src/screens/Splash/index.tsx +53 -0
- package/template/src/services/Dialogs.tsx +226 -0
- package/template/src/services/PermissionCheck.ts +257 -0
- package/template/src/theme/Common.ts +48 -0
- package/template/src/theme/Fonts.ts +196 -0
- package/template/src/theme/Gutters.ts +63 -0
- package/template/src/theme/Icons.ts +28 -0
- package/template/src/theme/Images.ts +13 -0
- package/template/src/theme/Layout.ts +106 -0
- package/template/src/theme/Variables.ts +167 -0
- package/template/src/theme/components/Buttons.ts +37 -0
- package/template/src/theme/index.ts +8 -0
- package/template/src/theme/metrics.ts +57 -0
- package/template/src/theme/themes/default_dark/Images.ts +7 -0
- package/template/src/theme/themes/default_dark/Variables.ts +84 -0
- package/template/src/theme/themes/default_dark/index.ts +2 -0
- package/template/src/theme/themes/index.ts +8 -0
- package/template/src/theme/types.ts +152 -0
- package/template/src/utils/encrypt-helper.ts +118 -0
- package/template/src/utils/index.ts +76 -0
- package/template/src/utils/sys-info-data.ts +17 -0
- package/template/tsconfig.json +44 -0
- package/template.config.js +8 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: ['module:@react-native/babel-preset'],
|
|
3
|
+
env: {
|
|
4
|
+
production: {
|
|
5
|
+
plugins: [
|
|
6
|
+
'@emotion',
|
|
7
|
+
'react-native-paper/babel'
|
|
8
|
+
],
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
plugins: [
|
|
12
|
+
'@emotion',
|
|
13
|
+
[
|
|
14
|
+
'module-resolver',
|
|
15
|
+
{
|
|
16
|
+
root: ["."],
|
|
17
|
+
extensions: ['.ios.js', '.android.js', '.js', '.ts', '.tsx', '.json'],
|
|
18
|
+
alias: {
|
|
19
|
+
'@': './src',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
'react-native-worklets/plugin',
|
|
24
|
+
["module:react-native-dotenv", {
|
|
25
|
+
"envName": "APP_ENV",
|
|
26
|
+
"moduleName": "@env",
|
|
27
|
+
"path": ".env",
|
|
28
|
+
"blocklist": null,
|
|
29
|
+
"allowlist": null,
|
|
30
|
+
// "blacklist": null, // DEPRECATED
|
|
31
|
+
// "whitelist": null, // DEPRECATED
|
|
32
|
+
"safe": false,
|
|
33
|
+
"allowUndefined": true,
|
|
34
|
+
"verbose": false
|
|
35
|
+
}],
|
|
36
|
+
["@babel/plugin-transform-private-methods", { "loose": true }],
|
|
37
|
+
],
|
|
38
|
+
};
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
|
|
2
|
+
desc 'Increment package.json build, and set it to android and ios'
|
|
3
|
+
private_lane :inc_build do
|
|
4
|
+
inc_package_build
|
|
5
|
+
|
|
6
|
+
package = load_json(json_path: "./package.json")
|
|
7
|
+
set_properties_value(
|
|
8
|
+
key: "VERSION_CODE",
|
|
9
|
+
value: package['build'],
|
|
10
|
+
path: "./android/version.properties"
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
increment_build_number_in_xcodeproj(
|
|
14
|
+
xcodeproj: './ios/' + package['name'] + '.xcodeproj',
|
|
15
|
+
build_number: package['build']
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
desc 'Increment package.json version, and set it to android and ios.'
|
|
20
|
+
private_lane :inc_ver do
|
|
21
|
+
inc_package_ver
|
|
22
|
+
|
|
23
|
+
package = load_json(json_path: "./package.json")
|
|
24
|
+
version = package['version']
|
|
25
|
+
set_properties_value(
|
|
26
|
+
key: "VERSION_NAME",
|
|
27
|
+
value: version,
|
|
28
|
+
path: "./android/version.properties"
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
increment_version_number_in_xcodeproj(
|
|
32
|
+
xcodeproj: './ios/' + package['name'] + '.xcodeproj',
|
|
33
|
+
version_number: version
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
desc 'Increment build to package.json build.'
|
|
38
|
+
private_lane :inc_package_build do
|
|
39
|
+
package = load_json(json_path: "./package.json")
|
|
40
|
+
build = package['build'].to_i + 1
|
|
41
|
+
sh "npm pkg set build=#{build}"
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
desc 'Increment versionName to package.json version.'
|
|
45
|
+
private_lane :inc_package_ver do
|
|
46
|
+
sh "npm version patch --no-git-tag-version"
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
desc 'Set package.json build to android and ios.'
|
|
50
|
+
private_lane :set_package_build do
|
|
51
|
+
package = load_json(json_path: "./package.json")
|
|
52
|
+
build_value = package['build']
|
|
53
|
+
set_properties_value(
|
|
54
|
+
key: "VERSION_CODE",
|
|
55
|
+
value: build_value,
|
|
56
|
+
path: "./android/version.properties"
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
increment_build_number_in_xcodeproj(
|
|
60
|
+
xcodeproj: './ios/' + package['name'] + '.xcodeproj',
|
|
61
|
+
build_number: build_value
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
desc 'Set package.json version to android and ios.'
|
|
66
|
+
private_lane :set_package_ver do
|
|
67
|
+
package = load_json(json_path: "./package.json")
|
|
68
|
+
version = package['version']
|
|
69
|
+
set_properties_value(
|
|
70
|
+
key: "VERSION_NAME",
|
|
71
|
+
value: version,
|
|
72
|
+
path: "./android/version.properties"
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
increment_version_number_in_xcodeproj(
|
|
76
|
+
xcodeproj: './ios/' + package['name'] + '.xcodeproj',
|
|
77
|
+
version_number: version
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# desc 'Android: Increment build number'
|
|
82
|
+
# private_lane :inc_and_build do
|
|
83
|
+
# increment_version_code_in_properties_file(
|
|
84
|
+
# key: "VERSION_CODE",
|
|
85
|
+
# path: "./android/version.properties"
|
|
86
|
+
# )
|
|
87
|
+
# end
|
|
88
|
+
|
|
89
|
+
# desc 'iOS: Increment build number'
|
|
90
|
+
# private_lane :inc_ios_build do
|
|
91
|
+
# increment_build_number_in_xcodeproj(
|
|
92
|
+
# xcodeproj: './ios/' + package['name'] + '.xcodeproj',
|
|
93
|
+
# )
|
|
94
|
+
# end
|
|
95
|
+
|
|
96
|
+
# desc 'Android: Increment version.'
|
|
97
|
+
# private_lane :inc_and_ver do
|
|
98
|
+
# package = load_json(json_path: "./package.json")
|
|
99
|
+
# set_properties_value(
|
|
100
|
+
# key: "VERSION_NAME",
|
|
101
|
+
# value: package['version'],
|
|
102
|
+
# path: "./android/version.properties"
|
|
103
|
+
# )
|
|
104
|
+
# end
|
|
105
|
+
|
|
106
|
+
# desc 'iOS: Increment version'
|
|
107
|
+
# private_lane :inc_ios_ver do
|
|
108
|
+
# package = load_json(json_path: "./package.json")
|
|
109
|
+
# increment_version_number_in_xcodeproj(
|
|
110
|
+
# xcodeproj: './ios/' + package['name'] + '.xcodeproj',
|
|
111
|
+
# # version_number: package['version']
|
|
112
|
+
# bump_type: 'patch'
|
|
113
|
+
# )
|
|
114
|
+
# end
|
|
115
|
+
|
|
116
|
+
desc 'Bump version name, and set the version to match the pacakage.json version.'
|
|
117
|
+
lane :bump_ver do
|
|
118
|
+
inc_ver
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
desc 'Bump build numbers'
|
|
122
|
+
lane :bump_build do
|
|
123
|
+
inc_build
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
desc 'Bump version and build numbers'
|
|
127
|
+
lane :bump do
|
|
128
|
+
inc_ver
|
|
129
|
+
inc_build
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
desc 'Set version and build from package.json'
|
|
133
|
+
lane :set_ver do
|
|
134
|
+
set_package_ver
|
|
135
|
+
set_package_build
|
|
136
|
+
end
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Autogenerated by fastlane
|
|
2
|
+
#
|
|
3
|
+
# Ensure this file is checked in to source control!
|
|
4
|
+
|
|
5
|
+
gem 'fastlane-plugin-increment_version_name'
|
|
6
|
+
gem 'fastlane-plugin-increment_version_code'
|
|
7
|
+
gem 'fastlane-plugin-load_json'
|
|
8
|
+
gem 'fastlane-plugin-properties'
|
|
9
|
+
gem 'fastlane-plugin-versioning'
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
fastlane documentation
|
|
2
|
+
----
|
|
3
|
+
|
|
4
|
+
# Installation
|
|
5
|
+
|
|
6
|
+
Make sure you have the latest version of the Xcode command line tools installed:
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
xcode-select --install
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
|
|
13
|
+
|
|
14
|
+
# Available Actions
|
|
15
|
+
|
|
16
|
+
### bump_ver
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
[bundle exec] fastlane bump_ver
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Bump version name, and set the version to match the pacakage.json version.
|
|
23
|
+
|
|
24
|
+
### bump_build
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
[bundle exec] fastlane bump_build
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Bump build numbers
|
|
31
|
+
|
|
32
|
+
### bump
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
[bundle exec] fastlane bump
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Bump version and build numbers
|
|
39
|
+
|
|
40
|
+
----
|
|
41
|
+
|
|
42
|
+
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
|
|
43
|
+
|
|
44
|
+
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
|
|
45
|
+
|
|
46
|
+
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# This `.xcode.env` file is versioned and is used to source the environment
|
|
2
|
+
# used when running script phases inside Xcode.
|
|
3
|
+
# To customize your local environment, you can create an `.xcode.env.local`
|
|
4
|
+
# file that is not versioned.
|
|
5
|
+
|
|
6
|
+
# NODE_BINARY variable contains the PATH to the node executable.
|
|
7
|
+
#
|
|
8
|
+
# Customize the NODE_BINARY variable here.
|
|
9
|
+
# For example, to use nvm with brew, add the following line
|
|
10
|
+
# . "$(brew --prefix nvm)/nvm.sh" --no-use
|
|
11
|
+
export NODE_BINARY=$(command -v node)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Resolve react_native_pods.rb with node to allow for hoisting
|
|
2
|
+
require Pod::Executable.execute_command('node', ['-p',
|
|
3
|
+
'require.resolve(
|
|
4
|
+
"react-native/scripts/react_native_pods.rb",
|
|
5
|
+
{paths: [process.argv[1]]},
|
|
6
|
+
)', __dir__]).strip
|
|
7
|
+
|
|
8
|
+
platform :ios, min_ios_version_supported
|
|
9
|
+
prepare_react_native_project!
|
|
10
|
+
|
|
11
|
+
linkage = ENV['USE_FRAMEWORKS']
|
|
12
|
+
if linkage != nil
|
|
13
|
+
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
|
|
14
|
+
use_frameworks! :linkage => linkage.to_sym
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
target 'ProjectName' do
|
|
18
|
+
config = use_native_modules!
|
|
19
|
+
|
|
20
|
+
use_react_native!(
|
|
21
|
+
:path => config[:reactNativePath],
|
|
22
|
+
# An absolute path to your application root.
|
|
23
|
+
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
post_install do |installer|
|
|
27
|
+
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
|
|
28
|
+
react_native_post_install(
|
|
29
|
+
installer,
|
|
30
|
+
config[:reactNativePath],
|
|
31
|
+
:mac_catalyst_enabled => false,
|
|
32
|
+
# :ccache_enabled => true
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
end
|