Skip to content

Commit

Permalink
Improve logging, update rito store api url, fix clientinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
K Madhu Sudhan committed Sep 24, 2024
1 parent be210f7 commit 6af5e09
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
Binary file modified android/app/build/outputs/apk/release/app-arm64-v8a-release.apk
Binary file not shown.
Binary file not shown.
Binary file modified android/app/build/outputs/apk/release/app-x86-release.apk
Binary file not shown.
Binary file modified android/app/build/outputs/apk/release/app-x86_64-release.apk
Binary file not shown.
9 changes: 4 additions & 5 deletions src/helpers/urlHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@ export async function getWalletUrl() {
export async function getStoreUrl() {
let shard = await AsyncStorage.getItem('playerShard');
let puuid = await AsyncStorage.getItem('playerUuid');
return `https://pd.${shard}.a.pvp.net/store/v2/storefront/${puuid}`;
return `https://pd.${shard}.a.pvp.net/store/v3/storefront/${puuid}`;
}

export async function getClientInfo(){
axios.get('https://valorant-api.com/v1/version').then((res)=>{
//console.log(res.data.data["riotClientVersion"]);
return res.data.data["riotClientVersion"];
})
const res = await axios.get('https://valorant-api.com/v1/version');
//console.log(res.data.data["riotClientVersion"]);
return res.data.data["riotClientVersion"];
}
6 changes: 3 additions & 3 deletions src/views/StoreTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ export function StoreTabs() {
setAllSkinData(skins);
})
.catch(err => {
//console.log(`Oh No! some error - ${err}`);
//console.log(`Oh No! some error in val assets api - ${err}`);
});
}, []);

useEffect(() => {
async function fetchStore() {
await gameDataHeaders();
client
.get(storeUrl)
.post(storeUrl,{})
.then(res => {
//console.log(res.data);
setStore(res.data);
Expand All @@ -133,7 +133,7 @@ export function StoreTabs() {
}
})
.catch(err => {
//console.log(`Oh No! some error - ${err}`);
//console.log(`Oh No! some error in rito store api - ${err}`);
});
}
fetchStore();
Expand Down

0 comments on commit 6af5e09

Please sign in to comment.