Skip to content

Commit

Permalink
Tracking Gyan api wiki miss
Browse files Browse the repository at this point in the history
Signed-off-by: sarthakpranesh <[email protected]>
  • Loading branch information
sarthakpranesh committed May 19, 2022
1 parent e0e9959 commit 01a9a77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ android {
applicationId "com.plantrecog"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 13
versionName "1.1.0"
versionCode 14
versionName "1.2.0"
ndkVersion '21.3.6528147'
}
splits {
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "PlantRecog",
"slug": "PlantRecog",
"version": "1.1.0",
"version": "1.2.0",
"assetBundlePatterns": [
"**/*"
]
Expand Down
6 changes: 6 additions & 0 deletions services/gyan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ export const getPlantDetails: (name: string) => Promise<DetailsPayload> = (
return new Promise(async (resolve, reject) => {
try {
const resp: any = await FetchBuilder(`${name} plant`, undefined);
if (resp.description.length === 0) {
analytics().logEvent(`gyan-api-wiki-missing-${name}`, {
name,
apiResponse: resp,
});
}
resolve(resp);
} catch (err) {
reject(err);
Expand Down

0 comments on commit 01a9a77

Please sign in to comment.