This project contains certain files that are encrypted using git-crypt due to the use of API keys to connect to Firebase, which is why it will not build directly on your machine.
The following are the files that have been encrypted:
/android/app/src/main/AndroidManifest.xml
/ios/Runner/AppDelegate.swift
/android/app/google-services.json
/ios/Runner/GoogleService-Info.plist
In order to resolve this, you must replace the encrypted files with files containing your own API credentials. These API credentials can be obtained by creating a new Firebase project and following the instructions from there.
Replace the encrypted AndroidManifest.xml
with the following contents:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="club.nowmozilla.ec_senior">
<uses-permission android:name="android.permission.CALL_PHONE"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<application
android:name="io.flutter.app.FlutterApplication"
android:label="EldersConnect Senior"
android:icon="@mipmap/launcher_icon">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<meta-data
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
Replace the encrypted AppDelegate.swift
with the following contents:
import UIKit
import Flutter
import Firebase
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
FirebaseApp.configure()
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
The google-services.json
and GoogleService-Info.plist
can be downloaded from your Firebase project for Android and iOS respectively. Replace the old encrypted files with the newly downloaded ones.