commit
41791516f7
@ -68,7 +68,7 @@ To create an APK build, use the following
|
|||||||
npx expo prebuild
|
npx expo prebuild
|
||||||
cd android
|
cd android
|
||||||
./gradlew assembleRelease # linux
|
./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
|
Then, see `android/app/build/outputs/apk/release/app-release.apk` for the output
|
||||||
|
4
app.json
4
app.json
@ -4,7 +4,7 @@
|
|||||||
"slug": "poker-chips-helper",
|
"slug": "poker-chips-helper",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"icon": "./assets/images/icon1.png",
|
"icon": "./assets/images/icon.png",
|
||||||
"scheme": "myapp",
|
"scheme": "myapp",
|
||||||
"userInterfaceStyle": "automatic",
|
"userInterfaceStyle": "automatic",
|
||||||
"newArchEnabled": true,
|
"newArchEnabled": true,
|
||||||
@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"adaptiveIcon": {
|
"adaptiveIcon": {
|
||||||
"foregroundImage": "./assets/images/adaptive-icon.png",
|
"foregroundImage": "./assets/images/icon.png",
|
||||||
"backgroundColor": "#ffffff"
|
"backgroundColor": "#ffffff"
|
||||||
},
|
},
|
||||||
"package": "com.anonymous.pokerchipshelper"
|
"package": "com.anonymous.pokerchipshelper"
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB |
@ -25,7 +25,11 @@ describe("ChipDetection", () => {
|
|||||||
choices: [
|
choices: [
|
||||||
{
|
{
|
||||||
message: {
|
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"));
|
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 () => {
|
it("handles camera permission denied", async () => {
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -12,7 +12,7 @@
|
|||||||
"@react-native-async-storage/async-storage": "^2.1.1",
|
"@react-native-async-storage/async-storage": "^2.1.1",
|
||||||
"@react-navigation/bottom-tabs": "7.2.0",
|
"@react-navigation/bottom-tabs": "7.2.0",
|
||||||
"@react-navigation/native": "7.0.14",
|
"@react-navigation/native": "7.0.14",
|
||||||
"expo": "^52.0.37",
|
"expo": "52.0.37",
|
||||||
"expo-blur": "14.0.3",
|
"expo-blur": "14.0.3",
|
||||||
"expo-constants": "17.0.7",
|
"expo-constants": "17.0.7",
|
||||||
"expo-file-system": "18.0.11",
|
"expo-file-system": "18.0.11",
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "expo start",
|
"start": "expo start",
|
||||||
"reset-project": "node ./scripts/reset-project.js",
|
"reset-project": "node ./scripts/reset-project.js",
|
||||||
"android": "expo start --android",
|
"android": "expo run:android",
|
||||||
"ios": "expo start --ios",
|
"ios": "expo run:ios",
|
||||||
"web": "expo start --web",
|
"web": "expo start --web",
|
||||||
"test": "jest --watchAll",
|
"test": "jest --watchAll",
|
||||||
"lint": "expo lint"
|
"lint": "expo lint"
|
||||||
|
Loading…
Reference in New Issue
Block a user