Skip to content

Instantly share code, notes, and snippets.

View Andrious's full-sized avatar
🏠
Working from home

Andrious Solutions Andrious

🏠
Working from home
View GitHub Profile
@Andrious
Andrious / pubspec.yaml
Created May 11, 2018 19:15
Dependency to MVC git
dependencies:
mvc:
git:
url: git://github.com/AndriousSolutions/mvc.git
@Andrious
Andrious / fragment_banner.xml
Created May 18, 2018 01:32
AdMod Fragment XML
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="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="com.andrioussolutions.admob.AdModFragment">
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="match_parent"
@Andrious
Andrious / AdMod.java
Last active May 21, 2018 10:12
AdMod Classes
package com.andrioussolutions.admob;
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.MobileAds;
import com.andrioussolutions.frmwrk.App;
import android.Manifest;
@Andrious
Andrious / pubspec.yaml
Created June 5, 2018 16:22
yaml file for the Prefs Class Library
dependencies:
flutter:
sdk: flutter
prefs:
git:
url: git://github.com/AndriousSolutions/prefs.git
@Andrious
Andrious / pubspec.yaml
Created June 20, 2018 14:28
pubspec.yaml for dbutils
dependencies:
flutter:
sdk: flutter
dbutils:
git:
url: git://github.com/AndriousSolutions/dbutils.git
dependencies:
flutter:
sdk: flutter
auth:
git:
url: git://github.com/AndriousSolutions/auth.git
@Andrious
Andrious / build.gradle
Created July 3, 2018 17:53
App build.gradle for Firebase
// ADD THIS AT THE BOTTOM
// Otherwise, Default FirebaseApp is not initialized in this process
apply plugin: 'com.google.gms.google-services'
@Andrious
Andrious / iniState1.dart
Created July 4, 2018 05:05
Series of iniState() functions to is the Auth class library.
@override
void initState() {
super.initState();
Auth.init(
scopes: <String>[
'email',
'https://www.googleapis.com/auth/contacts.readonly',
],
listen:(account){
@Andrious
Andrious / Controller.dart
Last active November 1, 2018 18:52
The App has the View. First Approach to implement the MVC Library Package, mvc_pattern.
import 'package:mvc_pattern/mvc_pattern.dart';
/// Notice 'the rest of the app' has no idea this Dart file even exists.
import 'Model.dart';
class Controller extends ControllerMVC {
Controller() {
con = this;
}
static Controller con;
@Andrious
Andrious / Controller.dart
Created November 1, 2018 18:59
Where's the View? The Second Approach to implementing the MVC Library Package, mvc_pattern.
import 'package:mvc_pattern/mvc_pattern.dart';
/// Notice 'the rest of the app' has no idea this Dart file even exists.
import 'Model.dart';
class Controller extends ControllerMVC {
Controller() {
con = this;
}
static Controller con;