Skip to content

Commit 851a3cf

Browse files
committed
feat: updating this repo
1 parent c935135 commit 851a3cf

9 files changed

+269
-159
lines changed

Diff for: .fvm/fvm_config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"flutterSdkVersion": "2.10.5",
2+
"flutterSdkVersion": "stable",
33
"flavors": {}
44
}

Diff for: .vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"dart.flutterSdkPath": "\\Users\\Adby\\fvm\\versions\\2.10.5"
2+
"dart.flutterSdkPath": "\\Users\\Adby\\fvm\\versions\\stable"
33
}

Diff for: ios/Runner/GoogleService-Info.plist

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CLIENT_ID</key>
6+
<string>961446269155-9qkrajmb8ie4hnf2droj3e7oqhhofje5.apps.googleusercontent.com</string>
7+
<key>REVERSED_CLIENT_ID</key>
8+
<string>com.googleusercontent.apps.961446269155-9qkrajmb8ie4hnf2droj3e7oqhhofje5</string>
9+
<key>API_KEY</key>
10+
<string>AIzaSyA1uP5Mn7mh7EZF7IZL0e9AIhBZtstq-RQ</string>
11+
<key>GCM_SENDER_ID</key>
12+
<string>961446269155</string>
13+
<key>PLIST_VERSION</key>
14+
<string>1</string>
15+
<key>BUNDLE_ID</key>
16+
<string>com.example.learningPushNotifications</string>
17+
<key>PROJECT_ID</key>
18+
<string>learningpushnotification-3c900</string>
19+
<key>STORAGE_BUCKET</key>
20+
<string>learningpushnotification-3c900.appspot.com</string>
21+
<key>IS_ADS_ENABLED</key>
22+
<false></false>
23+
<key>IS_ANALYTICS_ENABLED</key>
24+
<false></false>
25+
<key>IS_APPINVITE_ENABLED</key>
26+
<true></true>
27+
<key>IS_GCM_ENABLED</key>
28+
<true></true>
29+
<key>IS_SIGNIN_ENABLED</key>
30+
<true></true>
31+
<key>GOOGLE_APP_ID</key>
32+
<string>1:961446269155:ios:9522906af21390e4e475d6</string>
33+
</dict>
34+
</plist>

Diff for: ios/firebase_app_id_file.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"file_generated_by": "FlutterFire CLI",
3+
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
4+
"GOOGLE_APP_ID": "1:961446269155:ios:9522906af21390e4e475d6",
5+
"FIREBASE_PROJECT_ID": "learningpushnotification-3c900",
6+
"GCM_SENDER_ID": "961446269155"
7+
}

Diff for: lib/firebase_options.dart

+11-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ class DefaultFirebaseOptions {
2626
case TargetPlatform.android:
2727
return android;
2828
case TargetPlatform.iOS:
29-
throw UnsupportedError(
30-
'DefaultFirebaseOptions have not been configured for ios - '
31-
'you can reconfigure this by running the FlutterFire CLI again.',
32-
);
29+
return ios;
3330
case TargetPlatform.macOS:
3431
throw UnsupportedError(
3532
'DefaultFirebaseOptions have not been configured for macos - '
@@ -59,4 +56,14 @@ class DefaultFirebaseOptions {
5956
projectId: 'learningpushnotification-3c900',
6057
storageBucket: 'learningpushnotification-3c900.appspot.com',
6158
);
59+
60+
static const FirebaseOptions ios = FirebaseOptions(
61+
apiKey: 'AIzaSyA1uP5Mn7mh7EZF7IZL0e9AIhBZtstq-RQ',
62+
appId: '1:961446269155:ios:9522906af21390e4e475d6',
63+
messagingSenderId: '961446269155',
64+
projectId: 'learningpushnotification-3c900',
65+
storageBucket: 'learningpushnotification-3c900.appspot.com',
66+
iosClientId: '961446269155-9qkrajmb8ie4hnf2droj3e7oqhhofje5.apps.googleusercontent.com',
67+
iosBundleId: 'com.example.learningPushNotifications',
68+
);
6269
}

Diff for: lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void initializeOneSignalPushNotifications() {
2929

3030
// The promptForPushNotificationsWithUserResponse function will show the iOS push notification prompt. We recommend removing the following code and instead using an In-App Message to prompt for notification permission
3131
OneSignal.shared.promptUserForPushNotificationPermission().then((accepted) {
32-
print("Accepted permission: $accepted");
32+
debugPrint("Accepted permission: $accepted");
3333
});
3434

3535
//1 - MOSTRA A NOTIFICAÇÃO NA TELA

0 commit comments

Comments
 (0)