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 Setup Admob Ads
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>
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 Google Sign-in
Generate SHA-1 and put into google cloud project or firebase project settings.
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.4 Facebook Sign-in
arch -x86_64 pod install --repo-update