Skip to content

ReaLearn Companion app. Soon to be superceded by the Helgobox App.

License

Notifications You must be signed in to change notification settings

helgoboss/realearn-companion

Repository files navigation

ReaLearn Companion

This is an addition to the REAPER plug-in ReaLearn and allows you to project a schematic representation of your currently active ReaLearn controller to your mobile device.

Usage

  1. Install ReaLearn in REAPER.
  2. Press its "Projection" button and follow the instructions.

Development

Generate code

Generated code is committed, so this needs to be executed only after changing files that influence generated code.

flutter pub run build_runner build --delete-conflicting-outputs

Generate icons

Reexport the icon as PNG after changing the SVG:

  1. In Inkscape, load resources/icon.svg
  2. Make sure helper layers are hidden
  3. File → Export PNG Image...
    • Export area: Drawing
    • Width/height: 512 pixels at 96 dpi
    • Filename: resources/icon.png
    • Advanced
      • Bit depth: RGBA_8 (should be the default, corresponds to sRGB as required by Google Play)
    • Press Export

Generate icon assets:

  1. In Android Studio, right-click android/app/src/main/res → New → Image Asset
    • Foreground Layer
      • Source Asset
        • Asset Type: Image
        • Path: resources/icon.png
      • Scaling
        • Trim: No
        • Resize: 57 % (maybe choose something like 50% next time because we changed export area to "Drawing" which results in a slightly larger image)
    • Background Layer
      • Source Asset
        • Color: #252525
    • Press Next and Finish

Export icons for web app:

  1. In Inkscape, load resources/icon.svg
  2. Make sure the "Rounded background" layer is visible and other helper layers are hidden
  3. File → Export PNG Image...
    • Export area: Drawing
    • Width/height: 32 pixels for favicon.png, 192/512 pixels for Icon-*.png
    • Filename: web/favicon.png, web/icons/Icon-192.png and web/icons/Icon-512.png

Interesting colors are:

  • Background: #252525
  • Active LEDs: #ffffff
  • Inactive LEDs: #808080
  • Magic wand: #ffcc00 (theme/primary color)
  • Text: #e6e6e6

Generate splash screen

After adjusting resources/icon.png, run this:

flutter pub run flutter_native_splash:create

Upgrade to new Flutter version

flutter channel stable
flutter upgrade

Sometimes it seems necessary to recreate the native app folders (if the templates changed). Was necessary for this issue for example.

For Windows:

rm windows
rm build/windows
flutter create --platforms=windows .

Release

  1. Adjust version and build number in pubspec.yaml.
  2. flutter build appbundle.
  3. Upload at Google Play Store.

About

ReaLearn Companion app. Soon to be superceded by the Helgobox App.

Resources

License

Stars

Watchers

Forks

Packages

No packages published