Skip to content

Refactor

Follow this guide to change the name and package name from Island to your app and package name. Before we get to platform specific changes let’s change only generic change needed first. Open lib/shared/global.dart and change the app name from Island to the one you need and other things if you need to.

class Global {
static const String appName = 'Island'; // Chnage the app name
static const String shareSubject = 'Check this out!';
static const String shareText = 'Look what I found at example.com!'; // Change the example.com to your website or play store url as we don't have app store support now
static const String privacyUrl = 'https://google.com'; // Change the privacy policy url
static const String termsUrl = 'https://google.com'; // Change the privacy policy url
}

Android

Now open android/src/main/res/AndroidManifest.xml file and change the android:label from Island to your app name.

<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<!-- Change the android:label -->
<application android:label="Island" android:name="${applicationName}" android:icon="@mipmap/launcher_icon">
<activity android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
<meta-data android:name="io.flutter.embedding.android.NormalTheme" android:resource="@style/NormalTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<meta-data android:name="flutterEmbedding" android:value="2" />
</application>
</manifest>

To change the package name open android/app/build.gradle file and change the applicationId to your package name. It must be unique otherwise you won’t be able to publish it on the play store.

defaultConfig {
applicationId "in.morestudio.island" // Change the package name
minSdkVersion 23
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}

Just one more thing. You need a keystore file to sign the app for both dev build and release build also to publish the app on playstore. To generate a keystore run the below command. Make sure you have keytool installed in your system, it comes from JDK. Just install JDK and add it to PATH. You can follow this guide here. Please change YOURALIAS with the one you like, it can be anything.

Terminal window
keytool -genkey -v -keystore android/app/key.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias YOURALIAS

Create a file named android/key.properties that contains a reference to your keystore. Don’t include the angle brackets (< >). They indicate that the text serves as a placeholder for your values. Just change storePassword, keyPassword and keyAlias from previous step.

storePassword=<password-from-previous-step>
keyPassword=<password-from-previous-step>
keyAlias=upload
storeFile=key.keystore

iOS

Coming Soon