GMAX IPTV DOCUMMENTS
  • Introduction
    • Required
    • Start
  • Android
    • Icons
    • Get dependencies
    • Change Package name
  • Access Key
    • Why use Access Key?
    • Android Key
    • IOS Key
  • Admob
    • Active or Discative Admob
  • Settings
    • Colors
    • Social Media Accounts
  • Build app
    • Run app
    • Build and install the application
Powered by GitBook
On this page
  1. Android

Change Package name

If you want to change the package name, follow these steps

1 - Open /android/app/build.gradle Change File name


defaultConfig {
	applicationId "<REPLACE WITH YOUR PACKAGE NAME>" // this is the package name
	minSdkVersion 21
	targetSdkVersion 33
	versionCode flutterVersionCode.toInteger()
	versionName flutterVersionName
	testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

2- Open /android/app/src/main/AndroidManifest.xml , /android/app/src/profil/AndroidManifest.xml, /android/app/src/debug/AndroidManifest.xml update :

  • Your Package name

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
	package="<YOUR PACKAGE NAME>">
									
	<uses-permission android:name="android.permission.INTERNET"/>
									
	<!-- io.flutter.app.FlutterApplication is an android.app.Application that
	calls FlutterMain.startInitialization(this); in its onCreate method.
	In most cases you can leave this as-is, but you if you want to provide
	additional functionality it is fine to subclass or reimplement
	FlutterApplication and put your custom class here. -->
	<application
	android:name="io.flutter.app.FlutterApplication"
	android:label="<YOUR APPLICATION NAME>"
	android:icon="@mipmap/ic_launcher">
3 - Open /android/app/src/main/kotlin/<Your Package name folders>/MainActivity.kt Change to your Package name
PreviousGet dependenciesNextAccess Key