Skip to content

Commit

Permalink
release 1.72.14
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocle2497 committed Nov 4, 2023
1 parent 69f7919 commit d890a8a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rn-boiler-template",
"private": false,
"version": "1.72.13",
"version": "1.72.14",
"description": "Clean and minimalist React Native template for a quick start with TypeScript and components",
"scripts": {
"test": "exit 0"
Expand Down
16 changes: 8 additions & 8 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
## Base config (Now u can config on env)

- Change App name ``` APP_DISPLAY_NAME ``` on ``` env/(.dev/.prod) ```
- Change App id ``` BUNDLE_IDENTIFIER ``` on ``` env/(.dev/.prod) ```
- Change App version ``` VERSION_NAME ``` on ``` env/(.dev/.prod) ```
- Change App build number ``` VERSION_CODE ``` on ``` env/(.dev/.prod) ```
- Change App URL ``` API_URL ``` on ``` env/(.dev/.prod) ```
- Change App name ``` APP_DISPLAY_NAME ``` on ``` env/(dev.json/.prod) ```
- Change App id ``` BUNDLE_IDENTIFIER ``` on ``` env/(dev.json/.prod) ```
- Change App version ``` VERSION_NAME ``` on ``` env/(dev.json/.prod) ```
- Change App build number ``` VERSION_CODE ``` on ``` env/(dev.json/.prod) ```
- Change App URL ``` API_URL ``` on ``` env/(dev.json/.prod) ```

### Gen app icon and Change app icon by env

Expand All @@ -57,13 +57,13 @@ Ex: New Environment named: Demo
- ## Setup env

- Create new env file in env folder (.demo)
- Copy all value from `.dev` to new env file
- Copy all value from `dev.json` to new env file
- Update value in new env file

- ## Setup fastlane

- Create new env file with name syntax: .env.<env_name> (.env.demo)
- Copy app value from `.env.dev` to new env file
- Copy app value from `.envdev.json` to new env file
- Update value in new env file
- Get new apple and gooogle api file then copy to `api-key` folder. ex:
- `api-key/apple/demo.p8`
Expand Down Expand Up @@ -121,7 +121,7 @@ Ex: New Environment named: Demo
- Check `Shared` checkbox on the dialog
- Select `Pre-actions`
- On the first script, change env to load when xcode build. ex:
- `ENV_PATH="env/.dev"` to `ENV_PATH="env/.demo"`
- `ENV_PATH="env/dev.json"` to `ENV_PATH="env/.demo"`
- Complete script like:

```
Expand Down
6 changes: 3 additions & 3 deletions template/ios/HelloWorld/AppDelegate.mm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import "AppDelegate.h"
#import "RNBootSplash.h"
#import "RNCConfig.h"
#import "Keys.h"
#import <React/RCTBundleURLProvider.h>

@implementation AppDelegate
Expand Down Expand Up @@ -37,9 +37,9 @@ - (UIView *)createRootViewWithBridge:(RCTBridge *)bridge
UIView *rootView = [super createRootViewWithBridge:bridge
moduleName:moduleName
initProps:initProps];
NSString *bootsplash = [RNCConfig envFor:@"SPLASH_STORYBOARD_NAME"];
NSString *bootsplash = [Keys publicFor:@"SPLASH_STORYBOARD_NAME"];
[RNBootSplash initWithStoryboard:bootsplash rootView:rootView]; // ⬅️ initialize the splash screen

return rootView;
}
@end
@end
8 changes: 4 additions & 4 deletions template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"type:check": "yarn tsc --noEmit --skipLibCheck",
"app-icon": "npx rn-ml appicon -s appicon/appicon.png",
"app-icon:dev": "npx rn-ml appicon -s appicon/appicon-dev.png -f dev -icn AppIcon-Dev",
"ios:notification:dev": "npx ts-node ./scripts/ios.ts push-notification env/.dev ",
"ios:notification:dev": "npx ts-node ./scripts/ios.ts push-notification env/dev.json ",
"android:report": "npx ts-node scripts/android.ts report",
"android:hash": "npx ts-node scripts/android.ts hash",
"android:gen-key": "npx ts-node scripts/android.ts keystore",
"ios:dev": "npx ts-node scripts/ios.ts run env/.dev",
"android:dev": "npx ts-node scripts/android.ts run env/.dev Debug",
"android:release": "npx ts-node scripts/android.ts run env/.dev Release"
"ios:dev": "npx ts-node scripts/ios.ts run env/dev.json",
"android:dev": "npx ts-node scripts/android.ts run env/dev.json Debug",
"android:release": "npx ts-node scripts/android.ts run env/dev.json Release"
},
"dependencies": {
"@gorhom/portal": "^1.0.14",
Expand Down

0 comments on commit d890a8a

Please sign in to comment.