Documentation or Quick Guide
Introduction

AiHub is an AI-powered app that helps you get answers and create videos or images in minutes. AiHub uses natural language understanding and computer vision to analyze your questions, generate relevant videos or images, and provide accurate answers.

With AiHub, you can:

  • Get instant and accurate answers to your questions on any topic or domain
  • Create unlimited videos or images for any purpose
  • Download and share your videos or images as you like

This app is developed using one of the leading cross platform technology Flutter which enables developers/buyers to write single code for Android and iOS platform. This template includes Android and IOS latest platform support.

Prerequisite
  • IDE for Mobile development, we preferred Android Studio and VSCode.
  • Flutter SDK and JDK with path setup in your IDE.
  • Flutter SDK setup (version 3.10.2 Stable)
  • JDK with path setup (only for vs code)
  • Xcode for IPA file build
  • Basic knowledge in Dart and Flutter if you want to do some customization yourself.
  • Basic knowledge about mobile app design and api development.
Environment setup

Flutter SDK

You have to download and setup flutter from flutter.dev. You can follow documentation with your own device.

Once you download and setup flutter SDK then run a command: flutter doctor

Then check that every setup is okay. If not then check documentation again and set up flutter sdk properly.

Mandatory Mobile app setup
Run AiHub project in existing IDE
Change App Logo
  • Go to < project>/assets/imgaes and replace logo.png with your own logo which you want to put.

    (name should be logo and it should be in .png format)

  • Run flutter pub get and after that run flutter pub run flutter_launcher_icons:main

    This will change App Logo for both Android and iOS.

Change App_Package_Name
    For Android
  • Run flutter pub run change_app_package_name:main com.new.package.name (replace com.new.package.name with name you want for your app)
  • For iOS
  • Open project in Xcode.
  • Click on the Runner in the left side menu and select Gereral tab.
  • Under the Identity section, find the Bundle Identifier and change it to the new package name.
Create Firebase
Connect Firebase with Android
Connect Firebase with iOS
Enable Firestore
Enable Google Login
Enable Facebook Login
Change ChatGPT Key
Change D-ID Key
Change AdMob AD ID
In-app Purchase
App build and Release
Build for Android

For debug build you can run command:

flutter build apk

You will get a larger merged apk with this. But you can split them with this command:

flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

Build file location: /build/app/outputs/flutter-apk/

For deploying it please follow this documentation:
https://docs.flutter.dev/deployment/android

App Publish

Publishing is the general process that makes app available to users.

Publish to Playstore

For publish your Android app watch this tutorial:

Publish to App store

For publish your iOS app watch this tutorial: