Skip to content

Commit

Permalink
Merge pull request #6 from canopas/google-sign-in
Browse files Browse the repository at this point in the history
Implement google sign in
  • Loading branch information
cp-pratik-k authored Jan 17, 2024
2 parents 3d47432 + 3334e72 commit db6fa91
Show file tree
Hide file tree
Showing 26 changed files with 1,272 additions and 56 deletions.
832 changes: 832 additions & 0 deletions .idea/libraries/Dart_Packages.xml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions .idea/libraries/Flutter_Plugins.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 24 additions & 4 deletions app/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
id "com.google.gms.google-services"
}

def localProperties = new Properties()
Expand Down Expand Up @@ -51,11 +52,30 @@ android {
versionName flutterVersionName
}

signingConfigs {
if (System.getenv("APKSIGN_KEYSTORE") != null) {
release {
storeFile file(System.getenv("APKSIGN_KEYSTORE"))
storePassword System.getenv("APKSIGN_KEYSTORE_PASS")
keyAlias System.getenv("APKSIGN_KEY_ALIAS")
keyPassword System.getenv("APKSIGN_KEY_PASS")
}
} else {
release {
keyAlias 'cloud-gallery'
keyPassword 'canopas@cloud-gallery'
storeFile file('dev.jks')
storePassword 'canopas@cloud-gallery'
}
}
}

buildTypes {
debug {
signingConfig signingConfigs.release
}
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
signingConfig signingConfigs.release
}
}
}
Expand All @@ -64,4 +84,4 @@ flutter {
source '../..'
}

dependencies {}
dependencies {}
54 changes: 54 additions & 0 deletions app/android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"project_info": {
"project_number": "64221198282",
"project_id": "cloud-gallery-auth",
"storage_bucket": "cloud-gallery-auth.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:64221198282:android:64782148b88407396e8133",
"android_client_info": {
"package_name": "com.canopas.cloud_gallery"
}
},
"oauth_client": [
{
"client_id": "64221198282-3eg7r09fsl1u3s9tge7ud1206q18pkf7.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.canopas.cloud_gallery",
"certificate_hash": "38887addbb77aaeba38c77a211469aafe02b2b41"
}
},
{
"client_id": "64221198282-3pk3g95eutmuj2u4h45ptorsbb64g3og.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyABDkRcwTA2gwgjBtx5GGNLgAsCHKY7Rpc"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "64221198282-3pk3g95eutmuj2u4h45ptorsbb64g3og.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "64221198282-h8h8gjo3991iijeg2agdkmfh6tr014nq.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.canopas.cloudGallery"
}
}
]
}
}
}
],
"configuration_version": "1"
}
8 changes: 8 additions & 0 deletions app/android/app/local.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Wed Jan 17 14:17:41 IST 2024
sdk.dir=/Users/pratikcanopas/Library/Android/sdk
1 change: 1 addition & 0 deletions app/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.gms:google-services:4.4.0"
}
}

Expand Down
38 changes: 31 additions & 7 deletions app/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ PODS:
- AppAuth/Core (1.6.2)
- AppAuth/ExternalUserAgent (1.6.2):
- AppAuth/Core
- Firebase/CoreOnly (10.18.0):
- FirebaseCore (= 10.18.0)
- firebase_core (2.24.2):
- Firebase/CoreOnly (= 10.18.0)
- Flutter
- FirebaseCore (10.18.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreInternal (10.19.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- Flutter (1.0.0)
- google_sign_in_ios (0.0.1):
- Flutter
Expand All @@ -14,42 +25,55 @@ PODS:
- AppAuth (~> 1.5)
- GTMAppAuth (< 3.0, >= 1.3)
- GTMSessionFetcher/Core (< 4.0, >= 1.1)
- GoogleUtilities/Environment (7.12.0):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.12.0):
- GoogleUtilities/Environment
- "GoogleUtilities/NSData+zlib (7.12.0)"
- GTMAppAuth (2.0.0):
- AppAuth/Core (~> 1.6)
- GTMSessionFetcher/Core (< 4.0, >= 1.5)
- GTMSessionFetcher/Core (3.2.0)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- PromisesObjC (2.3.1)

DEPENDENCIES:
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- Flutter (from `Flutter`)
- google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/darwin`)
- shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)

SPEC REPOS:
trunk:
- AppAuth
- Firebase
- FirebaseCore
- FirebaseCoreInternal
- GoogleSignIn
- GoogleUtilities
- GTMAppAuth
- GTMSessionFetcher
- PromisesObjC

EXTERNAL SOURCES:
firebase_core:
:path: ".symlinks/plugins/firebase_core/ios"
Flutter:
:path: Flutter
google_sign_in_ios:
:path: ".symlinks/plugins/google_sign_in_ios/darwin"
shared_preferences_foundation:
:path: ".symlinks/plugins/shared_preferences_foundation/darwin"

SPEC CHECKSUMS:
AppAuth: 3bb1d1cd9340bd09f5ed189fb00b1cc28e1e8570
Firebase: 414ad272f8d02dfbf12662a9d43f4bba9bec2a06
firebase_core: 0af4a2b24f62071f9bf283691c0ee41556dcb3f5
FirebaseCore: 2322423314d92f946219c8791674d2f3345b598f
FirebaseCoreInternal: b444828ea7cfd594fca83046b95db98a2be4f290
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
google_sign_in_ios: 1bfaf6607b44cd1b24c4d4bc39719870440f9ce1
GoogleSignIn: b232380cf495a429b8095d3178a8d5855b42e842
GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34
GTMAppAuth: 99fb010047ba3973b7026e45393f51f27ab965ae
GTMSessionFetcher: 41b9ef0b4c08a6db4b7eb51a21ae5183ec99a2c8
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4

PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189

Expand Down
4 changes: 4 additions & 0 deletions app/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
ADB0F54A909CECF6AE7126A9 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1DCBF06C22B4C2B81ABC49EC /* GoogleService-Info.plist */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -45,6 +46,7 @@
0B0DC1FB5EAC2980BA93FC3A /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = "<group>"; };
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
1DCBF06C22B4C2B81ABC49EC /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Runner/GoogleService-Info.plist"; sourceTree = "<group>"; };
331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
Expand Down Expand Up @@ -129,6 +131,7 @@
331C8082294A63A400263BE5 /* RunnerTests */,
1812CDCCD7D8EE1D81BEB3EF /* Pods */,
E90E204BBB1CD9A3DD7B3F25 /* Frameworks */,
1DCBF06C22B4C2B81ABC49EC /* GoogleService-Info.plist */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -265,6 +268,7 @@
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
ADB0F54A909CECF6AE7126A9 /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
34 changes: 34 additions & 0 deletions app/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>64221198282-h8h8gjo3991iijeg2agdkmfh6tr014nq.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.64221198282-h8h8gjo3991iijeg2agdkmfh6tr014nq</string>
<key>API_KEY</key>
<string>AIzaSyDOoeWHX2RlxHcQ_QUHvR-tZJk_RsFluwY</string>
<key>GCM_SENDER_ID</key>
<string>64221198282</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.canopas.cloudGallery</string>
<key>PROJECT_ID</key>
<string>cloud-gallery-auth</string>
<key>STORAGE_BUCKET</key>
<string>cloud-gallery-auth.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:64221198282:ios:fcb315ff1f4bb4a66e8133</string>
</dict>
</plist>
13 changes: 13 additions & 0 deletions app/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>GIDClientID</key>
<string>64221198282-h8h8gjo3991iijeg2agdkmfh6tr014nq.apps.googleusercontent.com</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.64221198282-h8h8gjo3991iijeg2agdkmfh6tr014nq</string>
</array>
</dict>
</array>
<key>CFBundleName</key>
<string>cloud_gallery</string>
<key>CFBundlePackageType</key>
Expand Down
7 changes: 7 additions & 0 deletions app/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:64221198282:ios:fcb315ff1f4bb4a66e8133",
"FIREBASE_PROJECT_ID": "cloud-gallery-auth",
"GCM_SENDER_ID": "64221198282"
}
70 changes: 70 additions & 0 deletions app/lib/firebase_options.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// 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: 'AIzaSyABDkRcwTA2gwgjBtx5GGNLgAsCHKY7Rpc',
appId: '1:64221198282:android:64782148b88407396e8133',
messagingSenderId: '64221198282',
projectId: 'cloud-gallery-auth',
storageBucket: 'cloud-gallery-auth.appspot.com',
);

static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyDOoeWHX2RlxHcQ_QUHvR-tZJk_RsFluwY',
appId: '1:64221198282:ios:fcb315ff1f4bb4a66e8133',
messagingSenderId: '64221198282',
projectId: 'cloud-gallery-auth',
storageBucket: 'cloud-gallery-auth.appspot.com',
androidClientId: '64221198282-3eg7r09fsl1u3s9tge7ud1206q18pkf7.apps.googleusercontent.com',
iosClientId: '64221198282-h8h8gjo3991iijeg2agdkmfh6tr014nq.apps.googleusercontent.com',
iosBundleId: 'com.canopas.cloudGallery',
);
}
Loading

0 comments on commit db6fa91

Please sign in to comment.