Skip to content

Commit a3acf2c

Browse files
committed
Initial commit
0 parents  commit a3acf2c

56 files changed

Lines changed: 1372 additions & 0 deletions

Some content is hidden

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

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild

.idea/codeStyles/Project.xml

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: 'kotlin-kapt'
5+
6+
android {
7+
compileSdkVersion 28
8+
defaultConfig {
9+
applicationId "com.fdev.epars"
10+
minSdkVersion 21
11+
targetSdkVersion 28
12+
versionCode 1
13+
versionName "1.0"
14+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15+
}
16+
buildTypes {
17+
release {
18+
minifyEnabled false
19+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
20+
}
21+
}
22+
}
23+
24+
// lib versions
25+
ext {
26+
v_dagger = "2.21"
27+
v_rxjava = "2.2.6"
28+
v_rxandroid = "2.1.1"
29+
v_rxbindings = "3.0.0-alpha2"
30+
v_retrofit = "2.5.0"
31+
v_retrofit_rx_adapter = "2.0.2"
32+
v_okhttp_logging_interc = "3.10.0"
33+
}
34+
35+
dependencies {
36+
implementation fileTree(include: ['*.jar'], dir: 'libs')
37+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
38+
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
39+
implementation 'androidx.core:core-ktx:1.1.0-alpha04'
40+
implementation 'com.google.android.material:material:1.0.0-beta01'
41+
testImplementation 'junit:junit:4.12'
42+
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
43+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
44+
implementation 'androidx.recyclerview:recyclerview:1.0.0'
45+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
46+
47+
// retrofit
48+
implementation "com.squareup.retrofit2:retrofit:$v_retrofit"
49+
implementation "com.squareup.retrofit2:converter-gson:$v_retrofit"
50+
implementation "com.squareup.retrofit2:adapter-rxjava:$v_retrofit_rx_adapter"
51+
implementation "com.squareup.okhttp3:logging-interceptor:$v_okhttp_logging_interc"
52+
53+
// dagger 2
54+
implementation "com.google.dagger:dagger:$v_dagger"
55+
kapt "com.google.dagger:dagger-compiler:$v_dagger"
56+
annotationProcessor "com.google.dagger:dagger-compiler:$v_dagger"
57+
58+
// reactiveX
59+
implementation "io.reactivex.rxjava2:rxjava:$v_rxjava"
60+
implementation "io.reactivex.rxjava2:rxandroid:$v_rxandroid"
61+
62+
//rxBindings
63+
implementation "com.jakewharton.rxbinding3:rxbinding:$v_rxbindings"
64+
implementation "com.jakewharton.rxbinding3:rxbinding-core:$v_rxbindings"
65+
implementation "com.jakewharton.rxbinding3:rxbinding-appcompat:$v_rxbindings"
66+
implementation "com.jakewharton.rxbinding3:rxbinding-drawerlayout:$v_rxbindings"
67+
implementation "com.jakewharton.rxbinding3:rxbinding-leanback:$v_rxbindings"
68+
implementation "com.jakewharton.rxbinding3:rxbinding-recyclerview:$v_rxbindings"
69+
implementation "com.jakewharton.rxbinding3:rxbinding-slidingpanelayout:$v_rxbindings"
70+
implementation "com.jakewharton.rxbinding3:rxbinding-swiperefreshlayout:$v_rxbindings"
71+
implementation "com.jakewharton.rxbinding3:rxbinding-viewpager:$v_rxbindings"
72+
implementation "com.jakewharton.rxbinding3:rxbinding-material:$v_rxbindings"
73+
implementation project(':progressview')
74+
}

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.fdev.epars
2+
3+
import androidx.test.InstrumentationRegistry
4+
import androidx.test.runner.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getTargetContext()
22+
assertEquals("com.fdev.epars", appContext.packageName)
23+
}
24+
}

0 commit comments

Comments
 (0)