Skip to content

Commit

Permalink
Fully change the name of Free City extension
Browse files Browse the repository at this point in the history
  • Loading branch information
sondreb committed Oct 6, 2023
1 parent d912ffe commit 6a06a3f
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
env:
BLOCKCORE: "blockcore"
COINVAULT: "coinvault"
SMARTCITYPLATFORM: "smartcityplatform"
FREECITY: "freecity"

steps:
- name: Checkout
Expand Down Expand Up @@ -68,9 +68,9 @@ jobs:
- name: Package FreeCityWallet
run: |
npm run build:smartcityplatform
npm run build:freecity
cd dist/extension
zip -r ../../${{env.RELEASE_NAME_SMARTCITYPLATFORM}} "./"
zip -r ../../${{env.RELEASE_NAME_FREECITY}} "./"
cd ../../
rm -rf dist/extension
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
env:
BLOCKCORE: "blockcore"
COINVAULT: "coinvault"
SMARTCITYPLATFORM: "smartcityplatform"
FREECITY: "freecity"

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ This wallet is made available in multiple different instances that has different

- Chains: City Chain
- Features: Focused on decentralized citizenship
- Download: ["smartcityplatform-\*.zip](https://github.com/block-core/blockcore-wallet/releases)
- Download: ["freecity-\*.zip](https://github.com/block-core/blockcore-wallet/releases)

## Supported Browsers

Expand Down
14 changes: 7 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,10 @@
}
]
},
"smartcityplatform": {
"freecity": {
"stylePreprocessorOptions": {
"includePaths": [
"angular/src/styles/smartcityplatform/"
"angular/src/styles/freecity/"
]
},
"buildOptimizer": false,
Expand Down Expand Up @@ -228,7 +228,7 @@
],
"assets": [
{
"input": "angular/src/assets/smartcityplatform/",
"input": "angular/src/assets/freecity/",
"output": "/assets",
"glob": "*"
},
Expand All @@ -238,15 +238,15 @@
"glob": "*"
},
{
"input": "angular/src/manifest/smartcityplatform/",
"input": "angular/src/manifest/freecity/",
"output": "/",
"glob": "*"
}
],
"fileReplacements": [
{
"replace": "angular/src/environments/environment.ts",
"with": "angular/src/environments/environment.smartcityplatform.ts"
"with": "angular/src/environments/environment.freecity.ts"
}
]
}
Expand All @@ -268,8 +268,8 @@
"coinvault": {
"browserTarget": "blockcore-wallet:build:coinvault"
},
"smartcityplatform": {
"browserTarget": "blockcore-wallet:build:smartcityplatform"
"freecity": {
"browserTarget": "blockcore-wallet:build:freecity"
}
},
"defaultConfiguration": "development"
Expand Down
14 changes: 7 additions & 7 deletions angular/src/environments/environment.smartcityplatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export const environment: IEnvironment = {
production: true,
enableDebugTools: false,
logLevel: 'info',
features: ['wallet', 'identity', 'handler:pay', 'handler:did'],
releaseUrl: 'https://github.com/CityChainFoundation/free-city-wallet/releases',
sourceUrl: 'https://github.com/CityChainFoundation/free-city-wallet',
instance: 'smartcityplatform',
features: ['wallet', 'identity', 'handler:pay', 'handler:did', 'handler:nostr'],
releaseUrl: 'https://github.com/block-core/blockcore-wallet/releases',
sourceUrl: 'https://github.com/block-core/blockcore-wallet',
instance: 'freecity',
instanceName: 'Free City Wallet',
instanceUrl: 'https://www.city-chain.org/',
instanceExplorerUrl: 'https://explorer.city-chain.org',
networks: ['CITY', 'IDENTITY']
instanceUrl: 'https://www.freeplatform.city/',
instanceExplorerUrl: 'https://explorer.blockcore.net',
networks: ['CITY', 'IDENTITY', 'NOSTR', 'JWK', 'KEY', 'BTC']
};
2 changes: 1 addition & 1 deletion angular/src/environments/environments.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export enum Environments {
Blockcore = 'blockcore',
CoinVault = 'coinvault',
SmartCityPlatform = 'smartcityplatform'
FreeCity = 'freecity'
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"Coins",
"Tokens",
"Identities",
"SmartCityPlatform",
"FreeCity",
"FreeCityWallet",
"FreeCityPlatform",
Expand Down
2 changes: 1 addition & 1 deletion angular/src/shared/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class Defaults {
},
];
break;
case 'smartcityplatform':
case 'freecity':
accounts = [
{
identifier: uuidv4(),
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"version": "node -p \"require('./package.json').version\"",
"changelog": "conventional-changelog -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"all": "npm run build:production && npm run build:coinvault && npm run build:smartcityplatform",
"all": "npm run build:production && npm run build:coinvault && npm run build:freecity",
"ng": "ng",
"start": "npm run watch",
"web": "npm-run-all --parallel watch serve:web",
Expand All @@ -15,15 +15,15 @@
"build:angular": "ng build --configuration development",
"build:angular-production": "ng build --configuration production",
"build:angular-coinvault": "ng build --configuration coinvault",
"build:angular-smartcityplatform": "ng build --configuration smartcityplatform",
"build:angular-freecity": "ng build --configuration freecity",
"watch:angular": "ng build --watch --configuration development --delete-output-path false --source-map=true",
"build:extension": "webpack --config extension/webpack.config.js",
"build:extension-production": "webpack --config extension/webpack.config.prod.js",
"watch:extension": "webpack --config extension/webpack.config.js -w",
"build": "npm run clean && npm run build:angular && npm run build:extension",
"build:production": "npm run build:angular-production && npm run build:extension-production",
"build:coinvault": "npm run build:angular-coinvault && npm run build:extension-production",
"build:smartcityplatform": "npm run build:angular-smartcityplatform && npm run build:extension-production",
"build:freecity": "npm run build:angular-freecity && npm run build:extension-production",
"watch": "npm run clean && npm-run-all --parallel watch:*",
"clean": "rimraf dist/extension",
"pack:production": "npm run build:angular-production && npm run build:extension-production && npm run pack",
Expand Down

0 comments on commit 6a06a3f

Please sign in to comment.