Learn you a kanji for great good!
Learn some commonly used kanji characters and have fun with this simple flashcard game for ios.
Use LearnYouKanji.xcworkspace
not LearnYouKanji.xcodeproj
.
Run React Native as well as building/running iOS app from Xcode.
# Ensure that Node server is running and available on the same network
# cd into root directory (where index.ios.js is), then run
$ npm start
App uses lists of Jōyō kaji.
List of jōyō kanji taken from https://en.wikipedia.org/wiki/List_of_j%C5%8Dy%C5%8D_kanji
Grade 07 and up means that it is taught in secondary school.
Secondary school characters are split into 5 sections.
Project uses SwiftyJSON. Install it with Carthage.
No it doesn't. It uses a plist file now.
Add about page with 'what is joyo kanji' + useful info
Add section on radicals
Inspect core data:
# Navigate to correct sqlite file - somewhere in
$ cd ~/Library/Developer/CoreSimulator/Devices/
# Searching for it can be a bit tedious
$ find . -name LearnYouKanji
$ find . -name "*.sqlite"
# Use sqlite command line manager
$ sqlite3 LearnYouKanji.sqlite
# Useful commands
> .dbinfo main
> .tables
> .schema <TABLENAME>
# These tables exist:
# ZCOURSE ZQUESTION Z_METADATA Z_MODELCACHE Z_PRIMARYKEY
# output table to inspect
$ sqlite3 LearnYouKanji.sqlite "SELECT * FROM ZQUESTION ;" > output.txt
$ sqlite3 LearnYouKanji.sqlite "SELECT ZCOURSE, ZID, ZQUESTION, ZANSWER, ZSTRENGTH FROM ZQUESTION ORDER BY ZID ASC;" > output.txt
(Info.plist)
App Transport Security is good for your users. Make sure to re-enable it prior to releasing your app for production.
podfile:
develop from ios xcworkspace. Not xcodeproj.
pod update
after editing (source of much problem)
react-navigation:
Add RCTLinkingIOS
to podfile ?
update node (6 -> 8) ?
Unable to execute JS call: __fbBatchedBridge is undefined
Seems to occur only in dev mode
clean npm:
rm -rf node_modules && npm install
watchman watch-del-all
node_modules/react-native/packager/packager.sh --reset-cache
Warning: core data connection has no connected handler
See here
Xcode menu -> Product -> Edit Scheme...
Environment Variables -> Add -> Name: "OS_ACTIVITY_MODE", Value:"disable"
CoreData: error: Failed to call designated initializer on NSManagedObject class 'LearnYouKanji.Question'