CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2020-05-29
by Yudhishthir Singh

Original Post

Original - Posted on 2018-07-27
by diegoveloper



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You do not have to change the package name in Firebase and you can change the package/application name as per your needs.
***1. For changing the app name:***
Change the label name in your AndroidManifest.xml file:
<application android:name="io.flutter.app.FlutterApplication" android:label="TheNameOfYourApp"
***2. For Package Name***
Change the package name in your AndroidManifest.xml file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="your.package.name"> Also in your build.gradle file inside app folder
defaultConfig { applicationId "your.package.name" minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }
Finally, change the package in your MainActivity.java class (if the MainActivity.java is not available, check the MainActivity.kt)
package your.package.name;
import android.os.Bundle; import io.flutter.app.FlutterActivity; import io.flutter.plugins.GeneratedPluginRegistrant; public class MainActivity extends FlutterActivity { Change the directory name:
From:

android\app\src\main\java\com\example\name
To:
android\app\src\main\java\your\package\name
**For Android App Name**
Change the label name in your `AndroidManifest.xml` file:
<application android:name="io.flutter.app.FlutterApplication" android:label="TheNameOfYourApp"
**For Package Name**
Change the package name in your `AndroidManifest.xml` file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="your.package.name">
Also in your `build.gradle` file inside app folder
defaultConfig { applicationId "your.package.name" minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }
Finally, change the package in your `MainActivity.java` class (if the MainActivity.java is not available, check the MainActivity.kt)
package your.package.name;
import android.os.Bundle; import io.flutter.app.FlutterActivity; import io.flutter.plugins.GeneratedPluginRegistrant; public class MainActivity extends FlutterActivity {

Change the directory name:
From:
android\app\src\main\java\com\example\name
To: android\app\src\main\java\your\package\name
--------------------------------------------- **EDITED : 27-Dec-18**
for **package name** just change in build `build.gradle` only
defaultConfig { applicationId "your.package.name" minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }

**For iOS**
Change the bundle identifier from your `Info.plist` file inside your `ios/Runner` directory.
<key>CFBundleIdentifier</key> <string>com.your.packagename</string>

**UPDATE**
To avoid renaming the package and bundle identifier, you can start your project using this command in your terminal:
``` flutter create --org com.yourdomain appname ```

        
Present in both answers; Present only in the new answer; Present only in the old answer;