This repository contains the source code for the Playcard Flutter application. You need a JSON api server like https://github.com/ArnoldSchiller/playcard for this to work.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Flutter SDK: Ensure you have Flutter installed. Follow the official Flutter installation guide: https://flutter.dev/docs/get-started/install
- Android Studio / Android SDK: For Android development, you'll need Android Studio and the Android SDK.
- Java Development Kit (JDK): This project is configured to use Java 17 for Android compilation. Please ensure you have JDK 17 installed and configured correctly. You can download OpenJDK from Adoptium: https://adoptium.net/temurin/releases/
-
Clone the repository:
git clone [YOUR_REPOSITORY_URL] cd playcard/example/app # Navigate into the app directory
(Replace
[YOUR_REPOSITORY_URL]with the actual URL of your Git repository) -
Get Flutter dependencies:
flutter pub get
-
Android-Specific Configuration (Important!)
This project requires a specific Android NDK version and Java compatibility settings. These are already configured in
android/app/build.gradle.ktswithin this repository, but it's good to be aware of them:- Android NDK Version: The project explicitly uses Android NDK
27.0.12077973. Android Studio should prompt you to install this version if you don't have it. If not, you can install it via SDK Manager in Android Studio (Appearance & Behavior > System Settings > Android SDK > SDK Toolstab). - Java Compatibility: The project is set to compile with Java 17. Ensure your
JAVA_HOMEenvironment variable points to a JDK 17 installation.
- Android NDK Version: The project explicitly uses Android NDK
-
Run the application (Debug Mode):
- Connect an Android device (with USB debugging enabled) or start an Android Emulator.
- Run the app:
flutter run
This command will build and install the debug version of the app on your connected device/emulator.
- Debug vs. Release Builds: This repository is configured for easy debug builds.
- App Signing (for Release): This repository does NOT contain any sensitive signing keys (
key.properties) or release signing configurations. If you plan to build a release version of the app for distribution (e.g., to Google Play Store), you will need to:- Generate your own upload keystore.
- Create a
key.propertiesfile in the root of your Flutter project (sibling topubspec.yaml) containing your keystore details. - Add the
signingConfigsblock and thesigningConfigassignment to thereleasebuild type inandroid/app/build.gradle.kts(refer to official Flutter documentation on Android app signing). Never commit yourkey.propertiesfile or sensitive signing credentials to Git!
- Package Updates: You may occasionally see warnings about outdated Flutter packages. You can check for newer versions with
flutter pub outdated. Update packages by modifyingpubspec.yamland runningflutter pub get, but be mindful of breaking changes.
This project is licensed under the MIT License 1.0.
Copyright (c) 2025 Arnold Schiller schiller@babsi.de
For the Media-kit library, the copyright is: Copyright (c) 2021 & onwards Hitesh Kumar Saini saini123hitesh@gmail.com