Skip to content

mazharulsabbir/flutter_getting_started

Repository files navigation

1 Configuration

Add the following to your lib/constraints/configs.dart file:`:

class AppConfig {
  final String _oneSignalAppId = "YOUR_ONESIGNAL_APP_ID";
  final String _oneSignalRestAPIKey = "YOUR_ONESIGNAL_REST_API_KEY";

  String get oneSignalAppId => _oneSignalAppId;
  String get oneSignalRestAPIKey => _oneSignalRestAPIKey;
}

1.2.1 Android Configuration

Update android/app/src/main/AndroidManifest.xml with the following:

<manifest>
    <application>
        <!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->
        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="YOUR_ADMOB_APP_ID"/>
    <application>
<manifest>

1.2.2 iOS Configuration

Update ios/Runner/Info.plist with the following:

<dict>
    <!-- Sample AdMob app ID: ca-app-pub-3940256099942544~3347511713 -->
    <key>GADApplicationIdentifier</key>
    <string>YOUR_ADMOB_APP_ID</string>
</dict>

1.3.1 Android Configuration

Generate SHA-1 and put into google cloud project or firebase project settings.

1.3.2 iOS Configuration

Update ios/Runner/Info.plist with the following:

<!-- Put me in the [my_project]/ios/Runner/Info.plist file -->
<!-- Google Sign-in Section -->
<key>CFBundleURLTypes</key>
<array>
	<dict>
		<key>CFBundleTypeRole</key>
		<string>Editor</string>
		<key>CFBundleURLSchemes</key>
		<array>
			<!-- TODO Replace this value: -->
			<!-- Copied from GoogleService-Info.plist key REVERSED_CLIENT_ID -->
			<string>com.googleusercontent.apps.861823949799-vc35cprkp249096uujjn0vvnmcvjppkn</string>
		</array>
	</dict>
</array>
<!-- End of the Google Sign-in Section -->

1.5 Install packages on iOS

arch -x86_64 pod install --repo-update

About

This is a template repository for starting flutter apps with some pre build codes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published