Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue-1753] Optimize build time #1793

Merged
merged 15 commits into from
Sep 16, 2024
8 changes: 7 additions & 1 deletion .github/workflows/build-internal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,14 @@ jobs:

- name: Use Node.js 18
uses: actions/setup-node@v4
if: ${{ runner.name != 'Dos-Mac-mini' && runner.name != 'Mac-x86' }}
with:
node-version: 18
cache: 'yarn'

- name: Cache Yarn dependencies
uses: actions/cache@v3
if: ${{ runner.name != 'Dos-Mac-mini' && runner.name != 'Mac-x86' }}
id: yarn-cache # optional, but allows referencing the step
with:
path: |
Expand All @@ -67,6 +69,7 @@ jobs:

- name: Restore Pods Cache
uses: actions/cache@v3
if: ${{ runner.name != 'Dos-Mac-mini' && runner.name != 'Mac-x86' }}
with:
path: |
ios/Pods
Expand Down Expand Up @@ -134,7 +137,6 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}

- name: Remove unused web-runner for Android
run: |
rm -r ./html/OldWeb.bundle
Expand All @@ -158,12 +160,14 @@ jobs:

- name: Use Node.js 18
uses: actions/setup-node@v4
if: ${{ runner.name != 'Dos-Mac-mini' && runner.name != 'Mac-x86' }}
with:
node-version: 18
cache: 'yarn'

- name: Cache Yarn dependencies
uses: actions/cache@v3
if: ${{ runner.name != 'Dos-Mac-mini' && runner.name != 'Mac-x86' }}
id: yarn-cache # optional, but allows referencing the step
with:
path: |
Expand All @@ -179,12 +183,14 @@ jobs:

- name: Cache Gradle Wrapper
uses: actions/cache@v3
if: ${{ runner.name != 'Dos-Mac-mini' && runner.name != 'Mac-x86' }}
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Cache Gradle Dependencies
uses: actions/cache@v3
if: ${{ runner.name != 'Dos-Mac-mini' && runner.name != 'Mac-x86' }}
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
Expand Down
1 change: 0 additions & 1 deletion src/AppNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ const AppNavigator = ({ isAppReady }: Props) => {
const splitItem = item.split('=');
urlQueryMap[splitItem[0]] = splitItem[1];
});
console.log('urlQueryMap', urlQueryMap);

if (urlQuery.startsWith('wc')) {
const accountByAddress = findAccountByAddress(accounts, urlQueryMap.address);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ export const EarningValidatorSelector = forwardRef(
const key = getValidatorKey(item.address, item.identity);
const selected = changeValidators.includes(key);
const nominated = nominatorValueList.includes(key);
console.log(selected, selected);

return (
<StakingValidatorItem
Expand Down
3 changes: 0 additions & 3 deletions src/hooks/screen/Transaction/useSelectValidators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ export function useSelectValidators(
const [selected, setSelected] = useState<string[]>([]);
// Current chosen in modal
const [changeValidators, setChangeValidators] = useState<string[]>([]);
console.log('changeValidators', changeValidators);

const onChangeSelectedValidator = useCallback(
(changeVal: string) => {
console.log('changeVal', changeVal);
setChangeValidators(currentChangeValidators => {
let result: string[];

Expand Down Expand Up @@ -72,7 +70,6 @@ export function useSelectValidators(
}
}

console.log('result', result);
return result;
});
},
Expand Down
1 change: 0 additions & 1 deletion src/hooks/static-content/useHandleAppPopupMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const useHandleAppPopupMap = () => {

const filteredDataByLocation = useMemo(() => {
return appPopupData.filter(({ locations }) => {
console.log('locations', locations);
if (locations && locations.length) {
const countryId = getCountry();
const locationIds = locations.map(item => item.split('_')[1]);
Expand Down
Loading