Afrodite is a dating app aiming to change dating app market to offer more ethical, private and secure dating apps. Written using modern technologies, Flutter and Rust, the app offers ethical profile browsing centered UI together with private and secure end-to-end encrypted chat messaging. The app supports Android and iOS platforms.
This repository contains the frontend part. Backend repository
The app is under development and it is not ready for production.
Check features.md.
Tagged development preview versions (0.x) of frontend and backend with the same minor version number are compatible with each other. Main branch might be broken or incompatible with the backend.
-
Install dependencies.
-
Add placeholder files. If building for iOS then also add missing iOS project files.
-
Build and run the frontend.
flutter devices
flutter run --release -d DEVICE
-
Optionally install development dependencies.
-
Optionally add push notification and Sign in with Google support.
-
Install Rust.
-
Install Android Rust targets.
rustup target add aarch64-linux-android
rustup target add armv7-linux-androideabi
rustup target add i686-linux-android
rustup target add x86_64-linux-android
- Install Flutter.
-
Install Rust.
-
Install iOS Rust targets.
rustup target add aarch64-apple-ios
rustup target add aarch64-apple-ios-sim
rustup target add x86_64-apple-ios
-
Install CocoaPods.
https://guides.cocoapods.org/using/getting-started.html#sudo-less-installation
-
Install Flutter.
Makefile commands starting with watch
requires fswatch
.
# Ubuntu
sudo apt install fswatch
# macOS with Homebrew package manager
brew install fswatch
Commands make watch-translations
, make watch-translations-linux
and make update-translations
requires xml2arb.
Commands make watch-freezed-code
and make update-freezed-code
requires icegen.
Command make update-api-bindings
does not work currently as OpenAPI generator
Dart code generation does not currently support OpenAPI 3.1 composed schemas.
Commit
with the support exists so it is possible to build OpenAPI generator from that
commit for example with IntelliJ IDEA.
Command make update-licenses-for-native-utils
requires
cargo-about.
lib/firebase_options.dart
import 'package:firebase_core/firebase_core.dart';
class DefaultFirebaseOptions {
static const FirebaseOptions currentPlatform = FirebaseOptions(
apiKey: '',
appId: '',
messagingSenderId: '',
projectId: '',
);
}
lib/service_config.dart
String signInWithGoogleBackendClientId() => "";
String signInWithAppleServiceIdForAndroidAndWebLogin() => "";
The file ios/Runner.xcodeproj is not included in the repository as it contains development team ID. It can be created with following commands
cd afrodite-frontend
flutter create --platforms ios --project-name app .
Other new files or changes which flutter create
command creates can be
removed.
Sign in with Google buttons are from https://developers.google.com/static/identity/images/signin-assets.zip ZIP file found from https://developers.google.com/identity/branding-guidelines.
Add web client ID by modifying web/index.html line
<meta name="google-signin-client_id" content="TODO">
Add iOS client ID by modifying ios/Runner/Info.plist location
<!-- Copied from downloaded OAuth 2 client info. Value for key REVERSED_CLIENT_ID. -->
<string>TODO</string>
Enable gradle plugin for Google Services from android/app/build.gradle
// START: FlutterFire Configuration
// Uncomment the following line if you have google-services.json added
// id 'com.google.gms.google-services'
// END: FlutterFire Configuration
Also add files
android/app/google-services.json
ios/Runner/GoogleService-Info.plist
lib/firebase_options.dart
lib/sign_in_with_google_ids.dart
firebase.json
Login HTTP redirect URLs and related domains must be added to Service ID config. https://developer.apple.com/help/account/capabilities/configure-sign-in-with-apple-for-the-web
Web redirect URL example:
https://backend.example.com
Android redirect URL example:
https://backend.example.com/account_api/sign_in_with_apple_redirect_to_app
Also modify correct Service ID to lib/service_config.dart
.
The app must have Sign in with Apple capability enabled.
Check backend README.md.
Bug fixes or documentation improvements are usually welcome. For new features, please open a new issue and ask could the new feature be accepted. The feature might not be accepted for example if it is considered unethical or adds too much maintenance burden.
Contributions must have the same license as the project (dual-licensed with MIT and Apache 2.0).
Also note that TODO comments and documentation might be outdated.
MIT License or Apache License 2.0