Skip to content

Commit

Permalink
feat: add demo login office
Browse files Browse the repository at this point in the history
  • Loading branch information
kenguyenduc committed May 25, 2022
1 parent 6ae50e0 commit ffefb5f
Show file tree
Hide file tree
Showing 23 changed files with 1,183 additions and 115 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.demo_login_office"
minSdkVersion 21
minSdkVersion 23
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
8 changes: 8 additions & 0 deletions android/app/google-services.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
}
},
"oauth_client": [
{
"client_id": "297966099397-ajpuc1kling8n1qs46eeo8n1b7sghl4m.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.demo_login_office",
"certificate_hash": "19770ee079abb9041c56720ed7faae50b003d888"
}
},
{
"client_id": "297966099397-3vnlunmt6dcpp7ede87upbud5o0cdhc6.apps.googleusercontent.com",
"client_type": 3
Expand Down
29 changes: 19 additions & 10 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
<manifest xmlns:android="http:https://schemas.android.com/apk/res/android"
package="com.example.demo_login_office">
<application
android:label="demo_login_office"

<application
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
android:label="demo_login_office">
<activity
android:name=".MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data
android:name="https://login.microsoftonline.com/common"
android:value="authority string" />
<meta-data
android:name="com.microsoft.identity.client.ClientId"
android:value="@string/client_Id" />
<meta-data
android:name="com.microsoft.identity.client.Authority"
android:value="@string/authority_string_msal" />
</application>
</manifest>
10 changes: 10 additions & 0 deletions android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE resources [
<!ENTITY clientId "63504bb0-74cf-4ba6-97c9-76d59c1529da">
<!ENTITY tenantId "cd61f176-1d9b-44fb-94a3-563affcaf249">
]>
<resources>
<string name="app_name">demo_login_office</string>
<string name="client_Id">&clientId;</string>
<string name="msalPrefix">msal&clientId;</string>
<string name="authority_string_msal">https://login.microsoftonline.com/&tenantId;/v2.0</string>
</resources>
28 changes: 24 additions & 4 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '10.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down Expand Up @@ -34,8 +34,28 @@ target 'Runner' do
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
# post_install do |installer|
# installer.pods_project.targets.each do |target|
# flutter_additional_ios_build_settings(target)
# end

post_install do |installer|
installer.pods_project.targets.each do |target|
# target.build_configurations.each do |config|
# config.build_settings['ENABLE_BITCODE'] = 'NO'
# config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
flutter_additional_ios_build_settings(target)
# end
# end
# end
# ... # Here are some configurations automatically generated by flutter

# You can remove unused permissions here
# for more infomation: https://github.com/BaseflowIT/flutter-permission-handler/blob/develop/permission_handler/ios/Classes/PermissionHandlerEnums.h
# e.g. when you don't need camera permission, just add 'PERMISSION_CAMERA=0'


# end
#end
end
end
130 changes: 130 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
PODS:
- AppAuth (1.5.0):
- AppAuth/Core (= 1.5.0)
- AppAuth/ExternalUserAgent (= 1.5.0)
- AppAuth/Core (1.5.0)
- AppAuth/ExternalUserAgent (1.5.0):
- AppAuth/Core
- Firebase/Auth (8.15.0):
- Firebase/CoreOnly
- FirebaseAuth (~> 8.15.0)
- Firebase/CoreOnly (8.15.0):
- FirebaseCore (= 8.15.0)
- firebase_auth (3.3.18):
- Firebase/Auth (= 8.15.0)
- firebase_core
- Flutter
- firebase_auth_oauth (0.0.1):
- firebase_auth
- Flutter
- firebase_core (1.17.0):
- Firebase/CoreOnly (= 8.15.0)
- Flutter
- FirebaseAuth (8.15.0):
- FirebaseCore (~> 8.0)
- GoogleUtilities/AppDelegateSwizzler (~> 7.7)
- GoogleUtilities/Environment (~> 7.7)
- GTMSessionFetcher/Core (~> 1.5)
- FirebaseCore (8.15.0):
- FirebaseCoreDiagnostics (~> 8.0)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/Logger (~> 7.7)
- FirebaseCoreDiagnostics (8.15.0):
- GoogleDataTransport (~> 9.1)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/Logger (~> 7.7)
- nanopb (~> 2.30908.0)
- Flutter (1.0.0)
- google_sign_in_ios (0.0.1):
- Flutter
- GoogleSignIn (~> 6.2)
- GoogleDataTransport (9.1.4):
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30910.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleSignIn (6.2.1):
- AppAuth (~> 1.5)
- GTMAppAuth (~> 1.3)
- GTMSessionFetcher/Core (~> 1.1)
- GoogleUtilities/AppDelegateSwizzler (7.7.0):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Environment (7.7.0):
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.7.0):
- GoogleUtilities/Environment
- GoogleUtilities/Network (7.7.0):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.7.0)"
- GoogleUtilities/Reachability (7.7.0):
- GoogleUtilities/Logger
- GTMAppAuth (1.3.0):
- AppAuth/Core (~> 1.4)
- GTMSessionFetcher/Core (~> 1.5)
- GTMSessionFetcher/Core (1.7.2)
- nanopb (2.30908.0):
- nanopb/decode (= 2.30908.0)
- nanopb/encode (= 2.30908.0)
- nanopb/decode (2.30908.0)
- nanopb/encode (2.30908.0)
- PromisesObjC (2.1.0)

DEPENDENCIES:
- firebase_auth (from `.symlinks/plugins/firebase_auth/ios`)
- firebase_auth_oauth (from `.symlinks/plugins/firebase_auth_oauth/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- Flutter (from `Flutter`)
- google_sign_in_ios (from `.symlinks/plugins/google_sign_in_ios/ios`)

SPEC REPOS:
trunk:
- AppAuth
- Firebase
- FirebaseAuth
- FirebaseCore
- FirebaseCoreDiagnostics
- GoogleDataTransport
- GoogleSignIn
- GoogleUtilities
- GTMAppAuth
- GTMSessionFetcher
- nanopb
- PromisesObjC

EXTERNAL SOURCES:
firebase_auth:
:path: ".symlinks/plugins/firebase_auth/ios"
firebase_auth_oauth:
:path: ".symlinks/plugins/firebase_auth_oauth/ios"
firebase_core:
:path: ".symlinks/plugins/firebase_core/ios"
Flutter:
:path: Flutter
google_sign_in_ios:
:path: ".symlinks/plugins/google_sign_in_ios/ios"

SPEC CHECKSUMS:
AppAuth: 80317d99ac7ff2801a2f18ff86b48cd315ed465d
Firebase: 5f8193dff4b5b7c5d5ef72ae54bb76c08e2b841d
firebase_auth: ace975b530600827bd901a9a18584f7cdaf6d160
firebase_auth_oauth: 2b6873838f5712f414740e98679481bbea640bd3
firebase_core: aa1b92020533f5c23955e388c347c58fd64f8627
FirebaseAuth: 3e73bf8abf4fbb40f8b421f361f4cc48ee57388c
FirebaseCore: 5743c5785c074a794d35f2fff7ecc254a91e08b1
FirebaseCoreDiagnostics: 92e07a649aeb66352b319d43bdd2ee3942af84cb
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
google_sign_in_ios: 90eec6616c4c2105b9f9fe5c774773d13565b504
GoogleDataTransport: 5fffe35792f8b96ec8d6775f5eccd83c998d5a3b
GoogleSignIn: 9c69f4188921d8f789816e4c99ba2a1f5f868ddc
GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1
GTMAppAuth: 4d8f864896f3646f0c33baf38a28362f4c601e15
GTMSessionFetcher: 5595ec75acf5be50814f81e9189490412bad82ba
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
PromisesObjC: 99b6f43f9e1044bd87a95a60beff28c2c44ddb72

PODFILE CHECKSUM: 9abf26cf34474fc7da20b60e090e89092fb857b3

COCOAPODS: 1.11.3

0 comments on commit ffefb5f

Please sign in to comment.