Skip to content

Migration Guide

kw101 edited this page Jan 22, 2019 · 1 revision

If you wanna to use this project as your project' base, i teach you how to migrate it.

Example:

Your Package Name / Bundle Id: com.company.flutterTemplate

Your App Name: Flutter Template

Your Root Name: flutter_template

A) Flutter Part

A1) Rename Root Folder name

Rename it to flutter_template

Project Name

A2) Rename in Dart Source code

Open Android Studio, Replace all flutter_starter_kit by flutter_template

replace

A3) Force to update Flutter setting

Open pubspec.yaml, click 'Package Update' to force update force update

B) Android Part

B1) Rename package name

Open Android Module in another window android module

Open AndroidManifest.xml,

highlight test to refactor to company

highlight flutterstarterkit to refactor to flutterTemplate refactor

B2) Rename bundle id

Open build.gradle under app folder, rename applicationId rename applicationId

B3) Rename App Name

Rename app name in different strings.xml rename app anme

C) iOS Part

C1) Rename bundle id

rename bundle id

C2) Modify product bundle id

Add $(BUNDLE_SUFFIX) after com.company.flutterTemplate rename product bundle id

C3) Rename App Name

Change APP_NAME in different .xcconfig rename app name

Finish and Enjoy it!