App setup
rename, bundle id, icon, server, widgets.
Everything you change in the Flutter project to make it your own. Paths are relative to app/.
01API_BASE_URL
The address of your server is a build-time value, not stored in a file:
flutter build apk --release --dart-define=API_BASE_URL=https://followlens.example.com --dart-define=APP_VERSION=1.0.0
Empty API_BASE_URL means no server: built-in config, no ping, no purchase verification. APP_VERSION (default 1.0.0) is compared with the console's minimum version; keep it equal to version: in pubspec.yaml. Defined in lib/src/wiring/env.dart.
02App name
lib/brand.dart:appName,proName,tagline,disclaimer,accentHex. Keep the "not affiliated with Instagram or Meta" disclaimer, and never use Instagram's name, logo or gradient in your name or icon.- Android launcher label:
android:labelinandroid/app/src/main/AndroidManifest.xml. - iOS:
CFBundleDisplayNameinios/Runner/Info.plist. - Console: Brand section (name, accent, links).
03Bundle id and package name
The shipped id is com.mikodes.followlens. You must change it to an id you own before publishing.
- Android.
namespaceandapplicationIdinandroid/app/build.gradle.kts; move the folderandroid/app/src/main/kotlin/com/mikodes/followlens/to your package path and update thepackageline inMainActivity.ktandFollowlensWidgetProvider.kt. - iOS. In Xcode open
ios/Runner.xcworkspace, select the Runner target, Signing & Capabilities, and set your bundle identifier and Team. The widget target uses<your id>.FollowlensWidget. SearchPRODUCT_BUNDLE_IDENTIFIERinios/Runner.xcodeproj/project.pbxprojif you edit by hand. - Console. Enter the same bundle id and package name under Purchases when verification is on.
04Icon
Replace assets/icon/icon.png and assets/icon/icon_foreground.png (Android adaptive foreground; background colour #06080E in pubspec.yaml), then run:
dart run flutter_launcher_icons
It writes the Android and iOS launcher icons (configured in pubspec.yaml, section flutter_launcher_icons).
05Home-screen widget and the iOS App Group
After every import the app writes follower count, net change, last import date and account name for the widget. The names are in lib/src/services/widget_bridge.dart.
iOS (WidgetKit)
The widget extension is in ios/FollowlensWidget/. The app and the widget share data through an App Group, shipped as group.com.mikodes.followlens. When you change the bundle id, change the App Group to your own, in all four places:
widgetAppGroupinlib/src/services/widget_bridge.dartios/Runner/Runner.entitlementsios/FollowlensWidget/FollowlensWidget.entitlementsappGroupinios/FollowlensWidget/FollowlensWidget.swift
Then register the App Group in your Apple Developer account (Certificates, Identifiers & Profiles) and enable the App Groups capability for both the Runner and FollowlensWidget App IDs.
Android
The widget is FollowlensWidgetProvider (declared in AndroidManifest.xml, layout info in res/xml/followlens_widget_info.xml). No extra account setup. Keep the class name unless you also change widgetAndroidProvider in widget_bridge.dart. Users add it from the launcher's widget list.
06The followlens:// deep link
Used only by the Instagram API module: after the user signs in on Instagram, your server redirects to followlens://ig-connected and the app opens. It is registered in android/app/src/main/AndroidManifest.xml (intent filter, scheme followlens, host ig-connected) and in ios/Runner/Info.plist (CFBundleURLTypes).
To use your own scheme, change all three: those two files and APP_REDIRECT in server/src/instagram.ts (then npm run build and restart). You may keep followlens as is.
07Permissions the app asks for
Android: INTERNET, USE_BIOMETRIC, POST_NOTIFICATIONS, RECEIVE_BOOT_COMPLETED. iOS: Face ID (app lock) and photo library (story screenshots, read on the phone only). Notification permission is requested only when the user turns on reminders. Write matching privacy-policy and store-listing text.