Skip to content

Commit

Permalink
First Release
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremA2110 committed Mar 2, 2019
1 parent 41b736a commit 3399ed4
Show file tree
Hide file tree
Showing 61 changed files with 2,468 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
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
35 changes: 35 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
45 changes: 45 additions & 0 deletions app/build.gradle
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'
1 change: 1 addition & 0 deletions app/release/output.json
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":{}}]
82 changes: 82 additions & 0 deletions app/src/androidTest/java/Character.kt
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
)
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)
}
}
35 changes: 35 additions & 0 deletions app/src/main/AndroidManifest.xml
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>
84 changes: 84 additions & 0 deletions app/src/main/java/com/example/fil_rouge/Character.kt
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
)
Loading

0 comments on commit 3399ed4

Please sign in to comment.