Best android open-source packages and libraries.

Game counter

🎯 A game to keep the score for a two player game such as Star Realms.
Updated 3 years ago

game-counter

A game to keep the score for a two player game such as Star Realms.

Screenshot

Development

Start the app:

Open the Android Virtual Device (AVD) Manager (android avd) and start a device).

Or open Genymotion and start and android device.

react-native run-android

Live Reloading

In the emulator, hit Cmd+M, and tap "Enable Live Reload".

Chrome Developer Tools

In the emulator, hit Cmd+M, and tap "Enable Live Reload".

Accessing console logs

react-native log-android

Installation

This is from the React Native Getting Started guide

Install node and watchman

brew install node
brew install watchman

Install the React Native CLI

npm install -g react-native-cli

Install Android Studio

Make sure you have AVD (Android Virtual Device) and HAXM (Performance (Intel HAXM)).

Run android to start SDK Manager, look for "Intel x86 Emulator Accelerator (HAXM installer)" under Extras.

Make sure you have JDK 8 (1.8.x)

javac -version

Install the Android 6 and 7 SDK

Select "SDK Platforms" from within the SDK Manager, then check the box next to "Show Package Details". Look for and expand the Android 6.0 (Marshmallow) entry, then make sure the following items are all checked:

  • Google APIs
  • Intel x86 Atom System Image
  • Intel x86 Atom_64 System Image
  • Google APIs Intel x86 Atom_64 System Image

Next, select "SDK Tools" and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build Tools" entry, then make sure that Android SDK Build-Tools 23.0.1 is selected.

Finally, click "Apply" to download and install the Android SDK and related build tools.

Add Android to your PATH

export ANDROID_HOME="$HOME/Library/Android/sdk"
ANDROID_PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"
export PATH="$ANDROID_PATH:$PATH"

Making a release

This is from the React Native Documentation.

  1. Make sure you have the keystore file (my-release-key.keystore) in android/app.

  2. Edit the file ~/android/gradle.properties and add the following (replace ***** with the correct keystore password, alias and key password),

    MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
    MYAPP_RELEASE_KEY_ALIAS=my-key-alias
    MYAPP_RELEASE_STORE_PASSWORD=*****
    MYAPP_RELEASE_KEY_PASSWORD=*****
    
  3. Generating the release APK

    cd android
    ./gradlew assembleRelease
    open app/build/outputs/apk
    

The generated APK can be found under android/app/build/outputs/apk/app-release.apk.

Todo

MVC

  • [x] Add undo icon
  • [x] Add app icon
  • [x] Animation when adding/subtracting
  • [ ] Use correct undo icon
  • [ ] Make the score text responsive
  • [ ] Status bar color should be slightly darker
  • [ ] Choose app name
  • [ ] Keep the screen on
  • [ ] Remove unnecessary permissions
  • [ ] Publish on Google Play
  • [ ] Publish on F-Droid

Stretch Goals

  • [ ] Add more menu on card
  • [ ] Add color picker on more menu
  • [ ] Add hamburger menu?
  • [ ] New game button?
  • [ ] Setting for starting score?
Tags realm