Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from cyblogerz/beta-development-br
Browse files Browse the repository at this point in the history
Refined code
  • Loading branch information
cyblogerz authored Oct 9, 2022
2 parents 7ed54dc + 4442797 commit 39d5a45
Show file tree
Hide file tree
Showing 9 changed files with 132 additions and 2 deletions.
34 changes: 34 additions & 0 deletions ios/Runner/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CLIENT_ID</key>
<string>243168622483-j2n9iso4qa9lmioou32pik9u431kl49g.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.243168622483-j2n9iso4qa9lmioou32pik9u431kl49g</string>
<key>API_KEY</key>
<string>AIzaSyDwUlZTdnWEo4SS6ovnm8DU9ISg5g8lK1k</string>
<key>GCM_SENDER_ID</key>
<string>243168622483</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.cyblogerz.nallagram</string>
<key>PROJECT_ID</key>
<string>nallagram-ac</string>
<key>STORAGE_BUCKET</key>
<string>nallagram-ac.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:243168622483:ios:98911caf952c5700299a66</string>
</dict>
</plist>
7 changes: 7 additions & 0 deletions ios/firebase_app_id_file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:243168622483:ios:98911caf952c5700299a66",
"FIREBASE_PROJECT_ID": "nallagram-ac",
"GCM_SENDER_ID": "243168622483"
}
69 changes: 69 additions & 0 deletions lib/firebase_options.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
// File generated by FlutterFire CLI.
// ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
import 'package:flutter/foundation.dart'
show defaultTargetPlatform, kIsWeb, TargetPlatform;

/// Default [FirebaseOptions] for use with your Firebase apps.
///
/// Example:
/// ```dart
/// import 'firebase_options.dart';
/// // ...
/// await Firebase.initializeApp(
/// options: DefaultFirebaseOptions.currentPlatform,
/// );
/// ```
class DefaultFirebaseOptions {
static FirebaseOptions get currentPlatform {
if (kIsWeb) {
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for web - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
}
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return android;
case TargetPlatform.iOS:
return ios;
case TargetPlatform.macOS:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for macos - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
case TargetPlatform.windows:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for windows - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
case TargetPlatform.linux:
throw UnsupportedError(
'DefaultFirebaseOptions have not been configured for linux - '
'you can reconfigure this by running the FlutterFire CLI again.',
);
default:
throw UnsupportedError(
'DefaultFirebaseOptions are not supported for this platform.',
);
}
}

static const FirebaseOptions android = FirebaseOptions(
apiKey: 'AIzaSyAi1aYB6DP5z48KrldSk3TMPF7R-USVQ-o',
appId: '1:243168622483:android:babba9cf0993aa73299a66',
messagingSenderId: '243168622483',
projectId: 'nallagram-ac',
storageBucket: 'nallagram-ac.appspot.com',
);

static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyDwUlZTdnWEo4SS6ovnm8DU9ISg5g8lK1k',
appId: '1:243168622483:ios:98911caf952c5700299a66',
messagingSenderId: '243168622483',
projectId: 'nallagram-ac',
storageBucket: 'nallagram-ac.appspot.com',
iosClientId: '243168622483-j2n9iso4qa9lmioou32pik9u431kl49g.apps.googleusercontent.com',
iosBundleId: 'com.cyblogerz.nallagram',
);
}
5 changes: 4 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:nallagram/firebase_options.dart';
import 'package:nallagram/nav.dart';
import 'package:nallagram/screens/Authenticate/login_screen.dart';
import 'package:nallagram/screens/Chat/calls_chat.dart';
Expand All @@ -15,7 +16,9 @@ final _auth = FirebaseAuth.instance;

Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
runApp(MyApp());
}

Expand Down
17 changes: 17 additions & 0 deletions lib/models/user_model.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class User {
final String name;
final String desc;
final String profileurl;
final int followers;
final int following;
final int posts;

User({
this.desc,
this.profileurl,
this.followers,
this.following,
this.posts,
this.name,
});
}
Empty file added lib/services/fetch_explore.dart
Empty file.
Empty file added lib/services/fetch_post.dart
Empty file.
Empty file added lib/services/fetch_users.dart
Empty file.
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies:
emoji_picker_flutter: ^1.4.0
file_picker: ^5.2.0+1
firebase_auth: ^3.3.3
firebase_core: ^1.10.5
firebase_core: ^1.24.0
firebase_messaging: ^11.2.3
firebase_storage: ^10.2.3
flutter:
Expand Down

0 comments on commit 39d5a45

Please sign in to comment.