mirror of
https://github.com/hmalik144/Driver.git
synced 2026-03-18 15:36:03 +00:00
- Robots added for tests
- Tests added - view naming refactoring - Image selecting stubbing added Took 3 hours 48 minutes
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
package h_mal.appttude.com.driver.application
|
||||
|
||||
import android.app.Application
|
||||
import com.google.firebase.auth.FirebaseAuth
|
||||
import com.google.firebase.database.FirebaseDatabase
|
||||
import com.google.firebase.storage.FirebaseStorage
|
||||
import h_mal.appttude.com.driver.data.FirebaseAuthSource
|
||||
import h_mal.appttude.com.driver.data.FirebaseDatabaseSource
|
||||
import h_mal.appttude.com.driver.data.FirebaseStorageSource
|
||||
@@ -18,16 +15,6 @@ import org.kodein.di.generic.singleton
|
||||
|
||||
class DriverApplication : Application(), KodeinAware {
|
||||
|
||||
// override fun onCreate() {
|
||||
// super.onCreate()
|
||||
//
|
||||
// val localHost = "10.0.2.2"
|
||||
//
|
||||
// FirebaseAuth.getInstance().useEmulator(localHost, 9099)
|
||||
// FirebaseDatabase.getInstance().useEmulator(localHost, 9000)
|
||||
// FirebaseStorage.getInstance().useEmulator(localHost, 9199)
|
||||
// }
|
||||
|
||||
// Kodein aware to initialise the classes used for DI
|
||||
override val kodein = Kodein.lazy {
|
||||
import(androidXModule(this@DriverApplication))
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/container"
|
||||
style="@style/parent_constraint_layout"
|
||||
tools:context="h_mal.appttude.com.driver.ui.HomeFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/prova_logo"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="24dp"
|
||||
android:layout_marginTop="48dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:src="@drawable/choice_img_round"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintWidth_percent=".50"
|
||||
android:contentDescription="@string/image_description" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/prova_title_tv"
|
||||
style="@style/headerStyle"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:text="@string/welcome_title"
|
||||
android:layout_marginTop="24dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/prova_logo" />
|
||||
|
||||
<TextView
|
||||
style="@style/subheader"
|
||||
android:layout_marginTop="12dp"
|
||||
android:text="@string/welcome_subtitle"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/prova_title_tv" />
|
||||
|
||||
<include
|
||||
android:id="@+id/profile_request_container"
|
||||
layout="@layout/driver_profile_request"
|
||||
android:visibility="gone" />
|
||||
|
||||
<include
|
||||
android:id="@+id/home_buttons_container"
|
||||
layout="@layout/home_buttons_container"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -58,6 +58,7 @@
|
||||
<string name="address_of_keeper">Address of Keeper</string>
|
||||
<string name="postcode_of_keeper">Postcode of Keeper</string>
|
||||
<string name="car_start_date">Start date</string>
|
||||
<string name="driver_identifier">driver identifier</string>
|
||||
<string name="vehicle_seized">Vehicle Seized</string>
|
||||
<string name="full_name">Full name</string>
|
||||
<string name="address">Address</string>
|
||||
|
||||
Reference in New Issue
Block a user