Skip to content

Commit dc824dd

Browse files
committed
first commit
0 parents  commit dc824dd

File tree

141 files changed

+8396
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+8396
-0
lines changed

.gitignore

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# Visual Studio Code related
19+
.vscode/
20+
21+
# Flutter/Dart/Pub related
22+
**/doc/api/
23+
.dart_tool/
24+
.flutter-plugins
25+
.packages
26+
.pub-cache/
27+
.pub/
28+
/build/
29+
30+
# Android related
31+
**/android/**/gradle-wrapper.jar
32+
**/android/.gradle
33+
**/android/captures/
34+
**/android/gradlew
35+
**/android/gradlew.bat
36+
**/android/local.properties
37+
**/android/**/GeneratedPluginRegistrant.java
38+
39+
# iOS/XCode related
40+
**/ios/**/*.mode1v3
41+
**/ios/**/*.mode2v3
42+
**/ios/**/*.moved-aside
43+
**/ios/**/*.pbxuser
44+
**/ios/**/*.perspectivev3
45+
**/ios/**/*sync/
46+
**/ios/**/.sconsign.dblite
47+
**/ios/**/.tags*
48+
**/ios/**/.vagrant/
49+
**/ios/**/DerivedData/
50+
**/ios/**/Icon?
51+
**/ios/**/Pods/
52+
**/ios/**/.symlinks/
53+
**/ios/**/profile
54+
**/ios/**/xcuserdata
55+
**/ios/.generated/
56+
**/ios/Flutter/App.framework
57+
**/ios/Flutter/Flutter.framework
58+
**/ios/Flutter/Generated.xcconfig
59+
**/ios/Flutter/app.flx
60+
**/ios/Flutter/app.zip
61+
**/ios/Flutter/flutter_assets/
62+
**/ios/ServiceDefinitions.json
63+
**/ios/Runner/GeneratedPluginRegistrant.*
64+
65+
# Exceptions to above rules.
66+
!**/ios/**/default.mode1v3
67+
!**/ios/**/default.mode2v3
68+
!**/ios/**/default.pbxuser
69+
!**/ios/**/default.perspectivev3
70+
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

.metadata

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b
8+
channel: stable
9+
10+
project_type: app

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Tarlac Electric Incorporated
2+
3+
## Getting Started

android/app/build.gradle

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
def localProperties = new Properties()
2+
def localPropertiesFile = rootProject.file('local.properties')
3+
if (localPropertiesFile.exists()) {
4+
localPropertiesFile.withReader('UTF-8') { reader ->
5+
localProperties.load(reader)
6+
}
7+
}
8+
9+
def flutterRoot = localProperties.getProperty('flutter.sdk')
10+
if (flutterRoot == null) {
11+
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12+
}
13+
14+
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15+
if (flutterVersionCode == null) {
16+
flutterVersionCode = '1.0'
17+
}
18+
19+
def flutterVersionName = localProperties.getProperty('flutter.versionName')
20+
if (flutterVersionName == null) {
21+
flutterVersionName = '1.0'
22+
}
23+
24+
apply plugin: 'com.android.application'
25+
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26+
27+
def keystoreProperties = new Properties()
28+
def keystorePropertiesFile = rootProject.file('key.properties')
29+
if (keystorePropertiesFile.exists()) {
30+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
31+
}
32+
33+
android {
34+
compileSdkVersion 28
35+
36+
lintOptions {
37+
disable 'InvalidPackage'
38+
}
39+
40+
defaultConfig {
41+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
42+
applicationId "com.jaasaria.fh2019"
43+
minSdkVersion 16
44+
targetSdkVersion 28
45+
versionCode flutterVersionCode.toInteger()
46+
versionName flutterVersionName
47+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
48+
}
49+
50+
signingConfigs {
51+
release {
52+
keyAlias keystoreProperties['keyAlias']
53+
keyPassword keystoreProperties['keyPassword']
54+
storeFile file(keystoreProperties['storeFile'])
55+
storePassword keystoreProperties['storePassword']
56+
}
57+
}
58+
buildTypes {
59+
release {
60+
61+
// ndk{
62+
// abiFilters 'armeabi-v7a'
63+
// 'armeabi-v7a', "arm64-v8a"
64+
// }
65+
66+
signingConfig signingConfigs.release
67+
68+
minifyEnabled true
69+
useProguard true
70+
71+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
72+
}
73+
}
74+
75+
76+
77+
}
78+
79+
flutter {
80+
source '../..'
81+
}
82+
83+
dependencies {
84+
testImplementation 'junit:junit:4.12'
85+
androidTestImplementation 'androidx.test:runner:1.1.0'
86+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
87+
}

android/app/google-services.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"project_info": {
3+
"project_number": "156309891534",
4+
"firebase_url": "https://tei-mobile-app-flutter.firebaseio.com",
5+
"project_id": "tei-mobile-app-flutter",
6+
"storage_bucket": "tei-mobile-app-flutter.appspot.com"
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:156309891534:android:e62b6af579b68f19",
12+
"android_client_info": {
13+
"package_name": "com.jaasaria.tei"
14+
}
15+
},
16+
"oauth_client": [
17+
{
18+
"client_id": "156309891534-7s2030dolb558s43cr86fnuh8tsop2mo.apps.googleusercontent.com",
19+
"client_type": 1,
20+
"android_info": {
21+
"package_name": "com.jaasaria.tei",
22+
"certificate_hash": "c385cdb4e0ee38ba6479d8a9692527f79eb9f36f"
23+
}
24+
},
25+
{
26+
"client_id": "156309891534-rqpbd1rutf6n6qagqe0phfbk2sn65unm.apps.googleusercontent.com",
27+
"client_type": 3
28+
}
29+
],
30+
"api_key": [
31+
{
32+
"current_key": "AIzaSyBNbAlvbDPvHGLabAw3ar5Zj_MYIdmzXSg"
33+
}
34+
],
35+
"services": {
36+
"appinvite_service": {
37+
"other_platform_oauth_client": [
38+
{
39+
"client_id": "156309891534-rqpbd1rutf6n6qagqe0phfbk2sn65unm.apps.googleusercontent.com",
40+
"client_type": 3
41+
}
42+
]
43+
}
44+
}
45+
}
46+
],
47+
"configuration_version": "1"
48+
}

android/app/proguard-rules.pro

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Flutter wrapper
2+
-keep class io.flutter.app.** { *; }
3+
-keep class io.flutter.plugin.** { *; }
4+
-keep class io.flutter.util.** { *; }
5+
-keep class io.flutter.view.** { *; }
6+
-keep class io.flutter.** { *; }
7+
-keep class io.flutter.plugins.** { *; }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.jaasaria.fh2019">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>
+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.jaasaria.fh2019">
3+
4+
5+
<uses-permission android:name="android.permission.INTERNET"/>
6+
7+
8+
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
9+
calls FlutterMain.startInitialization(this); in its onCreate method.
10+
In most cases you can leave this as-is, but you if you want to provide
11+
additional functionality it is fine to subclass or reimplement
12+
FlutterApplication and put your custom class here. -->
13+
<application
14+
android:name="io.flutter.app.FlutterApplication"
15+
android:label="Flutter Hackathon"
16+
android:icon="@mipmap/ic_launcher">
17+
18+
19+
20+
21+
<activity
22+
android:name="com.google.android.gms.auth.api.signin.internal.SignInHubActivity"
23+
android:screenOrientation="portrait"
24+
android:windowSoftInputMode="stateAlwaysHidden|adjustPan" />
25+
26+
<activity
27+
android:name=".MainActivity"
28+
android:launchMode="singleTop"
29+
android:theme="@style/LaunchTheme"
30+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
31+
android:hardwareAccelerated="true"
32+
android:windowSoftInputMode="adjustResize">
33+
<!-- This keeps the window background of the activity showing
34+
until Flutter renders its first frame. It can be removed if
35+
there is no splash screen (such as the default splash screen
36+
defined in @style/LaunchTheme). -->
37+
<meta-data
38+
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
39+
android:value="true" />
40+
<intent-filter>
41+
<action android:name="android.intent.action.MAIN"/>
42+
<category android:name="android.intent.category.LAUNCHER"/>
43+
</intent-filter>
44+
</activity>
45+
</application>
46+
47+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.jaasaria.fh2019;
2+
3+
import android.os.Bundle;
4+
import io.flutter.app.FlutterActivity;
5+
import io.flutter.plugins.GeneratedPluginRegistrant;
6+
7+
// import android.view.ViewTreeObserver;
8+
// import android.view.WindowManager;
9+
10+
public class MainActivity extends FlutterActivity {
11+
@Override
12+
protected void onCreate(Bundle savedInstanceState) {
13+
super.onCreate(savedInstanceState);
14+
GeneratedPluginRegistrant.registerWith(this);
15+
}
16+
17+
18+
// @Override
19+
// protected void onCreate(Bundle savedInstanceState) {
20+
// super.onCreate(savedInstanceState);
21+
// //make transparent status bar
22+
// getWindow().setStatusBarColor(0x00000000);
23+
// GeneratedPluginRegistrant.registerWith(this);
24+
// //Remove full screen flag after load
25+
// ViewTreeObserver vto = getFlutterView().getViewTreeObserver();
26+
// vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
27+
// @Override
28+
// public void onGlobalLayout() {
29+
// getFlutterView().getViewTreeObserver().removeOnGlobalLayoutListener(this);
30+
// getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
31+
// }
32+
// });
33+
// }
34+
35+
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Modify this file to customize your launch splash screen -->
3+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item android:drawable="@color/blueprimary" />
5+
6+
<item>
7+
<bitmap android:gravity="center" android:src="@mipmap/splash" />
8+
</item>
9+
10+
</layer-list>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
3+
<background android:drawable="@drawable/ic_launcher_background"/>
4+
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
5+
</adaptive-icon>
Loading
19.9 KB
Loading
Loading
10.8 KB
Loading
Loading
30.1 KB
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="blueprimary">#073a53</color>
4+
</resources>
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5+
<!-- Show a splash screen on the activity. Automatically removed when
6+
Flutter draws its first frame -->
7+
<!-- <item name= "android:windowFullscreen">true</item> -->
8+
<item name="android:windowBackground">@drawable/launch_background</item>
9+
10+
</style>
11+
12+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.jaasaria.fh2019">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.INTERNET"/>
7+
</manifest>

android/build.gradle

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
jcenter()
5+
}
6+
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:3.3.0'
9+
}
10+
}
11+
12+
allprojects {
13+
repositories {
14+
google()
15+
jcenter()
16+
}
17+
}
18+
19+
rootProject.buildDir = '../build'
20+
subprojects {
21+
project.buildDir = "${rootProject.buildDir}/${project.name}"
22+
}
23+
subprojects {
24+
project.evaluationDependsOn(':app')
25+
}
26+
27+
task clean(type: Delete) {
28+
delete rootProject.buildDir
29+
}

0 commit comments

Comments
 (0)