Skip to content

butvinm/Refal-Android

Repository files navigation

Refal Android

This project demonstrates how an Android application can be built using the Refal programming language.

Project Structure

  • ./rawdrawandroid: Project that allows building Android applications in C
  • ./Refal-05-Standalone: Standalone distribution of the Refal-05 compiler
  • ./refalrawdraw.c: Refal bindings for the rawdrawandroid API
  • ./mvu.ref: Model-Update-View framework (Elm Architecture)
  • ./main.ref: Main application logic written in Refal

Prerequisites

  • Android SDK and NDK
  • make
  • adb (Android Debug Bridge)
  • Connected Android device or emulator

Refer to rawdrawandroid for more detailed guide.

Development

Clone and initialize submodules:

git clone https://github.com/butvinm/Refal-Android
cd Refal-Android
git submodule update --init --recursive

Generate application keys:

make keystore

Build and upload the application to a connected device:

make push run

Inspect application logs:

# Clean logs
adb logcat -c

# Capture logs
adb logcat > logcat.log

# Grep linker errors
grep "librefal.so" logcat.log

Acknowledgments

This project would not be possible without Refal-05 and rawdrawandroid.

About

Build Android applications using the Refal programming language

Topics

Resources

Stars

Watchers

Forks