Add it! is a simple math game where you need to find the set of numbers that sums to the target number displayed at the top of the screen but do it quickly as there is a time limit.
The project is powered by React Native. Currently only tested in Android.
- 3 Pre-set dificulties for a quick game.
- Custom game mode to personalice your own experience and progress at your own rithm.
- Supports English and Spanish.
The game "Add It!" was created as a personal project to familiarize with the React Native framework. Some features were built with the only purpose of learning. If you have any suggestion, feel free to open an issue.
To build for Android you need the following:
- Node 22.15.0 (provided
.nvmrcfile) - Java 17 (open-jdk/oracle-jdk) (
scoop install openjdk17) - Android Build tools (adb) (
scoop install android-sdk)
- Clone the repository.
git clone https://github.com/DanSM-5/AddIt-
Run
npm cito install the dependencies. -
Create a
.env.localfile in the root of the project:
MYAPP_UPLOAD_STORE_FILE=my-upload-key.keystore
MYAPP_UPLOAD_KEY_ALIAS=my-key-alias
MYAPP_UPLOAD_STORE_PASSWORD=***
MYAPP_UPLOAD_KEY_PASSWORD=***-
Add
<my-upload-key.keystore>to the root of the project. -
Run the command
npm run android:prepareThe command will setup the required files for the android build process.
- Run the command
npm androidExecute the following commands to build
cd android
./gradlew assembleReleaseor in windows
cd android
gradle assembleReleasenpm run android:aabnpm run android:apkNote
Using expo cli requires to have a real device or emulator connected through adb.
You can install the dependencies in windows using scoop package manager.
Set environment variables dependencies as follows:
# bash/zsh
export ANDROID_HOME="$HOME/scoop/apps/android-sdk/current"
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME:/platform-tools:$PATH"
export JAVA_HOME="$HOME/scoop/apps/openjdk17/current"# powershell
$env:ANDROID_HOME = "$HOME/scoop/apps/android-sdk/current"
$env:PATH = "$env:ANDROID_HOME/tools:$env:ANDROID_HOME/tools/bin:$env:ANDROID_HOME:/platform-tools:$env:PATH"
$env:JAVA_HOME = "$HOME/scoop/apps/openjdk17/current"You can get the current version of the game from the Play Store