This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const functions = require("firebase-functions"); | |
const admin = require("firebase-admin"); | |
admin.initializeApp(); | |
const db = admin.firestore(); | |
const {RAE} = require("rae-api"); | |
const rae = new RAE(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AndroidEntryPoint | |
class MainActivity : AppCompatActivity() { | |
private val binding by viewBinding(ActivityMainBinding::inflate) | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(binding.root) | |
val sharedPreferencesUtil = SharedPreferencesUtil(this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".ui.signup.SignupFragment"> | |
<androidx.appcompat.widget.LinearLayoutCompat | |
android:layout_width="match_parent" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:sigsag/components/ReplyComponent/ReplyControllerInterface.dart'; | |
import 'package:sigsag/data/domain/Reply.dart'; | |
import 'package:sigsag/utils/Types.dart'; | |
class ReplyController { | |
List<ReplyControllerInterface> _suscribers = []; | |
void init(ReplyControllerInterface replyControllerInterface) { | |
_suscribers.add(replyControllerInterface); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NavBarManager { | |
static final NavBarManager _instance = NavBarManager._create(); | |
List<Function(int)> _suscribers = []; | |
factory NavBarManager() { | |
return _instance; | |
} | |
NavBarManager._create(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:dietari/data/datasources/AuthDataSource.dart'; | |
import 'package:dietari/data/datasources/UserDataSource.dart'; | |
import 'package:dietari/data/domain/UserTest.dart'; | |
import 'package:dietari/data/framework/FireBase/FirebaseAuthDataSource.dart'; | |
import 'package:dietari/data/framework/FireBase/FirebaseUserDataSouce.dart'; | |
import 'package:dietari/data/repositories/AuthRepository.dart'; | |
import 'package:dietari/data/repositories/UserRepository.dart'; | |
import 'package:dietari/data/usecases/GetUserIdUseCase.dart'; | |
import 'package:dietari/data/usecases/GetUserTestUseCase.dart'; | |
import 'package:flutter/material.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:dietari/data/datasources/AuthDataSource.dart'; | |
import 'package:dietari/data/datasources/UserDataSource.dart'; | |
import 'package:dietari/data/domain/Tip.dart'; | |
import 'package:dietari/data/framework/FireBase/FirebaseAuthDataSource.dart'; | |
import 'package:dietari/data/framework/FireBase/FirebaseUserDataSouce.dart'; | |
import 'package:dietari/data/repositories/AuthRepository.dart'; | |
import 'package:dietari/data/repositories/UserRepository.dart'; | |
import 'package:dietari/data/usecases/GetUserIdUseCase.dart'; | |
import 'package:dietari/data/usecases/GetUserTipsUseCase.dart'; | |
import 'package:dietari/utils/icons.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:dietari/data/datasources/TestsDataSource.dart'; | |
import 'package:dietari/data/domain/Option.dart'; | |
import 'package:dietari/data/domain/Question.dart'; | |
import 'package:dietari/data/domain/Test.dart'; | |
import 'package:dietari/data/framework/FireBase/FirebaseTestsDataSource.dart'; | |
import 'package:dietari/data/repositories/TestsRepository.dart'; | |
import 'package:dietari/data/usecases/AddTestUseCase.dart'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:dietari/data/datasources/AuthDataSource.dart'; | |
import 'package:dietari/data/datasources/UserDataSource.dart'; | |
import 'package:dietari/data/domain/ExternalUser.dart'; | |
import 'package:dietari/data/domain/User.dart'; | |
import 'package:dietari/data/framework/Firebase/FirebaseAuthDataSource.dart'; | |
import 'package:dietari/data/framework/Firebase/FirebaseUserDataSouce.dart'; | |
import 'package:dietari/data/repositories/AuthRepository.dart'; | |
import 'package:dietari/data/repositories/UserRepository.dart'; | |
import 'package:dietari/data/usecases/AddUserUseCase.dart'; | |
import 'package:dietari/data/usecases/GetUserUseCase.dart'; |