App Deployment
You will get a project of app after extracting downloaded files
Android App Installation
You have to install Android Studio or VS code.
Than make sure you have installed flutter sdk in your system.
Import project in Android Studio or VS Code
Run command "flutter pub get"
Run command "flutter clean"
Make sure you have connected to android device or AVD.
Than go to inside project directory\lib\common\apipath.dart
Enter your domain url eg: https://example.com/public/
Click Play button or run command "flutter run"
You can change your app icon from directory android\app\src\main\res
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
Your project is running now
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
Change your app name ctrl+shift+F to find nexthour than ctrl+shift+R to replace it with your app name
Add your Admob API key at the path android/app/src/main/AndroidManifest.xml
Create a Login with Amazon API key for Android.
Create a text file located at
{project_root}/android/app/main/assets/api_key.txt
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
To Change Your Domain Link
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";
Next Hour App Deploy Video :
To Change Your Launcher icon
Go to android-> app-> src-> main ->res

One Signal APP Id
Go to lib -> common -> apipath.dart
// For notifications
static const String onSignalAppId = "ENTER_ONESIGNAL_APP_ID";
Play Google Drive Video
Go to lib -> common -> apipath.dart
// To play google drive video
static const String googleDriveApi = 'ENTER_GOOGLE_DRIVE_API';
Facebook APP ID
Go to android -> app -> src -> main -> res -> values -> strings.xml
<string name="app_name">APP_NAME</string>
<string name="facebook_app_id">ENTER_YOUR_FACEBOOK_APP_ID</string>
<string name="fb_login_protocol_scheme">FB_ENTER_YOUR_FACEBOOK_APP_ID</string>
Admob API KEY
Go to android -> app -> src -> main -> AndroidManifest.xml
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ENTER YOUR ADMOB API ID "/>
better_player isssue
Package better_player: 0.0.83 had some issues and we have fixed the issues so that we could use the package in our Flutter Projects. This is why, it is must to follow and apply the given steps -
Extract zip file named local.zip inside project root directory (Nexthour Mobile App Flutter Files),
Open pubspec.yaml file,
Replace better_player: 0.0.83 with better_player: path: local/better_player-0.0.83
Now you may run App Project.
Last updated