Followlens docs
v1.0.0
Get help
● Set up · App

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:label in android/app/src/main/AndroidManifest.xml.
  • iOS: CFBundleDisplayName in ios/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.

  1. Android. namespace and applicationId in android/app/build.gradle.kts; move the folder android/app/src/main/kotlin/com/mikodes/followlens/ to your package path and update the package line in MainActivity.kt and FollowlensWidgetProvider.kt.
  2. 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. Search PRODUCT_BUNDLE_IDENTIFIER in ios/Runner.xcodeproj/project.pbxproj if you edit by hand.
  3. 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:

  • widgetAppGroup in lib/src/services/widget_bridge.dart
  • ios/Runner/Runner.entitlements
  • ios/FollowlensWidget/FollowlensWidget.entitlements
  • appGroup in ios/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.

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.