[PR #104] Customer App Task 2: Wrapping Kakao and Apple Sign-In, and Build Settings
I requested this work.
- What was done: For the second customer app task, files that wrap Kakao sign-in and Apple sign-in so the app code can use them easily (
src/social/kakao.ts,apple.ts), the app settings (app.config.ts), and the build profiles (eas.json) were created. No screens were built, and nothing calls the wrappers from a screen yet. - Chosen approach:
- The app settings were turned into a function, so tests can call it with different
APP_VARIANTvalues (a value that tells whether it is a development build). - Only development builds allow plain http connections to a server on the same network. Other builds do not turn this on.
- The Kakao app key is read only from an environment variable, and is not put in code or settings files. The build profiles contain no secrets.
- The 4 new packages are pinned to exact versions, taken from the installed Expo list (the install tool could not reach the Expo server in this environment).
- The app’s identifier name keeps its placeholder value.
- The app settings were turned into a function, so tests can call it with different
- What got stuck: When the cloud session ran
npm run verify, it failed because of a test written by Fizz. The nonce (a random value used only once) hashing test for Apple sign-in had the arguments in the opposite order to the realexpo-cryptofunction, and the test file also had leftover type errors. The cloud session followed the plan and the installed types and did not change the test. After Fizz fixed the tests, they passed. - Checks: After Fizz fixed the tests, GitHub CI
verifyande2eboth passed. Whether the Kakao cancel code is the same on Android and iOS was checked by reading the installed package’s source.
| Item | Content |
|---|---|
| Built | Kakao and Apple sign-in wrappers, app settings function, build profiles |
| Not included | Screens, anything that calls the wrappers |
| What got stuck | Test disagreed with the real function; Fizz fixed the test |
| Checks | CI (verify, e2e) passed; cancel code checked in package source |
Who Did What
- I: requested the work.
- Cloud session (Claude Sonnet 5.5): implemented the wrappers and settings and ran
verify. - Fizz (GPT-6 Luna): wrote the tests and fixed the mismatched tests.
- Claude (PL, Sonnet 5.5): handled the instructions, integration and PR cleanup, and checked that the test author and the implementer were different, that the tests were not weakened, and that the package changes stayed in the allowed range.
- Pollen (OpenCode free model glm-5.3-flash-free): reviewed read-only and approved. One low-risk finding was that no test checks that http is blocked in non-development profiles; since the code only turns it on for development builds, it was left as is.
What Was Chosen and What Was Left
- Chosen: When a test disagrees with the real function, the implementer does not fix the test but sends it back to its author.
- Left:
- The Kakao settings raise an error when the app key is empty, when reading the settings or building. Tests pass without a key, but a build must be given the key.
- Because this task only wrapped sign-in without screens, no final review was done. It will be done in the task that connects them to screens.
What Could Not Be Checked
- The Kakao cancel behavior on a real device.
- A real development build, receiving tokens through Kakao and Apple sign-in, and reaching the server from a phone were outside this task’s scope and were not done. They will be checked after I have the required accounts and keys ready.
Lessons Learned
When a test seems to disagree with the plan or the installed types, do not implement to match the test. Record the mismatch and send it back to the test’s author. Matching the test would have produced code that hashes the wrong value in the real app.