The Ichiban anime guessing game but ported from web to React Native for iOS and Android.
Google Play Store Link »
Table of Contents
My first React Native application which basically reused like 80% of the code from the original Ichiban web version.
Here is a guide if you want to clone the project and modify it for yourself:
- Clone the repo
git clone https://github.com/AjayLiu/ichiban-react-native.git
- Install package
npm install
To test on Android, use:
npm run android
Make sure to have an AVD installed
C:\Program Files\Java\jdk-13.0.2
https://reactnative.dev/docs/signed-apk-android
NOTE: What I did was a little tricky because I didn't want to expose the keystore credentials in this git repo.
-
Generate a keystore
keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
Remember what you put for the keystore password. This should create a file called my-upload-key.keystore
-
Move this keystore to /android/app/
-
(FOR WINDOWS) Go to ~/.gradle/gradle.properties (if the file doesn't exist, create a grade.properties) (also ~ means your User path, so something like C:\Users\Bob) and enter
MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore MYAPP_UPLOAD_KEY_ALIAS=my-key-alias MYAPP_UPLOAD_STORE_PASSWORD= [ENTER YOUR PASSWORD HERE] MYAPP_UPLOAD_KEY_PASSWORD= [ENTER YOUR PASSWORD HERE]
-
Double check that you are in the /android/ directory and run
./gradlew bundleRelease
-
If that didn't work then it's probably something with Windows and it's not reading from ~/.gradle/gradle.properties. In that case, just go to your project's android/app/build.gradle and under this code block:
if (project.hasProperty('MYAPP_UPLOAD_STORE_FILE')) { storeFile file(MYAPP_UPLOAD_STORE_FILE) storePassword MYAPP_UPLOAD_STORE_PASSWORD keyAlias MYAPP_UPLOAD_KEY_ALIAS keyPassword MYAPP_UPLOAD_KEY_PASSWORD }
add in:
storeFile file('my-upload-key.keystore') storePassword "[YOUR PASSWORD]" keyAlias "my-key-alias" keyPassword "[YOUR PASSWORD]"
and fill in [YOUR PASSWORD] as you did in step 1.
-
Your .apk and .aab files will be generated in android/app/build/outputs/
-
Choose one of them to upload to Google Play Store! 🎉
Distributed under the MIT License. See LICENSE
for more information.
Ajay Liu - contact@ajayliu.com
Project Link: https://github.com/AjayLiu/ichiban-react-native