App Deployment

You will get a project of app after extracting downloaded files

Android App Installation

  1. You have to install Android Studio or VS code.

  2. Than make sure you have installed flutter sdk in your system.

  3. Import project in Android Studio or VS Code

  4. Run command "flutter pub get"

  5. Run command "flutter clean"

  6. Make sure you have connected to android device or AVD.

  7. Than go to inside project directory\lib\common\apipath.dart

  8. Enter your domain url eg: https://example.com/public/

  9. Click Play button or run command "flutter run"

  10. You can change your app icon from directory android\app\src\main\res

  11. For generate these icons of different size use website https://makeappicon.com/ For this you need to upload you icon of size 1536 X 1536

  12. Your project is running now

  13. To change your app package name

    • Run this command to change the package name.flutter pub run change_app_package_name:main com.new.package.name

    • Where com.new.package.name is the new package name that you want for your app. replace it with any name you want

  14. Change your app name ctrl+shift+F to find nexthour than ctrl+shift+R to replace it with your app name

  15. Add your Admob API key at the path android/app/src/main/AndroidManifest.xml

  16. Create a Login with Amazon API key for Android.

  17. Create a text file located at {project_root}/android/app/main/assets/api_key.txt

  18. Copy-paste the contents of the API key from the Login with Amazon console into the file {project_root}/android/app/main/assets/api_key.txt

Go to lib -> common -> apipath.dart

class APIData {
// Replace with your domain link
 static const String domainLink = "YOUR_DOMIAN_LINK/public";
 static const String domainApiLink = domainLink+"api/";    

To Add Secret key in APP

Go to lib -> common -> apipath.dart static const String secretKey = "ENTER_API_SECRET_KEY";

To Change Your Launcher icon

Go to android-> app-> src-> main ->res

Last updated