diff --git a/README.md b/README.md index 6319621..8f514f9 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ To create an APK build, use the following npx expo prebuild cd android ./gradlew assembleRelease # linux -gradlew.bat assembleRelease # possible windows command +./gradlew.bat assembleRelease # windows command ``` Then, see `android/app/build/outputs/apk/release/app-release.apk` for the output diff --git a/app.json b/app.json index 501d4f3..a4b9e4e 100644 --- a/app.json +++ b/app.json @@ -4,7 +4,7 @@ "slug": "poker-chips-helper", "version": "1.0.0", "orientation": "portrait", - "icon": "./assets/images/icon1.png", + "icon": "./assets/images/icon.png", "scheme": "myapp", "userInterfaceStyle": "automatic", "newArchEnabled": true, @@ -13,7 +13,7 @@ }, "android": { "adaptiveIcon": { - "foregroundImage": "./assets/images/adaptive-icon.png", + "foregroundImage": "./assets/images/icon.png", "backgroundColor": "#ffffff" }, "package": "com.anonymous.pokerchipshelper" diff --git a/assets/images/icon.png b/assets/images/icon.png index a0b1526..b01e897 100644 Binary files a/assets/images/icon.png and b/assets/images/icon.png differ diff --git a/assets/images/icon1.png b/assets/images/icon1.png deleted file mode 100644 index b01e897..0000000 Binary files a/assets/images/icon1.png and /dev/null differ diff --git a/components/__tests__/ChipDetection.test.tsx b/components/__tests__/ChipDetection.test.tsx index cf42513..8444f1d 100644 --- a/components/__tests__/ChipDetection.test.tsx +++ b/components/__tests__/ChipDetection.test.tsx @@ -25,7 +25,11 @@ describe("ChipDetection", () => { choices: [ { message: { - content: JSON.stringify({ red: 5, green: 3, blue: 0 }), + content: JSON.stringify({ + red: 5, + green: 3, + blue: 0, + }), }, }, ], @@ -70,7 +74,9 @@ describe("ChipDetection", () => { ); fireEvent.press(getByText("Take a Photo")); - await waitFor(() => expect(mockUpdateChipCount).toHaveBeenCalled()); + await waitFor(() => + expect(mockUpdateChipCount).toHaveBeenCalledWith({ red: 5, green: 3 }) + ); }); it("handles camera permission denied", async () => { diff --git a/package-lock.json b/package-lock.json index c7a640d..35700cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@react-native-async-storage/async-storage": "^2.1.1", "@react-navigation/bottom-tabs": "7.2.0", "@react-navigation/native": "7.0.14", - "expo": "^52.0.37", + "expo": "52.0.37", "expo-blur": "14.0.3", "expo-constants": "17.0.7", "expo-file-system": "18.0.11", diff --git a/package.json b/package.json index e45e9a8..7352920 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "scripts": { "start": "expo start", "reset-project": "node ./scripts/reset-project.js", - "android": "expo start --android", - "ios": "expo start --ios", + "android": "expo run:android", + "ios": "expo run:ios", "web": "expo start --web", "test": "jest --watchAll", "lint": "expo lint"