diff --git a/example/README.md b/example/README.md index 5bf4313..041e03f 100644 --- a/example/README.md +++ b/example/README.md @@ -19,6 +19,8 @@ samples, guidance on mobile development, and a full API reference. ## Run the example Assuming you have Flutter setup on your machine. +Update your Amplitude API key in `lib/main.dart`. + ### Android & iOS Open the emulator you want to test on (Android, iOS) ```shell diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index b00c73a..be0e479 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -27,7 +27,7 @@ apply plugin: 'kotlin-android' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - namespace 'com.example.amplitude_flutte_example' + namespace 'com.example.amplitude_flutter_example' compileSdkVersion 34 sourceSets { diff --git a/example/lib/main.dart b/example/lib/main.dart index f284783..7daf5d0 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -2,4 +2,4 @@ import 'package:flutter/material.dart'; import 'my_app.dart'; -void main() => runApp(const MyApp('5b9a9510e261f9ead90865bbc5a7ad1d')); +void main() => runApp(const MyApp('API_KEY'));