Commit f15a53fd authored by Budi Prasetyo's avatar Budi Prasetyo

firebase setup

parent bc814759
......@@ -23,6 +23,7 @@ if (flutterVersionName == null) {
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.google.gms.google-services'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
......@@ -68,4 +69,5 @@ flutter {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation platform('com.google.firebase:firebase-bom:30.4.1')
}
{
"project_info": {
"project_number": "806811359126",
"project_id": "medapp-by-eksad",
"storage_bucket": "medapp-by-eksad.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:806811359126:android:5dea1814d776408a336fb7",
"android_client_info": {
"package_name": "com.eksad.medapp"
}
},
"oauth_client": [
{
"client_id": "806811359126-u6dgf8qamfdnn3ga32u7ppdot00e92bn.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDwbsx4RbqVDPIMfESYw4NIaUCxedQpxHE"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "806811359126-u6dgf8qamfdnn3ga32u7ppdot00e92bn.apps.googleusercontent.com",
"client_type": 3
},
{
"client_id": "806811359126-32g1e7m46rra6sjidfah3fauor5sq511.apps.googleusercontent.com",
"client_type": 2,
"ios_info": {
"bundle_id": "com.example.medappEksad"
}
}
]
}
}
}
],
"configuration_version": "1"
}
\ No newline at end of file
......@@ -8,6 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.13'
}
}
......
<?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>806811359126-32g1e7m46rra6sjidfah3fauor5sq511.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.806811359126-32g1e7m46rra6sjidfah3fauor5sq511</string>
<key>API_KEY</key>
<string>AIzaSyAHUTLqbVYsWtQoVmP99KMNSoYhi2jVR3s</string>
<key>GCM_SENDER_ID</key>
<string>806811359126</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.example.medappEksad</string>
<key>PROJECT_ID</key>
<string>medapp-by-eksad</string>
<key>STORAGE_BUCKET</key>
<string>medapp-by-eksad.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:806811359126:ios:fd5b916031b6994c336fb7</string>
</dict>
</plist>
\ No newline at end of file
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:806811359126:ios:fd5b916031b6994c336fb7",
"FIREBASE_PROJECT_ID": "medapp-by-eksad",
"GCM_SENDER_ID": "806811359126"
}
\ No newline at end of file
// 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) {
return web;
}
switch (defaultTargetPlatform) {
case TargetPlatform.android:
return android;
case TargetPlatform.iOS:
return ios;
case TargetPlatform.macOS:
return macos;
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 web = FirebaseOptions(
apiKey: 'AIzaSyDDrwgOX2lBl3oL3kSa4eTPZ2gdSUEA2i8',
appId: '1:806811359126:web:d8760ad3f5c4cbb4336fb7',
messagingSenderId: '806811359126',
projectId: 'medapp-by-eksad',
authDomain: 'medapp-by-eksad.firebaseapp.com',
storageBucket: 'medapp-by-eksad.appspot.com',
);
static const FirebaseOptions android = FirebaseOptions(
apiKey: 'AIzaSyDwbsx4RbqVDPIMfESYw4NIaUCxedQpxHE',
appId: '1:806811359126:android:6f3c3f91db66b5b9336fb7',
messagingSenderId: '806811359126',
projectId: 'medapp-by-eksad',
storageBucket: 'medapp-by-eksad.appspot.com',
);
static const FirebaseOptions ios = FirebaseOptions(
apiKey: 'AIzaSyAHUTLqbVYsWtQoVmP99KMNSoYhi2jVR3s',
appId: '1:806811359126:ios:fd5b916031b6994c336fb7',
messagingSenderId: '806811359126',
projectId: 'medapp-by-eksad',
storageBucket: 'medapp-by-eksad.appspot.com',
iosClientId: '806811359126-32g1e7m46rra6sjidfah3fauor5sq511.apps.googleusercontent.com',
iosBundleId: 'com.example.medappEksad',
);
static const FirebaseOptions macos = FirebaseOptions(
apiKey: 'AIzaSyAHUTLqbVYsWtQoVmP99KMNSoYhi2jVR3s',
appId: '1:806811359126:ios:fd5b916031b6994c336fb7',
messagingSenderId: '806811359126',
projectId: 'medapp-by-eksad',
storageBucket: 'medapp-by-eksad.appspot.com',
iosClientId: '806811359126-32g1e7m46rra6sjidfah3fauor5sq511.apps.googleusercontent.com',
iosBundleId: 'com.example.medappEksad',
);
}
<?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>806811359126-32g1e7m46rra6sjidfah3fauor5sq511.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.806811359126-32g1e7m46rra6sjidfah3fauor5sq511</string>
<key>API_KEY</key>
<string>AIzaSyAHUTLqbVYsWtQoVmP99KMNSoYhi2jVR3s</string>
<key>GCM_SENDER_ID</key>
<string>806811359126</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.example.medappEksad</string>
<key>PROJECT_ID</key>
<string>medapp-by-eksad</string>
<key>STORAGE_BUCKET</key>
<string>medapp-by-eksad.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:806811359126:ios:fd5b916031b6994c336fb7</string>
</dict>
</plist>
\ No newline at end of file
{
"file_generated_by": "FlutterFire CLI",
"purpose": "FirebaseAppID & ProjectID for this Firebase app in this directory",
"GOOGLE_APP_ID": "1:806811359126:ios:fd5b916031b6994c336fb7",
"FIREBASE_PROJECT_ID": "medapp-by-eksad",
"GCM_SENDER_ID": "806811359126"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment