Skip to content

Instantly share code, notes, and snippets.

View MostafaMazrouh's full-sized avatar

Mostafa Mazrouh MostafaMazrouh

  • Egypt - Sweden
View GitHub Profile
@MostafaMazrouh
MostafaMazrouh / DependencyInjection.swift
Created September 20, 2020 08:55
Dependency Inversion vs Dependency Injection
class A {
var b: B
init(b: B) {
self.b = b
}
func start() {
b.doSomething()
}
@MostafaMazrouh
MostafaMazrouh / AppDI.swift
Last active January 24, 2022 15:58
MassiveToBe: Part 1
import Foundation
import presentation
class AppDI: AppDIInterface {
static let shared = AppDI(appEnvironment: AppEnvironment())
let appEnvironment: AppEnvironment
package com.example.distancemeter;
import android.location.Location;
import android.location.LocationListener;
import androidx.annotation.NonNull;
import androidx.car.app.CarContext;
import androidx.car.app.CarToast;
import androidx.car.app.Screen;
import androidx.car.app.model.Action;