A Flutter Cards Against Humanity app for Android, iOS, and Web
Setup a Firebase Project with an Android and iOS application using the appropriate steps here: https://firebase.google.com/docs
- Download the
google-services.json
file for your Android application toandroid/app/google-services.json
- Download the
GoogleServices-Info.plist
file for your iOS application toios/Runner/GoogleServices-Info.plist
- Add the following contents to a file named
firebase_config.js
to theweb/
folder
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "some_api_key",
authDomain: "some_firebase_project_id.firebaseapp.com",
databaseURL: "https://some_firebase_project_id.firebaseio.com",
projectId: "some_firebase_project_id",
storageBucket: "some_firebase_project_id.appspot.com",
messagingSenderId: "00000000000",
appId: "some_web_app_id",
measurementId: "some_analytics_id"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
firebase.analytics();
You can find and import all the card data from this Google Sheet (or the mirror here) using the node.js script located at /importer
Setup an account @ wiredash.io and create a new project to generate a projectId
and secret
that you will use in the following config. Or, you can remove the Wiredash
widget from the lib/app.dart
widget tree.
Add your own configuration file to the /lib
folder. Use this example: example.config.json
{
"privacyPolicyUrl": "https://example.com/privacy.html",
"termsOfServiceUrl": "https://example.com/tos.html",
"sourceUrl": "https://github.com/52inc/AppsAgainstHumanity",
"wiredashProjectId": "some_wiredash_projectId",
"wiredashSecret": "some_wiredash_secret"
}
Then run
flutter generate
Just run this:
flutter packages pub run build_runner build --delete-conflicting-outputs
Fork the repository here: https://github.com/52inc/AppsAgainstHumanity-Firebase and deploy the functions to your firebase project using:
firebase deploy --only functions
Please follow the guidelines set forth in the CONTRIBUTING document.
GNU General Public License v3.0
See LICENSE to see the full text.
All CAH or "Cards Against Humanity" question and answer text are hosted externally and are never included in the binary itself for the app that is uploaded to Google Play and Apple's App Store.
All CAH or "Cards Against Humanity" question and answer text are licensed under Creative Commons BY-NC-SA 4.0 by the owner Cards Against Humanity, LLC. This application is NOT official, produced, endorsed or supported by Cards Against Humanity, LLC.