@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,330 @@
|
|
|
1
|
+
GEM
|
|
2
|
+
remote: https://rubygems.org/
|
|
3
|
+
specs:
|
|
4
|
+
CFPropertyList (3.0.7)
|
|
5
|
+
base64
|
|
6
|
+
nkf
|
|
7
|
+
rexml
|
|
8
|
+
abbrev (0.1.2)
|
|
9
|
+
activesupport (7.1.5.2)
|
|
10
|
+
base64
|
|
11
|
+
benchmark (>= 0.3)
|
|
12
|
+
bigdecimal
|
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
|
+
connection_pool (>= 2.2.5)
|
|
15
|
+
drb
|
|
16
|
+
i18n (>= 1.6, < 2)
|
|
17
|
+
logger (>= 1.4.2)
|
|
18
|
+
minitest (>= 5.1)
|
|
19
|
+
mutex_m
|
|
20
|
+
securerandom (>= 0.3)
|
|
21
|
+
tzinfo (~> 2.0)
|
|
22
|
+
addressable (2.8.7)
|
|
23
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
24
|
+
algoliasearch (1.27.5)
|
|
25
|
+
httpclient (~> 2.8, >= 2.8.3)
|
|
26
|
+
json (>= 1.5.1)
|
|
27
|
+
artifactory (3.0.17)
|
|
28
|
+
atomos (0.1.3)
|
|
29
|
+
aws-eventstream (1.4.0)
|
|
30
|
+
aws-partitions (1.1160.0)
|
|
31
|
+
aws-sdk-core (3.232.0)
|
|
32
|
+
aws-eventstream (~> 1, >= 1.3.0)
|
|
33
|
+
aws-partitions (~> 1, >= 1.992.0)
|
|
34
|
+
aws-sigv4 (~> 1.9)
|
|
35
|
+
base64
|
|
36
|
+
bigdecimal
|
|
37
|
+
jmespath (~> 1, >= 1.6.1)
|
|
38
|
+
logger
|
|
39
|
+
aws-sdk-kms (1.112.0)
|
|
40
|
+
aws-sdk-core (~> 3, >= 3.231.0)
|
|
41
|
+
aws-sigv4 (~> 1.5)
|
|
42
|
+
aws-sdk-s3 (1.199.0)
|
|
43
|
+
aws-sdk-core (~> 3, >= 3.231.0)
|
|
44
|
+
aws-sdk-kms (~> 1)
|
|
45
|
+
aws-sigv4 (~> 1.5)
|
|
46
|
+
aws-sigv4 (1.12.1)
|
|
47
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
|
48
|
+
babosa (1.0.4)
|
|
49
|
+
base64 (0.3.0)
|
|
50
|
+
benchmark (0.4.1)
|
|
51
|
+
bigdecimal (3.2.3)
|
|
52
|
+
claide (1.1.0)
|
|
53
|
+
cocoapods (1.15.2)
|
|
54
|
+
addressable (~> 2.8)
|
|
55
|
+
claide (>= 1.0.2, < 2.0)
|
|
56
|
+
cocoapods-core (= 1.15.2)
|
|
57
|
+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
|
|
58
|
+
cocoapods-downloader (>= 2.1, < 3.0)
|
|
59
|
+
cocoapods-plugins (>= 1.0.0, < 2.0)
|
|
60
|
+
cocoapods-search (>= 1.0.0, < 2.0)
|
|
61
|
+
cocoapods-trunk (>= 1.6.0, < 2.0)
|
|
62
|
+
cocoapods-try (>= 1.1.0, < 2.0)
|
|
63
|
+
colored2 (~> 3.1)
|
|
64
|
+
escape (~> 0.0.4)
|
|
65
|
+
fourflusher (>= 2.3.0, < 3.0)
|
|
66
|
+
gh_inspector (~> 1.0)
|
|
67
|
+
molinillo (~> 0.8.0)
|
|
68
|
+
nap (~> 1.0)
|
|
69
|
+
ruby-macho (>= 2.3.0, < 3.0)
|
|
70
|
+
xcodeproj (>= 1.23.0, < 2.0)
|
|
71
|
+
cocoapods-core (1.15.2)
|
|
72
|
+
activesupport (>= 5.0, < 8)
|
|
73
|
+
addressable (~> 2.8)
|
|
74
|
+
algoliasearch (~> 1.0)
|
|
75
|
+
concurrent-ruby (~> 1.1)
|
|
76
|
+
fuzzy_match (~> 2.0.4)
|
|
77
|
+
nap (~> 1.0)
|
|
78
|
+
netrc (~> 0.11)
|
|
79
|
+
public_suffix (~> 4.0)
|
|
80
|
+
typhoeus (~> 1.0)
|
|
81
|
+
cocoapods-deintegrate (1.0.5)
|
|
82
|
+
cocoapods-downloader (2.1)
|
|
83
|
+
cocoapods-plugins (1.0.0)
|
|
84
|
+
nap
|
|
85
|
+
cocoapods-search (1.0.1)
|
|
86
|
+
cocoapods-trunk (1.6.0)
|
|
87
|
+
nap (>= 0.8, < 2.0)
|
|
88
|
+
netrc (~> 0.11)
|
|
89
|
+
cocoapods-try (1.2.0)
|
|
90
|
+
colored (1.2)
|
|
91
|
+
colored2 (3.1.2)
|
|
92
|
+
commander (4.6.0)
|
|
93
|
+
highline (~> 2.0.0)
|
|
94
|
+
concurrent-ruby (1.3.3)
|
|
95
|
+
connection_pool (2.5.4)
|
|
96
|
+
declarative (0.0.20)
|
|
97
|
+
digest-crc (0.7.0)
|
|
98
|
+
rake (>= 12.0.0, < 14.0.0)
|
|
99
|
+
domain_name (0.6.20240107)
|
|
100
|
+
dotenv (2.8.1)
|
|
101
|
+
drb (2.2.3)
|
|
102
|
+
emoji_regex (3.2.3)
|
|
103
|
+
escape (0.0.4)
|
|
104
|
+
ethon (0.15.0)
|
|
105
|
+
ffi (>= 1.15.0)
|
|
106
|
+
excon (0.112.0)
|
|
107
|
+
faraday (1.10.4)
|
|
108
|
+
faraday-em_http (~> 1.0)
|
|
109
|
+
faraday-em_synchrony (~> 1.0)
|
|
110
|
+
faraday-excon (~> 1.1)
|
|
111
|
+
faraday-httpclient (~> 1.0)
|
|
112
|
+
faraday-multipart (~> 1.0)
|
|
113
|
+
faraday-net_http (~> 1.0)
|
|
114
|
+
faraday-net_http_persistent (~> 1.0)
|
|
115
|
+
faraday-patron (~> 1.0)
|
|
116
|
+
faraday-rack (~> 1.0)
|
|
117
|
+
faraday-retry (~> 1.0)
|
|
118
|
+
ruby2_keywords (>= 0.0.4)
|
|
119
|
+
faraday-cookie_jar (0.0.7)
|
|
120
|
+
faraday (>= 0.8.0)
|
|
121
|
+
http-cookie (~> 1.0.0)
|
|
122
|
+
faraday-em_http (1.0.0)
|
|
123
|
+
faraday-em_synchrony (1.0.1)
|
|
124
|
+
faraday-excon (1.1.0)
|
|
125
|
+
faraday-httpclient (1.0.1)
|
|
126
|
+
faraday-multipart (1.1.1)
|
|
127
|
+
multipart-post (~> 2.0)
|
|
128
|
+
faraday-net_http (1.0.2)
|
|
129
|
+
faraday-net_http_persistent (1.2.0)
|
|
130
|
+
faraday-patron (1.0.0)
|
|
131
|
+
faraday-rack (1.0.0)
|
|
132
|
+
faraday-retry (1.0.3)
|
|
133
|
+
faraday_middleware (1.2.1)
|
|
134
|
+
faraday (~> 1.0)
|
|
135
|
+
fastimage (2.4.0)
|
|
136
|
+
fastlane (2.228.0)
|
|
137
|
+
CFPropertyList (>= 2.3, < 4.0.0)
|
|
138
|
+
addressable (>= 2.8, < 3.0.0)
|
|
139
|
+
artifactory (~> 3.0)
|
|
140
|
+
aws-sdk-s3 (~> 1.0)
|
|
141
|
+
babosa (>= 1.0.3, < 2.0.0)
|
|
142
|
+
bundler (>= 1.12.0, < 3.0.0)
|
|
143
|
+
colored (~> 1.2)
|
|
144
|
+
commander (~> 4.6)
|
|
145
|
+
dotenv (>= 2.1.1, < 3.0.0)
|
|
146
|
+
emoji_regex (>= 0.1, < 4.0)
|
|
147
|
+
excon (>= 0.71.0, < 1.0.0)
|
|
148
|
+
faraday (~> 1.0)
|
|
149
|
+
faraday-cookie_jar (~> 0.0.6)
|
|
150
|
+
faraday_middleware (~> 1.0)
|
|
151
|
+
fastimage (>= 2.1.0, < 3.0.0)
|
|
152
|
+
fastlane-sirp (>= 1.0.0)
|
|
153
|
+
gh_inspector (>= 1.1.2, < 2.0.0)
|
|
154
|
+
google-apis-androidpublisher_v3 (~> 0.3)
|
|
155
|
+
google-apis-playcustomapp_v1 (~> 0.1)
|
|
156
|
+
google-cloud-env (>= 1.6.0, < 2.0.0)
|
|
157
|
+
google-cloud-storage (~> 1.31)
|
|
158
|
+
highline (~> 2.0)
|
|
159
|
+
http-cookie (~> 1.0.5)
|
|
160
|
+
json (< 3.0.0)
|
|
161
|
+
jwt (>= 2.1.0, < 3)
|
|
162
|
+
mini_magick (>= 4.9.4, < 5.0.0)
|
|
163
|
+
multipart-post (>= 2.0.0, < 3.0.0)
|
|
164
|
+
naturally (~> 2.2)
|
|
165
|
+
optparse (>= 0.1.1, < 1.0.0)
|
|
166
|
+
plist (>= 3.1.0, < 4.0.0)
|
|
167
|
+
rubyzip (>= 2.0.0, < 3.0.0)
|
|
168
|
+
security (= 0.1.5)
|
|
169
|
+
simctl (~> 1.6.3)
|
|
170
|
+
terminal-notifier (>= 2.0.0, < 3.0.0)
|
|
171
|
+
terminal-table (~> 3)
|
|
172
|
+
tty-screen (>= 0.6.3, < 1.0.0)
|
|
173
|
+
tty-spinner (>= 0.8.0, < 1.0.0)
|
|
174
|
+
word_wrap (~> 1.0.0)
|
|
175
|
+
xcodeproj (>= 1.13.0, < 2.0.0)
|
|
176
|
+
xcpretty (~> 0.4.1)
|
|
177
|
+
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
|
|
178
|
+
fastlane-plugin-increment_version_code (0.4.3)
|
|
179
|
+
fastlane-plugin-increment_version_name (0.0.10)
|
|
180
|
+
fastlane-plugin-load_json (0.0.1)
|
|
181
|
+
fastlane-plugin-properties (1.1.2)
|
|
182
|
+
java-properties
|
|
183
|
+
fastlane-plugin-versioning (0.7.1)
|
|
184
|
+
fastlane-sirp (1.0.0)
|
|
185
|
+
sysrandom (~> 1.0)
|
|
186
|
+
ffi (1.17.2)
|
|
187
|
+
fourflusher (2.3.1)
|
|
188
|
+
fuzzy_match (2.0.4)
|
|
189
|
+
gh_inspector (1.1.3)
|
|
190
|
+
google-apis-androidpublisher_v3 (0.54.0)
|
|
191
|
+
google-apis-core (>= 0.11.0, < 2.a)
|
|
192
|
+
google-apis-core (0.11.3)
|
|
193
|
+
addressable (~> 2.5, >= 2.5.1)
|
|
194
|
+
googleauth (>= 0.16.2, < 2.a)
|
|
195
|
+
httpclient (>= 2.8.1, < 3.a)
|
|
196
|
+
mini_mime (~> 1.0)
|
|
197
|
+
representable (~> 3.0)
|
|
198
|
+
retriable (>= 2.0, < 4.a)
|
|
199
|
+
rexml
|
|
200
|
+
google-apis-iamcredentials_v1 (0.17.0)
|
|
201
|
+
google-apis-core (>= 0.11.0, < 2.a)
|
|
202
|
+
google-apis-playcustomapp_v1 (0.13.0)
|
|
203
|
+
google-apis-core (>= 0.11.0, < 2.a)
|
|
204
|
+
google-apis-storage_v1 (0.31.0)
|
|
205
|
+
google-apis-core (>= 0.11.0, < 2.a)
|
|
206
|
+
google-cloud-core (1.8.0)
|
|
207
|
+
google-cloud-env (>= 1.0, < 3.a)
|
|
208
|
+
google-cloud-errors (~> 1.0)
|
|
209
|
+
google-cloud-env (1.6.0)
|
|
210
|
+
faraday (>= 0.17.3, < 3.0)
|
|
211
|
+
google-cloud-errors (1.5.0)
|
|
212
|
+
google-cloud-storage (1.47.0)
|
|
213
|
+
addressable (~> 2.8)
|
|
214
|
+
digest-crc (~> 0.4)
|
|
215
|
+
google-apis-iamcredentials_v1 (~> 0.1)
|
|
216
|
+
google-apis-storage_v1 (~> 0.31.0)
|
|
217
|
+
google-cloud-core (~> 1.6)
|
|
218
|
+
googleauth (>= 0.16.2, < 2.a)
|
|
219
|
+
mini_mime (~> 1.0)
|
|
220
|
+
googleauth (1.8.1)
|
|
221
|
+
faraday (>= 0.17.3, < 3.a)
|
|
222
|
+
jwt (>= 1.4, < 3.0)
|
|
223
|
+
multi_json (~> 1.11)
|
|
224
|
+
os (>= 0.9, < 2.0)
|
|
225
|
+
signet (>= 0.16, < 2.a)
|
|
226
|
+
highline (2.0.3)
|
|
227
|
+
http-cookie (1.0.8)
|
|
228
|
+
domain_name (~> 0.5)
|
|
229
|
+
httpclient (2.9.0)
|
|
230
|
+
mutex_m
|
|
231
|
+
i18n (1.14.7)
|
|
232
|
+
concurrent-ruby (~> 1.0)
|
|
233
|
+
java-properties (0.3.0)
|
|
234
|
+
jmespath (1.6.2)
|
|
235
|
+
json (2.13.2)
|
|
236
|
+
jwt (2.10.2)
|
|
237
|
+
base64
|
|
238
|
+
logger (1.7.0)
|
|
239
|
+
mini_magick (4.13.2)
|
|
240
|
+
mini_mime (1.1.5)
|
|
241
|
+
minitest (5.25.5)
|
|
242
|
+
molinillo (0.8.0)
|
|
243
|
+
multi_json (1.17.0)
|
|
244
|
+
multipart-post (2.4.1)
|
|
245
|
+
mutex_m (0.3.0)
|
|
246
|
+
nanaimo (0.3.0)
|
|
247
|
+
nap (1.1.0)
|
|
248
|
+
naturally (2.3.0)
|
|
249
|
+
netrc (0.11.0)
|
|
250
|
+
nkf (0.2.0)
|
|
251
|
+
optparse (0.6.0)
|
|
252
|
+
os (1.1.4)
|
|
253
|
+
plist (3.7.2)
|
|
254
|
+
public_suffix (4.0.7)
|
|
255
|
+
rake (13.3.0)
|
|
256
|
+
representable (3.2.0)
|
|
257
|
+
declarative (< 0.1.0)
|
|
258
|
+
trailblazer-option (>= 0.1.1, < 0.2.0)
|
|
259
|
+
uber (< 0.2.0)
|
|
260
|
+
retriable (3.1.2)
|
|
261
|
+
rexml (3.4.4)
|
|
262
|
+
rouge (3.28.0)
|
|
263
|
+
ruby-macho (2.5.1)
|
|
264
|
+
ruby2_keywords (0.0.5)
|
|
265
|
+
rubyzip (2.4.1)
|
|
266
|
+
securerandom (0.3.2)
|
|
267
|
+
security (0.1.5)
|
|
268
|
+
signet (0.21.0)
|
|
269
|
+
addressable (~> 2.8)
|
|
270
|
+
faraday (>= 0.17.5, < 3.a)
|
|
271
|
+
jwt (>= 1.5, < 4.0)
|
|
272
|
+
multi_json (~> 1.10)
|
|
273
|
+
simctl (1.6.10)
|
|
274
|
+
CFPropertyList
|
|
275
|
+
naturally
|
|
276
|
+
sysrandom (1.0.5)
|
|
277
|
+
terminal-notifier (2.0.0)
|
|
278
|
+
terminal-table (3.0.2)
|
|
279
|
+
unicode-display_width (>= 1.1.1, < 3)
|
|
280
|
+
thor (1.4.0)
|
|
281
|
+
trailblazer-option (0.1.2)
|
|
282
|
+
tty-cursor (0.7.1)
|
|
283
|
+
tty-screen (0.8.2)
|
|
284
|
+
tty-spinner (0.9.3)
|
|
285
|
+
tty-cursor (~> 0.7)
|
|
286
|
+
typhoeus (1.5.0)
|
|
287
|
+
ethon (>= 0.9.0, < 0.16.0)
|
|
288
|
+
tzinfo (2.0.6)
|
|
289
|
+
concurrent-ruby (~> 1.0)
|
|
290
|
+
uber (0.1.0)
|
|
291
|
+
unicode-display_width (2.6.0)
|
|
292
|
+
word_wrap (1.0.0)
|
|
293
|
+
xcodeproj (1.25.1)
|
|
294
|
+
CFPropertyList (>= 2.3.3, < 4.0)
|
|
295
|
+
atomos (~> 0.1.3)
|
|
296
|
+
claide (>= 1.0.2, < 2.0)
|
|
297
|
+
colored2 (~> 3.1)
|
|
298
|
+
nanaimo (~> 0.3.0)
|
|
299
|
+
rexml (>= 3.3.6, < 4.0)
|
|
300
|
+
xcpretty (0.4.1)
|
|
301
|
+
rouge (~> 3.28.0)
|
|
302
|
+
xcpretty-travis-formatter (1.0.1)
|
|
303
|
+
xcpretty (~> 0.2, >= 0.0.7)
|
|
304
|
+
|
|
305
|
+
PLATFORMS
|
|
306
|
+
ruby
|
|
307
|
+
|
|
308
|
+
DEPENDENCIES
|
|
309
|
+
abbrev
|
|
310
|
+
activesupport (>= 6.1.7.5, != 7.1.0)
|
|
311
|
+
benchmark
|
|
312
|
+
bigdecimal
|
|
313
|
+
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
|
|
314
|
+
concurrent-ruby (< 1.3.4)
|
|
315
|
+
fastlane
|
|
316
|
+
fastlane-plugin-increment_version_code
|
|
317
|
+
fastlane-plugin-increment_version_name
|
|
318
|
+
fastlane-plugin-load_json
|
|
319
|
+
fastlane-plugin-properties
|
|
320
|
+
fastlane-plugin-versioning
|
|
321
|
+
logger
|
|
322
|
+
mutex_m
|
|
323
|
+
thor (>= 1.2)
|
|
324
|
+
xcodeproj (< 1.26.0)
|
|
325
|
+
|
|
326
|
+
RUBY VERSION
|
|
327
|
+
ruby 2.7.6p219
|
|
328
|
+
|
|
329
|
+
BUNDLED WITH
|
|
330
|
+
2.7.2
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
|
|
2
|
+
|
|
3
|
+
# Getting Started
|
|
4
|
+
|
|
5
|
+
> **Note**: Make sure you have completed the [Set Up Your Environment](https://reactnative.dev/docs/set-up-your-environment) guide before proceeding.
|
|
6
|
+
|
|
7
|
+
## Step 1: Start Metro
|
|
8
|
+
|
|
9
|
+
First, you will need to run **Metro**, the JavaScript build tool for React Native.
|
|
10
|
+
|
|
11
|
+
To start the Metro dev server, run the following command from the root of your React Native project:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
# Using npm
|
|
15
|
+
npm start
|
|
16
|
+
|
|
17
|
+
# OR using Yarn
|
|
18
|
+
yarn start
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Step 2: Build and run your app
|
|
22
|
+
|
|
23
|
+
With Metro running, open a new terminal window/pane from the root of your React Native project, and use one of the following commands to build and run your Android or iOS app:
|
|
24
|
+
|
|
25
|
+
### Android
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
# Using npm
|
|
29
|
+
npm run android
|
|
30
|
+
|
|
31
|
+
# OR using Yarn
|
|
32
|
+
yarn android
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### iOS
|
|
36
|
+
|
|
37
|
+
For iOS, remember to install CocoaPods dependencies (this only needs to be run on first clone or after updating native deps).
|
|
38
|
+
|
|
39
|
+
The first time you create a new project, run the Ruby bundler to install CocoaPods itself:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
bundle install
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Then, and every time you update your native dependencies, run:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
bundle exec pod install
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
For more information, please visit [CocoaPods Getting Started guide](https://guides.cocoapods.org/using/getting-started.html).
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
# Using npm
|
|
55
|
+
npm run ios
|
|
56
|
+
|
|
57
|
+
# OR using Yarn
|
|
58
|
+
yarn ios
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
If everything is set up correctly, you should see your new app running in the Android Emulator, iOS Simulator, or your connected device.
|
|
62
|
+
|
|
63
|
+
This is one way to run your app — you can also build it directly from Android Studio or Xcode.
|
|
64
|
+
|
|
65
|
+
## Step 3: Modify your app
|
|
66
|
+
|
|
67
|
+
Now that you have successfully run the app, let's make changes!
|
|
68
|
+
|
|
69
|
+
Open `App.tsx` in your text editor of choice and make some changes. When you save, your app will automatically update and reflect these changes — this is powered by [Fast Refresh](https://reactnative.dev/docs/fast-refresh).
|
|
70
|
+
|
|
71
|
+
When you want to forcefully reload, for example to reset the state of your app, you can perform a full reload:
|
|
72
|
+
|
|
73
|
+
- **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Dev Menu**, accessed via <kbd>Ctrl</kbd> + <kbd>M</kbd> (Windows/Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (macOS).
|
|
74
|
+
- **iOS**: Press <kbd>R</kbd> in iOS Simulator.
|
|
75
|
+
|
|
76
|
+
## Congratulations! :tada:
|
|
77
|
+
|
|
78
|
+
You've successfully run and modified your React Native App. :partying_face:
|
|
79
|
+
|
|
80
|
+
### Now what?
|
|
81
|
+
|
|
82
|
+
- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
|
|
83
|
+
- If you're curious to learn more about React Native, check out the [docs](https://reactnative.dev/docs/getting-started).
|
|
84
|
+
|
|
85
|
+
# Troubleshooting
|
|
86
|
+
|
|
87
|
+
If you're having issues getting the above steps to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
|
|
88
|
+
|
|
89
|
+
# Learn More
|
|
90
|
+
|
|
91
|
+
To learn more about React Native, take a look at the following resources:
|
|
92
|
+
|
|
93
|
+
- [React Native Website](https://reactnative.dev) - learn more about React Native.
|
|
94
|
+
- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
|
|
95
|
+
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
|
|
96
|
+
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
|
|
97
|
+
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Reactotron, { asyncStorage, networking, trackGlobalErrors, trackGlobalLogs } from 'reactotron-react-native'
|
|
2
|
+
import ReactotronReactNative from 'reactotron-react-native/src/reactotron-react-native'
|
|
3
|
+
import { reactotronRedux } from 'reactotron-redux'
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const reactotron =
|
|
7
|
+
Reactotron
|
|
8
|
+
.configure() // controls connection & communication settings
|
|
9
|
+
.use(asyncStorage())
|
|
10
|
+
.use(networking())
|
|
11
|
+
.use(reactotronRedux())
|
|
12
|
+
.use(trackGlobalErrors())
|
|
13
|
+
.use(trackGlobalLogs())
|
|
14
|
+
.useReactNative() // add all built-in react native plugins
|
|
15
|
+
.connect() // let's connect!
|
|
16
|
+
|
|
17
|
+
export default reactotron
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @format
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import ReactTestRenderer from 'react-test-renderer';
|
|
7
|
+
import App from '../src/';
|
|
8
|
+
|
|
9
|
+
test('renders correctly', async () => {
|
|
10
|
+
await ReactTestRenderer.act(() => {
|
|
11
|
+
ReactTestRenderer.create(<App />);
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# OSX
|
|
2
|
+
#
|
|
3
|
+
.DS_Store
|
|
4
|
+
|
|
5
|
+
# Xcode
|
|
6
|
+
#
|
|
7
|
+
build/
|
|
8
|
+
*.pbxuser
|
|
9
|
+
!default.pbxuser
|
|
10
|
+
*.mode1v3
|
|
11
|
+
!default.mode1v3
|
|
12
|
+
*.mode2v3
|
|
13
|
+
!default.mode2v3
|
|
14
|
+
*.perspectivev3
|
|
15
|
+
!default.perspectivev3
|
|
16
|
+
xcuserdata
|
|
17
|
+
*.xccheckout
|
|
18
|
+
*.moved-aside
|
|
19
|
+
DerivedData
|
|
20
|
+
*.hmap
|
|
21
|
+
*.ipa
|
|
22
|
+
*.xcuserstate
|
|
23
|
+
**/.xcode.env.local
|
|
24
|
+
|
|
25
|
+
# Android/IntelliJ
|
|
26
|
+
#
|
|
27
|
+
build/
|
|
28
|
+
.idea
|
|
29
|
+
.gradle
|
|
30
|
+
local.properties
|
|
31
|
+
*.iml
|
|
32
|
+
*.hprof
|
|
33
|
+
.cxx/
|
|
34
|
+
*.keystore
|
|
35
|
+
!debug.keystore
|
|
36
|
+
.kotlin/
|
|
37
|
+
|
|
38
|
+
# node.js
|
|
39
|
+
#
|
|
40
|
+
node_modules/
|
|
41
|
+
npm-debug.log
|
|
42
|
+
yarn-error.log
|
|
43
|
+
|
|
44
|
+
# fastlane
|
|
45
|
+
#
|
|
46
|
+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
|
|
47
|
+
# screenshots whenever they are needed.
|
|
48
|
+
# For more information about the recommended setup visit:
|
|
49
|
+
# https://docs.fastlane.tools/best-practices/source-control/
|
|
50
|
+
|
|
51
|
+
**/fastlane/report.xml
|
|
52
|
+
**/fastlane/Preview.html
|
|
53
|
+
**/fastlane/screenshots
|
|
54
|
+
**/fastlane/test_output
|
|
55
|
+
|
|
56
|
+
# Bundle artifact
|
|
57
|
+
*.jsbundle
|
|
58
|
+
|
|
59
|
+
# Ruby / CocoaPods
|
|
60
|
+
**/Pods/
|
|
61
|
+
/vendor/bundle/
|
|
62
|
+
|
|
63
|
+
# Temporary files created by Metro to check the health of the file watcher
|
|
64
|
+
.metro-health-check*
|
|
65
|
+
|
|
66
|
+
# testing
|
|
67
|
+
/coverage
|
|
68
|
+
|
|
69
|
+
# Yarn
|
|
70
|
+
.yarn/*
|
|
71
|
+
!.yarn/patches
|
|
72
|
+
!.yarn/plugins
|
|
73
|
+
!.yarn/releases
|
|
74
|
+
!.yarn/sdks
|
|
75
|
+
!.yarn/versions
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
22
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
apply plugin: "com.android.application"
|
|
2
|
+
apply plugin: "org.jetbrains.kotlin.android"
|
|
3
|
+
apply plugin: "com.facebook.react"
|
|
4
|
+
|
|
5
|
+
def _versionCode=0
|
|
6
|
+
def _versionName="0.0.0"
|
|
7
|
+
_versionName=getNpmVersionName()
|
|
8
|
+
_versionCode=getNpmVersionBuild()
|
|
9
|
+
|
|
10
|
+
def keystorePropertiesFile = rootProject.file("keystore/keystore.properties")
|
|
11
|
+
def keystoreProperties = new Properties()
|
|
12
|
+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* This is the configuration block to customize your React Native Android app.
|
|
16
|
+
* By default you don't need to apply any configuration, just uncomment the lines you need.
|
|
17
|
+
*/
|
|
18
|
+
react {
|
|
19
|
+
/* Folders */
|
|
20
|
+
// The root of your project, i.e. where "package.json" lives. Default is '../..'
|
|
21
|
+
// root = file("../../")
|
|
22
|
+
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
|
|
23
|
+
// reactNativeDir = file("../../node_modules/react-native")
|
|
24
|
+
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
|
|
25
|
+
// codegenDir = file("../../node_modules/@react-native/codegen")
|
|
26
|
+
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
|
|
27
|
+
// cliFile = file("../../node_modules/react-native/cli.js")
|
|
28
|
+
|
|
29
|
+
/* Variants */
|
|
30
|
+
// The list of variants to that are debuggable. For those we're going to
|
|
31
|
+
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
|
|
32
|
+
// If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
|
|
33
|
+
// debuggableVariants = ["liteDebug", "prodDebug"]
|
|
34
|
+
|
|
35
|
+
/* Bundling */
|
|
36
|
+
// A list containing the node command and its flags. Default is just 'node'.
|
|
37
|
+
// nodeExecutableAndArgs = ["node"]
|
|
38
|
+
//
|
|
39
|
+
// The command to run when bundling. By default is 'bundle'
|
|
40
|
+
// bundleCommand = "ram-bundle"
|
|
41
|
+
//
|
|
42
|
+
// The path to the CLI configuration file. Default is empty.
|
|
43
|
+
// bundleConfig = file(../rn-cli.config.js)
|
|
44
|
+
//
|
|
45
|
+
// The name of the generated asset file containing your JS bundle
|
|
46
|
+
// bundleAssetName = "MyApplication.android.bundle"
|
|
47
|
+
//
|
|
48
|
+
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
|
|
49
|
+
// entryFile = file("../js/MyApplication.android.js")
|
|
50
|
+
//
|
|
51
|
+
// A list of extra flags to pass to the 'bundle' commands.
|
|
52
|
+
// See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
|
|
53
|
+
// extraPackagerArgs = []
|
|
54
|
+
|
|
55
|
+
/* Hermes Commands */
|
|
56
|
+
// The hermes compiler command to run. By default it is 'hermesc'
|
|
57
|
+
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
|
|
58
|
+
//
|
|
59
|
+
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
|
|
60
|
+
// hermesFlags = ["-O", "-output-source-map"]
|
|
61
|
+
|
|
62
|
+
/* Autolinking */
|
|
63
|
+
autolinkLibrariesWithApp()
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
|
|
68
|
+
*/
|
|
69
|
+
def enableProguardInReleaseBuilds = false
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The preferred build flavor of JavaScriptCore (JSC)
|
|
73
|
+
*
|
|
74
|
+
* For example, to use the international variant, you can use:
|
|
75
|
+
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
|
|
76
|
+
*
|
|
77
|
+
* The international variant includes ICU i18n library and necessary data
|
|
78
|
+
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
|
|
79
|
+
* give correct results when using with locales other than en-US. Note that
|
|
80
|
+
* this variant is about 6MiB larger per architecture than default.
|
|
81
|
+
*/
|
|
82
|
+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
|
|
83
|
+
|
|
84
|
+
android {
|
|
85
|
+
ext.setBuildInfo = {
|
|
86
|
+
if (versionPropsFile.canRead()) {
|
|
87
|
+
Properties versionProps = new Properties()
|
|
88
|
+
versionProps.load(new FileInputStream(versionPropsFile))
|
|
89
|
+
versionProps['VERSION_NAME'] = _versionName
|
|
90
|
+
versionProps['VERSION_CODE'] = _versionCode.toString()
|
|
91
|
+
versionProps.store(versionPropsFile.newWriter(), null)
|
|
92
|
+
} else {
|
|
93
|
+
// throw new FileNotFoundException("Could not read version.properties!")
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
ext.getArtifactName = {
|
|
97
|
+
defaultConfig ->
|
|
98
|
+
def date = new Date().format("yyyyMMdd")
|
|
99
|
+
return defaultConfig.applicationId + "-v" + defaultConfig.versionName + "(" + defaultConfig.versionCode + ")_" + date
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
gradle.taskGraph.whenReady {taskGraph ->
|
|
103
|
+
if (taskGraph.hasTask(assembleRelease) || taskGraph.hasTask(bundleRelease)) {
|
|
104
|
+
setBuildInfo()
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
ndkVersion rootProject.ext.ndkVersion
|
|
109
|
+
buildToolsVersion rootProject.ext.buildToolsVersion
|
|
110
|
+
compileSdk rootProject.ext.compileSdkVersion
|
|
111
|
+
|
|
112
|
+
namespace "com.projectname"
|
|
113
|
+
defaultConfig {
|
|
114
|
+
applicationId "com.projectname"
|
|
115
|
+
minSdkVersion rootProject.ext.minSdkVersion
|
|
116
|
+
targetSdkVersion rootProject.ext.targetSdkVersion
|
|
117
|
+
// versionCode 1
|
|
118
|
+
// versionName "1.0.0"
|
|
119
|
+
versionCode _versionCode
|
|
120
|
+
versionName _versionName
|
|
121
|
+
setProperty("archivesBaseName", applicationId + "-v" + "${_versionName}" + "(" + _versionCode + ")")
|
|
122
|
+
}
|
|
123
|
+
signingConfigs {
|
|
124
|
+
release {
|
|
125
|
+
if (keystorePropertiesFile.canRead()) {
|
|
126
|
+
keyAlias keystoreProperties['keyAlias']
|
|
127
|
+
keyPassword keystoreProperties['keyPassword']
|
|
128
|
+
storeFile file(rootDir.getCanonicalPath() + '/' + keystoreProperties['storeFile'])
|
|
129
|
+
storePassword keystoreProperties['storePassword']
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
debug {
|
|
133
|
+
storeFile file('debug.keystore')
|
|
134
|
+
storePassword 'android'
|
|
135
|
+
keyAlias 'androiddebugkey'
|
|
136
|
+
keyPassword 'android'
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
buildTypes {
|
|
140
|
+
debug {
|
|
141
|
+
signingConfig signingConfigs.debug
|
|
142
|
+
}
|
|
143
|
+
release {
|
|
144
|
+
// Caution! In production, you need to generate your own keystore file.
|
|
145
|
+
// see https://reactnative.dev/docs/signed-apk-android.
|
|
146
|
+
signingConfig signingConfigs.debug
|
|
147
|
+
minifyEnabled enableProguardInReleaseBuilds
|
|
148
|
+
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
dependencies {
|
|
154
|
+
// The version of react-native is set by the React Native Gradle Plugin
|
|
155
|
+
implementation("com.facebook.react:react-android")
|
|
156
|
+
|
|
157
|
+
if (hermesEnabled.toBoolean()) {
|
|
158
|
+
implementation("com.facebook.react:hermes-android")
|
|
159
|
+
} else {
|
|
160
|
+
implementation jscFlavor
|
|
161
|
+
}
|
|
162
|
+
}
|
|
Binary file
|