Skip to content

codingwizard0831/social-anime-app-flutter

Repository files navigation

senpai

A new Flutter project.

Running the app (on Mac)

Setup flutter sdk: https://docs.flutter.dev/get-started/install

  1. flutter pub get
  2. cd ios
  3. pod install
  4. Open iOS Simulator or Android Studio simulator
  5. flutter run

Command to generate files:

  1. dart run build_runner build --delete-conflicting-outputs
  2. /bin/zsh ./localization_update.sh <- Command to upload new translation from https://localise.biz/ or you can go to the file and run the script right from there

Adding UnityIntegration for iOS

  1. Get exported build from Unity: UnityLibrary
  2. Place the /UnityLibrary in /ios/UnityIntegration
  3. Open Runner.xcworskspace in XCode
  4. In Unity-iPhone/Data, tick UnityFramework

Tick UnityFramework

  1. Select Runner, go to General -> Frameworks, Libraries, and Embedded Content and add UnityFramework.

Also go to Unity-iPhone/Frameworks and drag all the Frameworks into Runner

Add Dependencies

  1. Trigger Play on an iPhone device only, no simulators.

Adding UnityIntegration for Android

  1. Get exported build from Unity: UnityLibrary
  2. Place the /UnityLibrary in /android/UnityIntegration
  3. Open build.gradle file on /android/UnityIntegration/UnityLibrary
  4. Modify the dependencies project path implementation project('AgoraRtcEngineKit.plugin'), to this implementation project(':AgoraRtcEngineKit.plugin')

Add Dependencies

  1. Compile and run

Generating Appbundles for Android

In order to generate a signed bundle, you'll need key.properties and upload-keystore.jks in the /android directory.

Ask the team for these files.

The command to generate the bundle is:

flutter build appbundle --release --dart-define=APP_ENV=prod

The important part being --dart-define=APP_ENV=prod, ensuring the bundle will run in production mode.

This flag can also be used with flutter run.

Releases

No releases published

Packages

No packages published

Contributors 7