/crystal-android-hello-world

Sample native Android app written in pure Crystal

Primary LanguageCrystal

crystal-android-hello-world

Example of building a native Android app using pure Crystal, which shows the spinning icosahedron from the Crystal website recreated in OpenGL ES, using android-ndk.cr

Screen.Recording.2023-01-07.at.06.02.08.mov
  1. Install the Android NDK
  2. Prepare a Crystal compiler with Android support that has this commit
  3. Run CRYSTAL=<bin/crystal from above> make
  4. If an Android device or emulator is available, run make install