Skip to content

DanSM-5/AddIt

Repository files navigation

Add It!

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.

Features

  • 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.

Motivation

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.

Dependencies

To build for Android you need the following:

  • Node 22.15.0 (provided .nvmrc file)
  • Java 17 (open-jdk/oracle-jdk) (scoop install openjdk17)
  • Android Build tools (adb) (scoop install android-sdk)

How to build (Android)

  1. Clone the repository.
git clone https://github.com/DanSM-5/AddIt
  1. Run npm ci to install the dependencies.

  2. Create a .env.local file 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=***
  1. Add <my-upload-key.keystore> to the root of the project.

  2. Run the command

npm run android:prepare

The command will setup the required files for the android build process.

Development

  1. Run the command
npm android

Production

Build using gradlew (apk)

Execute the following commands to build

cd android
./gradlew assembleRelease

or in windows

cd android
gradle assembleRelease

Build using react-native cli (aab)

npm run android:aab

Build using expo cli (apk)

npm run android:apk

Note

Using expo cli requires to have a real device or emulator connected through adb.

Setup Environment

Windows

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"

Download the game

You can get the current version of the game from the Play Store

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •