Skip to content

Commit

Permalink
feat: change app icon by env
Browse files Browse the repository at this point in the history
  • Loading branch information
ngocle2497 committed Jul 11, 2022
1 parent 91226e9 commit 92cc251
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
- Android [Source sets](https://developer.android.com/studio/build/build-variants#sourcesets)
- IOS follow below step:
- Create new App Icon assets
- Go to Target => Build Settings => Assets Catalog Compiler - Options
- Change Primary App Icon Set Name (App Icon assets name)
- This will change icon for current schema
- Change ASSETCATALOG_COMPILER_APPICON_NAME to your respective App Icon Assets (in respective env file)

## :arrow_forward: Usage

Expand Down
4 changes: 1 addition & 3 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,4 @@
- Android [Source sets](https://developer.android.com/studio/build/build-variants#sourcesets)
- IOS follow below step:
- Create new App Icon assets
- Go to Target => Build Settings => Assets Catalog Compiler - Options
- Change Primary App Icon Set Name (App Icon assets name)
- This will change icon for current schema
- Change ASSETCATALOG_COMPILER_APPICON_NAME to your respective App Icon Assets (in respective env file)
2 changes: 1 addition & 1 deletion template/commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'scope-enum': [2, 'always', ['mobile', 'backend', 'frontend', 'docs']],
'scope-enum': [2, 'always', ['ios', 'android', 'all', 'docs']],
'scope-empty': [2, 'never'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
Expand Down
1 change: 1 addition & 0 deletions template/env/.dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ APP_PLACEHOLDER_NAME=HelloWorld
VERSION_CODE=1
VERSION_NAME=1.0.0
BUNDLE_IDENTIFIER=com.helloworld
ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon
DEBUG_PROVISIONING_PROFILE=com_helloworld
RELEASE_PROVISIONING_PROFILE=com_helloworld_appstore
DEFAULT_FALLBACK_LNG_I18n=en
1 change: 1 addition & 0 deletions template/env/.prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ APP_PLACEHOLDER_NAME=HelloWorld
VERSION_CODE=1
VERSION_NAME=1.0.0
BUNDLE_IDENTIFIER=com.helloworld
ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon
DEBUG_PROVISIONING_PROFILE=com_helloworld
RELEASE_PROVISIONING_PROFILE=com_helloworld_appstore
DEFAULT_FALLBACK_LNG_I18n=en
4 changes: 2 additions & 2 deletions template/ios/HelloWorld.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-HelloWorld.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_APPICON_NAME = "$(ASSETCATALOG_COMPILER_APPICON_NAME)";
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
ENABLE_BITCODE = NO;
Expand Down Expand Up @@ -569,7 +569,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-HelloWorld.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_APPICON_NAME = "$(ASSETCATALOG_COMPILER_APPICON_NAME)";
CLANG_ENABLE_MODULES = YES;
CURRENT_PROJECT_VERSION = 1;
INFOPLIST_FILE = HelloWorld/Info.plist;
Expand Down

0 comments on commit 92cc251

Please sign in to comment.