-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41b736a
commit 3399ed4
Showing
61 changed files
with
2,468 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
|
||
app/google-services\.json | ||
|
||
app/proguard-rules\.pro |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
apply plugin: 'kotlin-android' | ||
|
||
apply plugin: 'kotlin-android-extensions' | ||
apply plugin: 'com.google.gms.google-services' | ||
|
||
android { | ||
compileSdkVersion 28 | ||
defaultConfig { | ||
applicationId "com.example.fil_rouge" | ||
minSdkVersion 19 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
//noinspection GradleCompatible | ||
implementation 'com.android.support:appcompat-v7:28.0.0' | ||
implementation 'com.android.support.constraint:constraint-layout:1.1.3' | ||
implementation 'com.android.support:support-v4:28.0.0' | ||
implementation "com.google.firebase:firebase-core:16.0.7" | ||
implementation 'com.google.firebase:firebase-auth:16.1.0' | ||
implementation 'com.firebaseui:firebase-ui-auth:4.1.0' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
implementation 'com.android.support:design:28.0.0' | ||
implementation 'com.google.code.gson:gson:2.8.5' | ||
implementation 'com.squareup.picasso:picasso:2.71828' | ||
implementation 'com.android.support:recyclerview-v7:28.0.0' | ||
} | ||
|
||
apply plugin: 'com.google.gms.google-services' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
data class Character( | ||
val info: Info, | ||
val results: List<Result> | ||
) | ||
|
||
data class Info( | ||
val page: Int, | ||
val results: Int, | ||
val seed: String, | ||
val version: String | ||
) | ||
|
||
data class Result( | ||
val cell: String, | ||
val dob: Dob, | ||
val email: String, | ||
val gender: String, | ||
val id: Id, | ||
val location: Location, | ||
val login: Login, | ||
val name: Name, | ||
val nat: String, | ||
val phone: String, | ||
val picture: Picture, | ||
val registered: Registered | ||
) | ||
|
||
data class Picture( | ||
val large: String, | ||
val medium: String, | ||
val thumbnail: String | ||
) | ||
|
||
data class Location( | ||
val city: String, | ||
val coordinates: Coordinates, | ||
val postcode: String, | ||
val state: String, | ||
val street: String, | ||
val timezone: Timezone | ||
) | ||
|
||
data class Timezone( | ||
val description: String, | ||
val offset: String | ||
) | ||
|
||
data class Coordinates( | ||
val latitude: String, | ||
val longitude: String | ||
) | ||
|
||
data class Login( | ||
val md5: String, | ||
val password: String, | ||
val salt: String, | ||
val sha1: String, | ||
val sha256: String, | ||
val username: String, | ||
val uuid: String | ||
) | ||
|
||
data class Dob( | ||
val age: Int, | ||
val date: String | ||
) | ||
|
||
data class Name( | ||
val first: String, | ||
val last: String, | ||
val title: String | ||
) | ||
|
||
data class Id( | ||
val name: String, | ||
val value: String | ||
) | ||
|
||
data class Registered( | ||
val age: Int, | ||
val date: String | ||
) |
24 changes: 24 additions & 0 deletions
24
app/src/androidTest/java/com/example/fil_rouge/ExampleInstrumentedTest.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.example.fil_rouge | ||
|
||
import android.support.test.InstrumentationRegistry | ||
import android.support.test.runner.AndroidJUnit4 | ||
|
||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
import org.junit.Assert.* | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* See [testing documentation](http://d.android.com/tools/testing). | ||
*/ | ||
@RunWith(AndroidJUnit4::class) | ||
class ExampleInstrumentedTest { | ||
@Test | ||
fun useAppContext() { | ||
// Context of the app under test. | ||
val appContext = InstrumentationRegistry.getTargetContext() | ||
assertEquals("com.example.fil_rouge", appContext.packageName) | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.fil_rouge"> | ||
|
||
<uses-permission android:name="android.permission.READ_CONTACTS"/> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<activity android:name=".WebServiceActivity"> | ||
</activity> | ||
<activity android:name=".PermissionActivity"> | ||
</activity> | ||
<activity android:name=".FormActivity"> | ||
</activity> | ||
<activity android:name=".CycleActivity"> | ||
</activity> | ||
<activity android:name=".LoginActivity"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN"/> | ||
|
||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
</activity> | ||
<activity android:name=".HomeActivity"> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
package com.example.fil_rouge | ||
|
||
data class Character( | ||
val info: Info, | ||
val results: List<Result> | ||
) | ||
|
||
data class Info( | ||
val page: Int, | ||
val results: Int, | ||
val seed: String, | ||
val version: String | ||
) | ||
|
||
data class Result( | ||
val cell: String, | ||
val dob: Dob, | ||
val email: String, | ||
val gender: String, | ||
val id: Id, | ||
val location: Location, | ||
val login: Login, | ||
val name: Name, | ||
val nat: String, | ||
val phone: String, | ||
val picture: Picture, | ||
val registered: Registered | ||
) | ||
|
||
data class Picture( | ||
val large: String, | ||
val medium: String, | ||
val thumbnail: String | ||
) | ||
|
||
data class Location( | ||
val city: String, | ||
val coordinates: Coordinates, | ||
val postcode: String, | ||
val state: String, | ||
val street: String, | ||
val timezone: Timezone | ||
) | ||
|
||
data class Timezone( | ||
val description: String, | ||
val offset: String | ||
) | ||
|
||
data class Coordinates( | ||
val latitude: String, | ||
val longitude: String | ||
) | ||
|
||
data class Login( | ||
val md5: String, | ||
val password: String, | ||
val salt: String, | ||
val sha1: String, | ||
val sha256: String, | ||
val username: String, | ||
val uuid: String | ||
) | ||
|
||
data class Dob( | ||
val age: Int, | ||
val date: String | ||
) | ||
|
||
data class Name( | ||
val first: String, | ||
val last: String, | ||
val title: String | ||
) | ||
|
||
data class Id( | ||
val name: String, | ||
val value: String | ||
) | ||
|
||
data class Registered( | ||
val age: Int, | ||
val date: String | ||
) |
Oops, something went wrong.