├── .gitignore
├── .idea
├── codeStyles
│ ├── Project.xml
│ └── codeStyleConfig.xml
├── gradle.xml
├── misc.xml
├── qaplug_profiles.xml
├── runConfigurations.xml
└── vcs.xml
├── .travis.yml
├── README.md
├── abstraction
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── app
│ │ └── isfaaghyth
│ │ └── abstraction
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── app
│ │ │ └── isfaaghyth
│ │ │ └── abstraction
│ │ │ ├── base
│ │ │ ├── BaseActivity.kt
│ │ │ ├── BaseFragment.kt
│ │ │ ├── BasePresenter.kt
│ │ │ ├── BasePresenterIntr.kt
│ │ │ └── BaseView.kt
│ │ │ └── utils
│ │ │ ├── ImageLoaderExt.kt
│ │ │ ├── KeyboardUtils.kt
│ │ │ ├── NetworkUtils.kt
│ │ │ ├── ViewExt.kt
│ │ │ └── rx
│ │ │ ├── AppSchedulerProvider.kt
│ │ │ ├── Ext.kt
│ │ │ └── SchedulerProvider.kt
│ └── res
│ │ └── values
│ │ └── strings.xml
│ └── test
│ └── java
│ └── app
│ └── isfaaghyth
│ └── abstraction
│ └── ExampleUnitTest.java
├── app
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── app
│ │ └── isfaaghyth
│ │ └── git
│ │ └── ExampleInstrumentedTest.kt
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── app
│ │ │ └── isfaaghyth
│ │ │ └── git
│ │ │ └── MainActivity.kt
│ └── res
│ │ ├── drawable-v24
│ │ └── ic_launcher_foreground.xml
│ │ ├── drawable
│ │ └── ic_launcher_background.xml
│ │ ├── layout
│ │ └── activity_main.xml
│ │ ├── mipmap-anydpi-v26
│ │ ├── ic_launcher.xml
│ │ └── ic_launcher_round.xml
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ └── values
│ │ ├── colors.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── app
│ └── isfaaghyth
│ └── git
│ └── ExampleUnitTest.kt
├── build.gradle
├── buildSrc
├── build.gradle.kts
├── build
│ ├── classes
│ │ └── kotlin
│ │ │ └── main
│ │ │ ├── AndroidSupport.class
│ │ │ ├── Anko.class
│ │ │ ├── ApplicationId.class
│ │ │ ├── Dagger.class
│ │ │ ├── Dependencies.class
│ │ │ ├── Glide.class
│ │ │ ├── Modules.class
│ │ │ ├── Reactivex.class
│ │ │ ├── Releases.class
│ │ │ ├── Retrofit.class
│ │ │ ├── Testing.class
│ │ │ └── Version.class
│ ├── kotlin-build
│ │ ├── artifact-difference.tab
│ │ ├── artifact-difference.tab.keystream
│ │ ├── artifact-difference.tab.keystream.len
│ │ ├── artifact-difference.tab.len
│ │ ├── artifact-difference.tab.values.at
│ │ ├── artifact-difference.tab_i
│ │ ├── artifact-difference.tab_i.len
│ │ └── version.txt
│ ├── kotlin
│ │ └── compileKotlin
│ │ │ ├── build-history.bin
│ │ │ ├── caches-jvm
│ │ │ ├── inputs
│ │ │ │ ├── source-to-output.tab
│ │ │ │ ├── source-to-output.tab.keystream
│ │ │ │ ├── source-to-output.tab.keystream.len
│ │ │ │ ├── source-to-output.tab.len
│ │ │ │ ├── source-to-output.tab.values.at
│ │ │ │ ├── source-to-output.tab_i
│ │ │ │ └── source-to-output.tab_i.len
│ │ │ ├── jvm
│ │ │ │ └── kotlin
│ │ │ │ │ ├── class-fq-name-to-source.tab
│ │ │ │ │ ├── class-fq-name-to-source.tab.keystream
│ │ │ │ │ ├── class-fq-name-to-source.tab.keystream.len
│ │ │ │ │ ├── class-fq-name-to-source.tab.len
│ │ │ │ │ ├── class-fq-name-to-source.tab.values.at
│ │ │ │ │ ├── class-fq-name-to-source.tab_i
│ │ │ │ │ ├── class-fq-name-to-source.tab_i.len
│ │ │ │ │ ├── constants.tab
│ │ │ │ │ ├── constants.tab.keystream
│ │ │ │ │ ├── constants.tab.keystream.len
│ │ │ │ │ ├── constants.tab.len
│ │ │ │ │ ├── constants.tab.values.at
│ │ │ │ │ ├── constants.tab_i
│ │ │ │ │ ├── constants.tab_i.len
│ │ │ │ │ ├── internal-name-to-source.tab
│ │ │ │ │ ├── internal-name-to-source.tab.keystream
│ │ │ │ │ ├── internal-name-to-source.tab.keystream.len
│ │ │ │ │ ├── internal-name-to-source.tab.len
│ │ │ │ │ ├── internal-name-to-source.tab.values.at
│ │ │ │ │ ├── internal-name-to-source.tab_i
│ │ │ │ │ ├── internal-name-to-source.tab_i.len
│ │ │ │ │ ├── proto.tab
│ │ │ │ │ ├── proto.tab.keystream
│ │ │ │ │ ├── proto.tab.keystream.len
│ │ │ │ │ ├── proto.tab.len
│ │ │ │ │ ├── proto.tab.values.at
│ │ │ │ │ ├── proto.tab_i
│ │ │ │ │ ├── proto.tab_i.len
│ │ │ │ │ ├── source-to-classes.tab
│ │ │ │ │ ├── source-to-classes.tab.keystream
│ │ │ │ │ ├── source-to-classes.tab.keystream.len
│ │ │ │ │ ├── source-to-classes.tab.len
│ │ │ │ │ ├── source-to-classes.tab.values.at
│ │ │ │ │ ├── source-to-classes.tab_i
│ │ │ │ │ └── source-to-classes.tab_i.len
│ │ │ └── lookups
│ │ │ │ ├── counters.tab
│ │ │ │ ├── file-to-id.tab
│ │ │ │ ├── file-to-id.tab.keystream
│ │ │ │ ├── file-to-id.tab.keystream.len
│ │ │ │ ├── file-to-id.tab.len
│ │ │ │ ├── file-to-id.tab.values.at
│ │ │ │ ├── file-to-id.tab_i
│ │ │ │ ├── file-to-id.tab_i.len
│ │ │ │ ├── id-to-file.tab
│ │ │ │ ├── id-to-file.tab.keystream
│ │ │ │ ├── id-to-file.tab.keystream.len
│ │ │ │ ├── id-to-file.tab.len
│ │ │ │ ├── id-to-file.tab.values.at
│ │ │ │ ├── id-to-file.tab_i
│ │ │ │ ├── id-to-file.tab_i.len
│ │ │ │ ├── lookups.tab
│ │ │ │ ├── lookups.tab.keystream
│ │ │ │ ├── lookups.tab.keystream.len
│ │ │ │ ├── lookups.tab.len
│ │ │ │ ├── lookups.tab.values.at
│ │ │ │ ├── lookups.tab_i
│ │ │ │ └── lookups.tab_i.len
│ │ │ ├── data-container-format-version.txt
│ │ │ ├── format-version.txt
│ │ │ ├── gradle-format-version.txt
│ │ │ └── last-build.bin
│ ├── libs
│ │ └── buildSrc.jar
│ └── tmp
│ │ └── jar
│ │ └── MANIFEST.MF
└── src
│ └── main
│ └── java
│ ├── Dependencies.kt
│ └── Modules.kt
├── common.gradle
├── feature
├── gists
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── isfaaghyth
│ │ │ └── app
│ │ │ └── gists
│ │ │ └── ExampleInstrumentedTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── java
│ │ │ └── isfaaghyth
│ │ │ │ └── app
│ │ │ │ └── gists
│ │ │ │ ├── data
│ │ │ │ ├── AppDataManager.kt
│ │ │ │ ├── DataManager.kt
│ │ │ │ ├── GistServices.kt
│ │ │ │ ├── entity
│ │ │ │ │ └── Gist.kt
│ │ │ │ └── remote
│ │ │ │ │ ├── GistRepository.kt
│ │ │ │ │ └── GistRepositoryImpl.kt
│ │ │ │ ├── di
│ │ │ │ ├── GistComponent.kt
│ │ │ │ ├── GistModule.kt
│ │ │ │ └── GistScope.kt
│ │ │ │ └── feature
│ │ │ │ ├── GistActivity.kt
│ │ │ │ ├── GistPresenter.kt
│ │ │ │ ├── GistPresenterInteractor.kt
│ │ │ │ └── GistView.kt
│ │ └── res
│ │ │ ├── layout
│ │ │ └── activity_gist.xml
│ │ │ └── values
│ │ │ └── strings.xml
│ │ └── test
│ │ └── java
│ │ └── isfaaghyth
│ │ └── app
│ │ └── gists
│ │ ├── ExampleUnitTest.java
│ │ └── data
│ │ └── remote
│ │ └── GistRepositoryImplTest.kt
└── repos
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ ├── androidTest
│ └── java
│ │ └── app
│ │ └── isfaaghyth
│ │ └── repos
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── app
│ │ │ └── isfaaghyth
│ │ │ └── repos
│ │ │ ├── data
│ │ │ ├── AppDataManager.kt
│ │ │ ├── DataManager.kt
│ │ │ ├── ReposServices.kt
│ │ │ ├── entity
│ │ │ │ └── Repo.kt
│ │ │ └── remote
│ │ │ │ ├── RemoteRepository.kt
│ │ │ │ └── RemoteRepositoryImpl.kt
│ │ │ ├── di
│ │ │ ├── ReposComponent.kt
│ │ │ ├── ReposModule.kt
│ │ │ └── ReposScope.kt
│ │ │ └── feature
│ │ │ ├── ReposActivity.kt
│ │ │ ├── ReposPresenter.kt
│ │ │ ├── ReposPresenterInteractor.kt
│ │ │ ├── ReposState.kt
│ │ │ └── ReposView.kt
│ └── res
│ │ ├── layout
│ │ └── activity_repos_main.xml
│ │ └── values
│ │ └── strings.xml
│ └── test
│ └── java
│ └── app
│ └── isfaaghyth
│ └── repos
│ └── ExampleUnitTest.java
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── network
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── app
│ │ └── isfaaghyth
│ │ └── network
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── app
│ │ │ └── isfaaghyth
│ │ │ └── network
│ │ │ └── Network.kt
│ └── res
│ │ └── values
│ │ └── strings.xml
│ └── test
│ └── java
│ └── app
│ └── isfaaghyth
│ └── network
│ └── ExampleUnitTest.java
├── settings.gradle
├── uicomponent
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── app
│ │ └── isfaaghyth
│ │ └── uicomponent
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ └── res
│ │ └── values
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ └── strings.xml
│ └── test
│ └── java
│ └── app
│ └── isfaaghyth
│ └── uicomponent
│ └── ExampleUnitTest.java
└── update.sh
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches/build_file_checksums.ser
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | .DS_Store
9 | /build
10 | /captures
11 | .externalNativeBuild
12 |
--------------------------------------------------------------------------------
/.idea/codeStyles/Project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/.idea/codeStyles/codeStyleConfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
24 |
25 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/.idea/qaplug_profiles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: android
2 | sudo: required
3 | jdk: oraclejdk8
4 | before_cache:
5 | -rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
6 | -rm -fr $HOME/.gradle/caches/*/plugin-resolution/
7 | cache:
8 | directories:
9 | -$HOME/.gradle/caches/
10 | -$HOME/.gradle/wrapper/
11 | env:
12 | global:
13 | - ANDROID_API=24
14 | - EMULATOR_API=21
15 | - ANDROID_BUILD_TOOLS=24.0.2
16 | - ADB_INSTALL_TIMEOUT=5 # minutes
17 | android:
18 | components:
19 | - tools
20 | - platform-tools
21 | - build-tools-$ANDROID_BUILD_TOOLS
22 | - android-$ANDROID_API
23 | - android-$EMULATOR_API_LEVEL
24 | - extra-google-m2repository
25 | - extra-android-m2repository # for design library
26 | - addon-google_apis-google-19 # google play services
27 | - sys-img-armeabi-v7a-addon-google_apis-google-$ANDROID_API_LEVEL
28 | - sys-img-armeabi-v7a-addon-google_apis-google-$EMULATOR_API_LEVEL
29 | licenses:
30 | - android-sdk-preview-license-.+
31 | - android-sdk-license-.+
32 | - google-gdk-license-.+
33 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Modularization in a Nutshell
2 | Implementation of Modularization on Architecture Pattern
3 |
4 | Tech stack:
5 |
6 | - Kotlin
7 | - Dagger2
8 | - Koin `(on going)`
9 | - RxJava2
10 | - MVP
11 | - MVVM `(on going)`
12 | - Retrofit
13 | - Room `(on going)`
14 | - Mockito `(on going)`
15 | - Applink
16 |
17 |
18 | Cheers! 2019
19 |
20 | @isfaaghyth
21 |
--------------------------------------------------------------------------------
/abstraction/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/abstraction/build.gradle:
--------------------------------------------------------------------------------
1 | apply from: "$rootDir/common.gradle"
2 |
3 | dependencies {
4 | //rx
5 | implementation Reactivex.android
6 | implementation Reactivex.kotlin
7 |
8 | //android support
9 | implementation AndroidSupport.appCompat
10 | implementation AndroidSupport.design
11 | implementation AndroidSupport.constraint
12 |
13 | //glide
14 | implementation Glide.glide
15 | kapt Glide.compiler
16 |
17 | //testing
18 | testImplementation Testing.jUnit
19 | }
--------------------------------------------------------------------------------
/abstraction/proguard-rules.pro:
--------------------------------------------------------------------------------
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
22 |
--------------------------------------------------------------------------------
/abstraction/src/androidTest/java/app/isfaaghyth/abstraction/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("app.isfaaghyth.abstraction.test", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/abstraction/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/base/BaseActivity.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.base
2 |
3 | import android.os.Bundle
4 | import android.support.v7.app.AppCompatActivity
5 | import android.widget.Toast
6 | import app.isfaaghyth.abstraction.utils.KeyboardUtils
7 | import app.isfaaghyth.abstraction.utils.NetworkUtils
8 |
9 | /**
10 | * Created by isfaaghyth on 11/04/19.
11 | * github: @isfaaghyth
12 | */
13 | abstract class BaseActivity: AppCompatActivity(), BaseView {
14 |
15 | /**
16 | * lifecycle method
17 | * @method contentView(): @return resLayoutId
18 | * @method initView()
19 | */
20 | abstract fun contentView(): Int
21 | abstract fun initView()
22 | abstract fun initInjector()
23 |
24 | /**
25 | * (optional, use it if needed)
26 | */
27 | protected lateinit var savedInstanceState: Bundle
28 |
29 | override fun onCreate(savedInstanceState: Bundle?) {
30 | super.onCreate(savedInstanceState)
31 | if (savedInstanceState != null) {
32 | this.savedInstanceState = savedInstanceState
33 | }
34 | setContentView(contentView())
35 | initInjector()
36 | initView()
37 | }
38 |
39 | override fun onMessage(message: String?) {
40 | Toast.makeText(this, message, Toast.LENGTH_LONG).show()
41 | }
42 |
43 | override fun onMessage(stringResId: Int) {
44 | onMessage(getString(stringResId))
45 | }
46 |
47 | /**
48 | * check internet connection
49 | */
50 | override fun isNetworkConnect(): Boolean {
51 | return NetworkUtils.connection(this)
52 | }
53 |
54 | /**
55 | * hide keyboard layout
56 | */
57 | override fun hideKeyboard() {
58 | return KeyboardUtils.hide(this)
59 | }
60 |
61 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/base/BaseFragment.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.base
2 |
3 | import android.app.Activity
4 | import android.os.Bundle
5 | import android.support.v4.app.Fragment
6 | import android.view.LayoutInflater
7 | import android.view.View
8 | import android.view.ViewGroup
9 | import android.widget.Toast
10 | import app.isfaaghyth.abstraction.utils.KeyboardUtils
11 | import app.isfaaghyth.abstraction.utils.NetworkUtils
12 |
13 | /**
14 | * Created by isfaaghyth on 11/04/19.
15 | * github: @isfaaghyth
16 | */
17 | abstract class BaseFragment: Fragment(), BaseView {
18 |
19 | /**
20 | * lifecycle method
21 | * @method contentView(): @return resLayoutId
22 | * @method initView()
23 | */
24 | abstract fun contentView(): Int
25 | abstract fun initView()
26 | abstract fun initInjector()
27 |
28 | /**
29 | * (optional, use it if needed)
30 | */
31 | protected lateinit var savedInstanceState: Bundle
32 |
33 | override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
34 | return inflater.inflate(contentView(), container, false)
35 | }
36 |
37 | override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
38 | super.onViewCreated(view, savedInstanceState)
39 | if (savedInstanceState != null) {
40 | this.savedInstanceState = savedInstanceState
41 | }
42 | initInjector()
43 | initView()
44 | }
45 |
46 | override fun onMessage(message: String?) {
47 | Toast.makeText(context, message, Toast.LENGTH_LONG).show()
48 | }
49 |
50 | override fun onMessage(stringResId: Int) {
51 | onMessage(getString(stringResId))
52 | }
53 |
54 | /**
55 | * check internet connection
56 | */
57 | override fun isNetworkConnect(): Boolean {
58 | return if (context != null) {
59 | NetworkUtils.connection(context!!)
60 | } else {
61 | false
62 | }
63 | }
64 |
65 | /**
66 | * hide keyboard layout
67 | */
68 | override fun hideKeyboard() {
69 | return (activity as Activity).let {
70 | KeyboardUtils.hide(it)
71 | }
72 | }
73 |
74 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/base/BasePresenter.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.base
2 |
3 | import io.reactivex.disposables.CompositeDisposable
4 | import io.reactivex.disposables.Disposable
5 |
6 | /**
7 | * Created by isfaaghyth on 11/04/19.
8 | * github: @isfaaghyth
9 | */
10 | open class BasePresenter: BasePresenterIntr {
11 |
12 | private val compositeDisposable = CompositeDisposable()
13 | protected lateinit var view: V
14 |
15 | override fun attachView(view: V?) {
16 | if (view != null) {
17 | this.view = view
18 | } else {
19 | throw NullPointerException("presenter: please attach your view on onCreate() method.")
20 | }
21 | }
22 |
23 | /**
24 | * adding a new task (as a disposable) into compositeDisposable
25 | * @param: disposable
26 | */
27 | protected fun subscribe(job: () -> Disposable) {
28 | compositeDisposable.add(job())
29 | }
30 |
31 | override fun dettachView() {
32 | compositeDisposable.clear()
33 | }
34 |
35 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/base/BasePresenterIntr.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.base
2 |
3 | /**
4 | * Created by isfaaghyth on 19/04/19.
5 | * github: @isfaaghyth
6 | */
7 | interface BasePresenterIntr {
8 | fun attachView(view: V?)
9 | fun dettachView()
10 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/base/BaseView.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.base
2 |
3 | import android.support.annotation.StringRes
4 |
5 | /**
6 | * Created by isfaaghyth on 11/04/19.
7 | * github: @isfaaghyth
8 | */
9 | interface BaseView {
10 | /**
11 | * showing custom message in current activity
12 | * @param message
13 | * @param stringResId
14 | */
15 | fun onMessage(message: String?)
16 | fun onMessage(@StringRes stringResId: Int)
17 |
18 | /**
19 | * check internet connection
20 | * @return boolean
21 | */
22 | fun isNetworkConnect(): Boolean
23 |
24 | /**
25 | * hide keyboard.
26 | * you could use this when you have any editText actively
27 | * @return boolean
28 | */
29 | fun hideKeyboard()
30 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/utils/ImageLoaderExt.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.utils
2 |
3 | import android.widget.ImageView
4 | import com.bumptech.glide.Glide
5 | import com.bumptech.glide.load.resource.bitmap.CircleCrop
6 | import com.bumptech.glide.request.RequestOptions
7 |
8 | /**
9 | * Created by isfaaghyth on 27/04/19.
10 | * github: @isfaaghyth
11 | */
12 |
13 | fun ImageView.load(imageUri: Any) {
14 | Glide.with(context)
15 | .load(imageUri)
16 | .apply(RequestOptions())
17 | .into(this)
18 | }
19 |
20 | fun ImageView.circleLoad(imageUri: Any) {
21 | Glide.with(context)
22 | .asBitmap()
23 | .load(imageUri)
24 | .apply(RequestOptions()
25 | .transform(CircleCrop())
26 | )
27 | .into(this)
28 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/utils/KeyboardUtils.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.utils
2 |
3 | import android.app.Activity
4 | import android.content.Context
5 | import android.view.View
6 | import android.view.inputmethod.InputMethodManager
7 | import android.widget.EditText
8 |
9 | /**
10 | * Created by isfaaghyth on 19/04/19.
11 | * github: @isfaaghyth
12 | */
13 | object KeyboardUtils {
14 |
15 | fun hide(activity: Activity) {
16 | var view = activity.currentFocus
17 | if (view == null) view = View(activity)
18 | val imm = activity.getSystemService(Activity.INPUT_METHOD_SERVICE) as InputMethodManager
19 | imm.hideSoftInputFromWindow(view.windowToken, 0)
20 | }
21 |
22 | fun show(edit: EditText, context: Context) {
23 | edit.isFocusable = true
24 | edit.isFocusableInTouchMode = true
25 | edit.requestFocus()
26 | val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
27 | imm.showSoftInput(edit, 0)
28 | }
29 |
30 | fun toggle(context: Context) {
31 | val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
32 | imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0)
33 | }
34 |
35 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/utils/NetworkUtils.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.utils
2 |
3 | import android.content.Context
4 | import android.net.ConnectivityManager
5 |
6 | /**
7 | * Created by isfaaghyth on 19/04/19.
8 | * github: @isfaaghyth
9 | */
10 | object NetworkUtils {
11 |
12 | fun connection(context: Context): Boolean {
13 | val connectivityManager = context.getSystemService(Context.CONNECTIVITY_SERVICE) as ConnectivityManager
14 | return connectivityManager.activeNetworkInfo != null && connectivityManager.activeNetworkInfo.isConnected
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/utils/ViewExt.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.utils
2 |
3 | import android.app.Activity
4 | import android.support.v4.app.Fragment
5 | import android.widget.Toast
6 |
7 | /**
8 | * Created by isfaaghyth on 29/04/19.
9 | * github: @isfaaghyth
10 | */
11 |
12 | fun Activity.toast(message: String?) {
13 | Toast.makeText(this, message, Toast.LENGTH_SHORT).show()
14 | }
15 |
16 | fun Fragment.toast(message: String?) {
17 | Toast.makeText(context, message, Toast.LENGTH_SHORT).show()
18 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/utils/rx/AppSchedulerProvider.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.utils.rx
2 |
3 | import io.reactivex.Scheduler
4 | import io.reactivex.android.schedulers.AndroidSchedulers
5 | import io.reactivex.schedulers.Schedulers
6 |
7 | /**
8 | * Created by isfaaghyth on 29/04/19.
9 | * github: @isfaaghyth
10 | */
11 | class AppSchedulerProvider: SchedulerProvider {
12 | override fun mainThread(): Scheduler = AndroidSchedulers.mainThread()
13 | override fun computation(): Scheduler = Schedulers.trampoline()
14 | override fun trampoline(): Scheduler = Schedulers.trampoline()
15 | override fun newThread(): Scheduler = Schedulers.newThread()
16 | override fun io(): Scheduler = Schedulers.io()
17 | }
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/utils/rx/Ext.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.utils.rx
2 |
3 | import io.reactivex.Completable
4 | import io.reactivex.Maybe
5 | import io.reactivex.Single
6 |
7 | /**
8 | * Created by isfaaghyth on 29/04/19.
9 | * github: @isfaaghyth
10 | */
11 |
12 | /**
13 | * Use SchedulerProvider configuration for Observable
14 | */
15 | fun Completable.with(schedulerProvider: SchedulerProvider): Completable =
16 | this.observeOn(schedulerProvider.mainThread()).subscribeOn(schedulerProvider.io())
17 |
18 | /**
19 | * Use SchedulerProvider configuration for Single
20 | */
21 | fun Single.with(schedulerProvider: SchedulerProvider): Single =
22 | this.observeOn(schedulerProvider.mainThread()).subscribeOn(schedulerProvider.io())
23 |
24 | /**
25 | * Use SchedulerProvider configuration for Maybe
26 | */
27 | fun Maybe.with(schedulerProvider: SchedulerProvider): Maybe =
28 | this.observeOn(schedulerProvider.mainThread()).subscribeOn(schedulerProvider.io())
--------------------------------------------------------------------------------
/abstraction/src/main/java/app/isfaaghyth/abstraction/utils/rx/SchedulerProvider.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction.utils.rx
2 |
3 | import io.reactivex.Scheduler
4 |
5 | /**
6 | * Created by isfaaghyth on 29/04/19.
7 | * github: @isfaaghyth
8 | */
9 | interface SchedulerProvider {
10 | fun mainThread(): Scheduler
11 | fun computation(): Scheduler
12 | fun trampoline(): Scheduler
13 | fun newThread(): Scheduler
14 | fun io(): Scheduler
15 | }
--------------------------------------------------------------------------------
/abstraction/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | abstraction
3 |
4 |
--------------------------------------------------------------------------------
/abstraction/src/test/java/app/isfaaghyth/abstraction/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.abstraction;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
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 Releases.compileSdkVersion
8 |
9 | defaultConfig {
10 | applicationId ApplicationId.id
11 | minSdkVersion Releases.minSdkVersion
12 | targetSdkVersion Releases.targetSdkVersion
13 | versionCode Releases.versionCode
14 | versionName Releases.versionName
15 | }
16 |
17 | buildTypes {
18 | release {
19 | minifyEnabled false
20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
21 | }
22 | }
23 | }
24 |
25 | dependencies {
26 | implementation fileTree(dir: 'libs', include: ['*.jar'])
27 | implementation Dependencies.kotlin
28 |
29 | //project
30 | implementation project(Modules.repos)
31 | implementation project(Modules.gists)
32 |
33 | //android support
34 | implementation AndroidSupport.appCompat
35 | implementation AndroidSupport.design
36 | implementation AndroidSupport.constraint
37 |
38 | //dependency injection
39 | implementation Dagger.dagger
40 | implementation Dagger.android
41 | implementation Dagger.androidSupport
42 | kapt Dagger.compiler
43 | kapt Dagger.processor
44 |
45 | //testing
46 | testImplementation Testing.jUnit
47 | testImplementation Testing.mockito
48 | testImplementation Testing.mockKotlin
49 | testImplementation Testing.mockKtRunner
50 | androidTestImplementation Testing.testRunner
51 | androidTestImplementation Testing.espresso
52 | }
53 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
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
22 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/app/isfaaghyth/git/ExampleInstrumentedTest.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.git
2 |
3 | import android.support.test.InstrumentationRegistry
4 | import android.support.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("app.isfaaghyth.git", appContext.packageName)
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/app/src/main/java/app/isfaaghyth/git/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.git
2 |
3 | import android.content.Intent
4 | import android.net.Uri
5 | import android.os.Bundle
6 | import android.support.v7.app.AppCompatActivity
7 | import isfaaghyth.app.gists.feature.GistActivity
8 | import kotlinx.android.synthetic.main.activity_main.*
9 |
10 | class MainActivity : AppCompatActivity() {
11 |
12 | override fun onCreate(savedInstanceState: Bundle?) {
13 | super.onCreate(savedInstanceState)
14 | setContentView(R.layout.activity_main)
15 |
16 | btnViewRepo.setOnClickListener {
17 | startActivity(GistActivity.open(this, "isfaaghyth"))
18 | //passing own github username with lastSegment trough applink
19 | // val uri = Uri.parse("gitjkt://repos/isfaaghyth")
20 | // val intent = Intent(Intent.ACTION_VIEW, uri)
21 | // startActivity(intent)
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
10 |
12 |
14 |
16 |
18 |
20 |
22 |
24 |
26 |
28 |
30 |
32 |
34 |
36 |
38 |
40 |
42 |
44 |
46 |
48 |
50 |
52 |
54 |
56 |
58 |
60 |
62 |
64 |
66 |
68 |
70 |
72 |
74 |
75 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
19 |
20 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 |
7 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | modularization
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/app/src/test/java/app/isfaaghyth/git/ExampleUnitTest.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.git
2 |
3 | import org.junit.Test
4 |
5 | import org.junit.Assert.*
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * See [testing documentation](http://d.android.com/tools/testing).
11 | */
12 | class ExampleUnitTest {
13 | @Test
14 | fun addition_isCorrect() {
15 | assertEquals(4, 2 + 2)
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | google()
6 | jcenter()
7 | }
8 | dependencies {
9 | classpath 'com.android.tools.build:gradle:3.2.1'
10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${Version.kotlin}"
11 |
12 | // NOTE: Do not place your application dependencies here; they belong
13 | // in the individual module build.gradle files
14 | }
15 | }
16 |
17 | allprojects {
18 | repositories {
19 | google()
20 | jcenter()
21 | }
22 | }
23 |
24 | task clean(type: Delete) {
25 | delete rootProject.buildDir
26 | }
27 |
--------------------------------------------------------------------------------
/buildSrc/build.gradle.kts:
--------------------------------------------------------------------------------
1 | import org.gradle.kotlin.dsl.`kotlin-dsl`
2 |
3 | plugins {
4 | `kotlin-dsl`
5 | }
6 |
7 | // Required since Gradle 4.10+.
8 | repositories {
9 | jcenter()
10 | }
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/AndroidSupport.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/AndroidSupport.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Anko.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Anko.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/ApplicationId.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/ApplicationId.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Dagger.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Dagger.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Dependencies.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Dependencies.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Glide.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Glide.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Modules.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Modules.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Reactivex.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Reactivex.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Releases.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Releases.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Retrofit.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Retrofit.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Testing.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Testing.class
--------------------------------------------------------------------------------
/buildSrc/build/classes/kotlin/main/Version.class:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/classes/kotlin/main/Version.class
--------------------------------------------------------------------------------
/buildSrc/build/kotlin-build/artifact-difference.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin-build/artifact-difference.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin-build/artifact-difference.tab.keystream:
--------------------------------------------------------------------------------
1 | H/Users/isfaaghyth/Github/modularization/buildSrc/build/libs/buildSrc.jar`/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/build/libs/buildSrc.jar
--------------------------------------------------------------------------------
/buildSrc/build/kotlin-build/artifact-difference.tab.keystream.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin-build/artifact-difference.tab.keystream.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin-build/artifact-difference.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin-build/artifact-difference.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin-build/artifact-difference.tab.values.at:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin-build/artifact-difference.tab.values.at
--------------------------------------------------------------------------------
/buildSrc/build/kotlin-build/artifact-difference.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin-build/artifact-difference.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin-build/artifact-difference.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin-build/artifact-difference.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin-build/version.txt:
--------------------------------------------------------------------------------
1 | 11001
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/build-history.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/build-history.bin
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.keystream:
--------------------------------------------------------------------------------
1 | a/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.ktf/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.kt
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.keystream.len:
--------------------------------------------------------------------------------
1 | �
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.values.at:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab.values.at
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/inputs/source-to-output.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream:
--------------------------------------------------------------------------------
1 |
ApplicationIdReleasesVersionDependenciesAndroidSupportRetrofit ReactivexGlideDaggerAnkoTestingModules
2 | Coroutines
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len:
--------------------------------------------------------------------------------
1 | {
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at:
--------------------------------------------------------------------------------
1 | / Header Record For PersistentHashMapValueStorageg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktb a/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.ktb a/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.kt
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream:
--------------------------------------------------------------------------------
1 | Version
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.keystream.len:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab.values.at
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/constants.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream:
--------------------------------------------------------------------------------
1 |
ApplicationIdReleasesVersionDependenciesAndroidSupportRetrofit ReactivexGlideDaggerAnkoTestingModules
2 | Coroutines
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len:
--------------------------------------------------------------------------------
1 | {
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at:
--------------------------------------------------------------------------------
1 | / Header Record For PersistentHashMapValueStorageg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktb a/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.ktb a/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktg f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.kt
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream:
--------------------------------------------------------------------------------
1 |
ApplicationIdReleasesVersionDependenciesAndroidSupportRetrofit ReactivexGlideDaggerAnkoTestingModules
2 | Coroutines
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.keystream.len:
--------------------------------------------------------------------------------
1 | {
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab.values.at
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/proto.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream:
--------------------------------------------------------------------------------
1 | f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.kta/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.kt
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len:
--------------------------------------------------------------------------------
1 | �
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at:
--------------------------------------------------------------------------------
1 | / Header Record For PersistentHashMapValueStorageh
ApplicationIdReleasesVersionDependenciesAndroidSupportRetrofit ReactivexGlideDaggerAnkoTesting Modules Moduless
ApplicationIdReleasesVersionDependenciesAndroidSupportRetrofit Reactivex
2 | CoroutinesGlideDaggerAnkoTesting
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/counters.tab:
--------------------------------------------------------------------------------
1 | 4
2 | 2
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.keystream:
--------------------------------------------------------------------------------
1 | f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.kt a/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.kt
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.keystream.len:
--------------------------------------------------------------------------------
1 | �
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab.values.at:
--------------------------------------------------------------------------------
1 | / Header Record For PersistentHashMapValueStorage
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/file-to-id.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.keystream:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.keystream.len:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab.values.at:
--------------------------------------------------------------------------------
1 | / Header Record For PersistentHashMapValueStorageh f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.ktc a/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.ktc a/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Modules.kth f/Users/nakama/AndroidStudioProjects/arch-pattern-modularization/buildSrc/src/main/java/Dependencies.kt
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/id-to-file.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.keystream.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab.values.at:
--------------------------------------------------------------------------------
1 | / Header Record For PersistentHashMapValueStorage
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i.len:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/caches-jvm/lookups/lookups.tab_i.len
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/data-container-format-version.txt:
--------------------------------------------------------------------------------
1 | 2011001
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/format-version.txt:
--------------------------------------------------------------------------------
1 | 8011001
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/gradle-format-version.txt:
--------------------------------------------------------------------------------
1 | 4011001
--------------------------------------------------------------------------------
/buildSrc/build/kotlin/compileKotlin/last-build.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/kotlin/compileKotlin/last-build.bin
--------------------------------------------------------------------------------
/buildSrc/build/libs/buildSrc.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/buildSrc/build/libs/buildSrc.jar
--------------------------------------------------------------------------------
/buildSrc/build/tmp/jar/MANIFEST.MF:
--------------------------------------------------------------------------------
1 | Manifest-Version: 1.0
2 |
3 |
--------------------------------------------------------------------------------
/buildSrc/src/main/java/Dependencies.kt:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by isfaaghyth on 19/02/19.
3 | * github: @isfaaghyth
4 | */
5 |
6 | object ApplicationId {
7 | val id = "app.isfaaghyth.git"
8 | }
9 |
10 | object Releases {
11 | val versionCode = 1
12 | val versionName = "1.0"
13 |
14 | val compileSdkVersion = 28
15 | val targetSdkVersion = 28
16 | val minSdkVersion = 17
17 | }
18 |
19 | object Version {
20 | const val kotlin = "1.3.11"
21 | const val android_support = "28.0.0"
22 | const val constraint = "1.1.3"
23 | const val anko = "0.10.5"
24 | const val retrofit = "2.5.0"
25 | const val rxretrofit = "2.4.0"
26 | const val okhttp_logging = "3.11.0"
27 | const val rxandroid = "2.0.2"
28 | const val rxkotlin = "2.3.0"
29 | const val glide = "4.8.0"
30 | const val dagger = "2.21"
31 | const val coroutines = "1.3.0-M2"
32 | const val coroutinesAdapter = "0.9.2"
33 |
34 | //testing
35 | const val jUnit = "4.12"
36 | const val testRunner = "1.0.2"
37 | const val espresso = "3.0.2"
38 | const val mockito = "2.8.47"
39 | const val mockKotlin = "2.1.0"
40 | const val mockTestRunner = "0.3.1"
41 | }
42 |
43 | object Dependencies {
44 | val kotlin = "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${Version.kotlin}"
45 | }
46 |
47 | object AndroidSupport {
48 | val appCompat = "com.android.support:appcompat-v7:${Version.android_support}"
49 | val design = "com.android.support:design:${Version.android_support}"
50 | val constraint = "com.android.support.constraint:constraint-layout:${Version.constraint}"
51 | }
52 |
53 | object Retrofit {
54 | val retrofit = "com.squareup.retrofit2:retrofit:${Version.retrofit}"
55 | val gsonConverter = "com.squareup.retrofit2:converter-gson:${Version.retrofit}"
56 | val scalarConverter = "com.squareup.retrofit2:converter-scalars:${Version.retrofit}"
57 | val rxAdapter = "com.squareup.retrofit2:adapter-rxjava2:${Version.rxretrofit}"
58 | val okHttpLogging = "com.squareup.okhttp3:logging-interceptor:${Version.okhttp_logging}"
59 | val coroutinesAdapter = "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:${Version.coroutinesAdapter}"
60 | }
61 |
62 | object Reactivex {
63 | val android = "io.reactivex.rxjava2:rxandroid:${Version.rxandroid}"
64 | val kotlin = "io.reactivex.rxjava2:rxkotlin:${Version.rxkotlin}"
65 | }
66 |
67 | object Coroutines {
68 | val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${Version.coroutines}"
69 | val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Version.coroutines}"
70 | }
71 |
72 | object Glide {
73 | val glide = "com.github.bumptech.glide:glide:${Version.glide}"
74 | val compiler = "com.github.bumptech.glide:compiler:${Version.glide}"
75 | }
76 |
77 | object Dagger {
78 | val dagger = "com.google.dagger:dagger:${Version.dagger}"
79 | val android = "com.google.dagger:dagger-android:${Version.dagger}"
80 | val androidSupport = "com.google.dagger:dagger-android-support:${Version.dagger}"
81 | val compiler = "com.google.dagger:dagger-compiler:${Version.dagger}"
82 | val processor = "com.google.dagger:dagger-android-processor:${Version.dagger}"
83 | }
84 |
85 | object Anko {
86 | val anko = "org.jetbrains.anko:anko:${Version.anko}"
87 | val common = "org.jetbrains.anko:anko-commons:${Version.anko}"
88 | }
89 |
90 | object Testing {
91 | val jUnit = "junit:junit:${Version.jUnit}"
92 | val testRunner = "com.android.support.test:runner:${Version.testRunner}"
93 | val espresso = "com.android.support.test.espresso:espresso-core:${Version.espresso}"
94 | val mockito = "org.mockito:mockito-inline:${Version.mockito}"
95 | val mockKotlin = "com.nhaarman.mockitokotlin2:mockito-kotlin:${Version.mockKotlin}"
96 | val mockKtRunner = "de.jodamob.kotlin:kotlin-runner-junit4:${Version.mockTestRunner}"
97 | }
--------------------------------------------------------------------------------
/buildSrc/src/main/java/Modules.kt:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by isfaaghyth on 11/04/19.
3 | * github: @isfaaghyth
4 | */
5 |
6 | object Modules {
7 | val app = ":app"
8 |
9 | val uicomponent = ":uicomponent"
10 | val abstraction = ":abstraction"
11 | val network = ":network"
12 |
13 | val repos = ":feature:repos"
14 | val gists = ":feature:gists"
15 | }
--------------------------------------------------------------------------------
/common.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 | apply plugin: 'kotlin-android'
3 | apply plugin: 'kotlin-android-extensions'
4 | apply plugin: 'kotlin-kapt'
5 |
6 | android {
7 | compileSdkVersion Releases.compileSdkVersion
8 |
9 | defaultConfig {
10 | minSdkVersion Releases.minSdkVersion
11 | targetSdkVersion Releases.targetSdkVersion
12 | versionCode Releases.versionCode
13 | versionName Releases.versionName
14 |
15 | buildConfigField("String", "GITHUB_URL", "\"https://api.github.com/\"")
16 | }
17 |
18 | buildTypes {
19 | release {
20 | minifyEnabled false
21 | }
22 | }
23 | }
24 |
25 | dependencies {
26 | implementation Dependencies.kotlin
27 |
28 | //dependency injection
29 | implementation Dagger.dagger
30 | implementation Dagger.android
31 | implementation Dagger.androidSupport
32 | kapt Dagger.compiler
33 | kapt Dagger.processor
34 | }
--------------------------------------------------------------------------------
/feature/gists/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/feature/gists/build.gradle:
--------------------------------------------------------------------------------
1 | apply from: "$rootDir/common.gradle"
2 |
3 | dependencies {
4 | //android support
5 | implementation AndroidSupport.appCompat
6 | implementation AndroidSupport.design
7 | implementation AndroidSupport.constraint
8 |
9 | //coroutines
10 | implementation Coroutines.core
11 | implementation Coroutines.android
12 |
13 | //network
14 | implementation Retrofit.retrofit
15 | implementation Retrofit.gsonConverter
16 |
17 | //modules
18 | implementation project(Modules.network)
19 | implementation project(Modules.uicomponent)
20 | implementation project(Modules.abstraction)
21 |
22 | //testing
23 | testImplementation Testing.mockito
24 | testImplementation Testing.mockKotlin
25 | testImplementation Testing.mockKtRunner
26 | }
--------------------------------------------------------------------------------
/feature/gists/proguard-rules.pro:
--------------------------------------------------------------------------------
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
22 |
--------------------------------------------------------------------------------
/feature/gists/src/androidTest/java/isfaaghyth/app/gists/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("isfaaghyth.app.gists.test", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/feature/gists/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/data/AppDataManager.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.data
2 |
3 | import isfaaghyth.app.gists.data.entity.Gist
4 | import isfaaghyth.app.gists.data.remote.GistRepository
5 | import kotlinx.coroutines.Deferred
6 | import javax.inject.Inject
7 |
8 | class AppDataManager @Inject constructor(private val remote: GistRepository): DataManager {
9 |
10 | override fun getGithubGist(username: String): Deferred>
11 | = remote.getGithubGist(username)
12 |
13 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/data/DataManager.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.data
2 |
3 | import isfaaghyth.app.gists.data.remote.GistRepository
4 |
5 | interface DataManager: GistRepository
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/data/GistServices.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.data
2 |
3 | import isfaaghyth.app.gists.data.entity.Gist
4 | import kotlinx.coroutines.Deferred
5 | import retrofit2.http.GET
6 | import retrofit2.http.Path
7 |
8 | interface GistServices {
9 |
10 | @GET("users/{username}/gists")
11 | fun getGithubGist(
12 | @Path("username") username: String
13 | ): Deferred>
14 |
15 | @GET("users/{username}/gist")
16 | fun getGithubGistError(
17 | @Path("username") username: String
18 | ): Deferred>
19 |
20 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/data/entity/Gist.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.data.entity
2 |
3 | data class Gist(
4 | val url: String,
5 | val id: String,
6 | val htmlUrl: String
7 | )
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/data/remote/GistRepository.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.data.remote
2 |
3 | import isfaaghyth.app.gists.data.entity.Gist
4 | import kotlinx.coroutines.Deferred
5 |
6 | interface GistRepository {
7 | fun getGithubGist(username: String): Deferred>
8 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/data/remote/GistRepositoryImpl.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.data.remote
2 |
3 | import isfaaghyth.app.gists.data.GistServices
4 | import isfaaghyth.app.gists.data.entity.Gist
5 | import kotlinx.coroutines.Deferred
6 | import javax.inject.Inject
7 |
8 | class GistRepositoryImpl @Inject constructor(private val services: GistServices): GistRepository {
9 |
10 | override fun getGithubGist(username: String): Deferred>
11 | = services.getGithubGist(username)
12 |
13 | /**
14 | * @TODO(testing purpose)
15 | */
16 | fun getGithubGistError(username: String): Deferred>
17 | = services.getGithubGistError(username)
18 |
19 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/di/GistComponent.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.di
2 |
3 | import dagger.Component
4 | import isfaaghyth.app.gists.feature.GistActivity
5 | import javax.inject.Singleton
6 |
7 | @GistScope
8 | @Component(modules = [GistModule::class])
9 | interface GistComponent {
10 | fun inject(activity: GistActivity)
11 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/di/GistModule.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.di
2 |
3 | import app.isfaaghyth.network.serviceCoroutines
4 | import dagger.Module
5 | import dagger.Provides
6 | import isfaaghyth.app.gists.data.AppDataManager
7 | import isfaaghyth.app.gists.data.DataManager
8 | import isfaaghyth.app.gists.data.GistServices
9 | import isfaaghyth.app.gists.data.remote.GistRepository
10 | import isfaaghyth.app.gists.data.remote.GistRepositoryImpl
11 | import isfaaghyth.app.gists.feature.GistPresenter
12 | import isfaaghyth.app.gists.feature.GistPresenterInteractor
13 | import javax.inject.Singleton
14 |
15 | @Module class GistModule {
16 |
17 | @GistScope @Provides
18 | fun provideServices(): GistServices
19 | = serviceCoroutines()
20 |
21 | @GistScope @Provides
22 | fun provideRepository(services: GistServices): GistRepository
23 | = GistRepositoryImpl(services)
24 |
25 | @GistScope @Provides
26 | fun provideDataManager(remote: GistRepository): DataManager
27 | = AppDataManager(remote)
28 |
29 | @GistScope @Provides
30 | fun providePresenter(dataManager: DataManager): GistPresenterInteractor
31 | = GistPresenter(dataManager)
32 |
33 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/di/GistScope.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.di
2 |
3 | import javax.inject.Scope
4 |
5 | @Scope annotation class GistScope
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/feature/GistActivity.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.feature
2 |
3 | import android.content.Context
4 | import android.content.Intent
5 | import android.util.Log
6 | import app.isfaaghyth.abstraction.base.BaseActivity
7 | import app.isfaaghyth.network.serviceCoroutines
8 | import isfaaghyth.app.gists.R
9 | import isfaaghyth.app.gists.data.AppDataManager
10 | import isfaaghyth.app.gists.data.GistServices
11 | import isfaaghyth.app.gists.data.entity.Gist
12 | import isfaaghyth.app.gists.data.remote.GistRepositoryImpl
13 | import isfaaghyth.app.gists.di.DaggerGistComponent
14 | import isfaaghyth.app.gists.di.GistModule
15 | import javax.inject.Inject
16 |
17 | class GistActivity: BaseActivity(), GistView {
18 |
19 | companion object {
20 | const val GITHUB_USERNAME = "github_username"
21 |
22 | fun open(context: Context, username: String): Intent {
23 | val intent = Intent(context, GistActivity::class.java)
24 | intent.putExtra(GITHUB_USERNAME, username)
25 | return intent
26 | }
27 | }
28 |
29 | override fun contentView(): Int = R.layout.activity_gist
30 |
31 | override fun initInjector() {
32 | DaggerGistComponent.builder()
33 | .gistModule(GistModule())
34 | .build()
35 | .inject(this)
36 | }
37 |
38 | @Inject lateinit var presenter: GistPresenterInteractor
39 |
40 | override fun initView() {
41 | presenter.attachView(this)
42 |
43 | //example get gist
44 | val username = intent?.getStringExtra(GITHUB_USERNAME)?: ""
45 | if (username.isNotEmpty()) {
46 | presenter.onGetGist(username)
47 | } else {
48 | finish()
49 | }
50 | }
51 |
52 | override fun onDestroy() {
53 | super.onDestroy()
54 | presenter.dettachView()
55 | }
56 |
57 | override fun onResultGist(gists: List) {
58 | for (gist: Gist in gists) {
59 | Log.d("GIST URL", gist.url)
60 | }
61 | }
62 |
63 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/feature/GistPresenter.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.feature
2 |
3 | import app.isfaaghyth.abstraction.base.BasePresenter
4 | import isfaaghyth.app.gists.data.DataManager
5 | import kotlinx.coroutines.CoroutineScope
6 | import kotlinx.coroutines.Dispatchers
7 | import kotlinx.coroutines.launch
8 | import kotlinx.coroutines.withContext
9 | import javax.inject.Inject
10 |
11 | class GistPresenter @Inject constructor(
12 | private val dataManager: DataManager
13 | ): BasePresenter(), GistPresenterInteractor {
14 |
15 | override fun onGetGist(username: String) {
16 | CoroutineScope(Dispatchers.IO).launch {
17 | val data = dataManager.getGithubGist(username).await()
18 | withContext(Dispatchers.Main) {
19 | view.onResultGist(data)
20 | }
21 | }
22 | }
23 |
24 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/feature/GistPresenterInteractor.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.feature
2 |
3 | import app.isfaaghyth.abstraction.base.BasePresenterIntr
4 |
5 | interface GistPresenterInteractor: BasePresenterIntr {
6 | fun onGetGist(username: String)
7 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/java/isfaaghyth/app/gists/feature/GistView.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.feature
2 |
3 | import app.isfaaghyth.abstraction.base.BaseView
4 | import isfaaghyth.app.gists.data.entity.Gist
5 |
6 | interface GistView: BaseView {
7 | fun onResultGist(gists: List)
8 | }
--------------------------------------------------------------------------------
/feature/gists/src/main/res/layout/activity_gist.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
--------------------------------------------------------------------------------
/feature/gists/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | gists
3 |
4 |
--------------------------------------------------------------------------------
/feature/gists/src/test/java/isfaaghyth/app/gists/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/feature/gists/src/test/java/isfaaghyth/app/gists/data/remote/GistRepositoryImplTest.kt:
--------------------------------------------------------------------------------
1 | package isfaaghyth.app.gists.data.remote
2 |
3 | import app.isfaaghyth.network.serviceCoroutines
4 | import isfaaghyth.app.gists.data.GistServices
5 | import kotlinx.coroutines.runBlocking
6 | import org.junit.Before
7 | import org.junit.Test
8 |
9 | class GistRepositoryImplTest {
10 |
11 | lateinit var services: GistServices
12 |
13 | @Before
14 | fun setUp() {
15 | services = serviceCoroutines()
16 | }
17 |
18 | @Test
19 | fun test_shouldValidData() {
20 | runBlocking {
21 | val data = services.getGithubGist("isfaaghyth").await()
22 | data.forEach(::println)
23 | }
24 | }
25 |
26 | @Test
27 | fun test_should404Request() {
28 | runBlocking {
29 | val notfound = services.getGithubGistError("isfaaghyth").await()
30 | notfound.forEach(::println)
31 | }
32 | }
33 |
34 | }
--------------------------------------------------------------------------------
/feature/repos/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/feature/repos/build.gradle:
--------------------------------------------------------------------------------
1 | apply from: "$rootDir/common.gradle"
2 |
3 | dependencies {
4 | //android support
5 | implementation AndroidSupport.appCompat
6 | implementation AndroidSupport.design
7 | implementation AndroidSupport.constraint
8 |
9 | //Rx
10 | implementation Reactivex.android
11 | implementation Reactivex.kotlin
12 |
13 | //network
14 | implementation Retrofit.retrofit
15 | implementation Retrofit.gsonConverter
16 | implementation Retrofit.rxAdapter
17 |
18 | //modules
19 | implementation project(Modules.network)
20 | implementation project(Modules.uicomponent)
21 | implementation project(Modules.abstraction)
22 | }
--------------------------------------------------------------------------------
/feature/repos/proguard-rules.pro:
--------------------------------------------------------------------------------
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
22 |
--------------------------------------------------------------------------------
/feature/repos/src/androidTest/java/app/isfaaghyth/repos/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("app.isfaaghyth.repos.test", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/feature/repos/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/data/AppDataManager.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.data
2 |
3 | import app.isfaaghyth.repos.data.entity.Repo
4 | import app.isfaaghyth.repos.data.remote.RemoteRepository
5 | import io.reactivex.Single
6 | import javax.inject.Inject
7 |
8 | /**
9 | * Created by isfaaghyth on 28/04/19.
10 | * github: @isfaaghyth
11 | */
12 | class AppDataManager @Inject constructor(private val remote: RemoteRepository): DataManager {
13 |
14 | override fun getGithubRepo(username: String): Single>
15 | = remote.getGithubRepo(username)
16 |
17 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/data/DataManager.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.data
2 |
3 | import app.isfaaghyth.repos.data.remote.RemoteRepository
4 |
5 | /**
6 | * Created by isfaaghyth on 28/04/19.
7 | * github: @isfaaghyth
8 | */
9 | interface DataManager: RemoteRepository
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/data/ReposServices.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.data
2 |
3 | import app.isfaaghyth.repos.data.entity.Repo
4 | import io.reactivex.Single
5 | import retrofit2.http.GET
6 | import retrofit2.http.Path
7 |
8 | /**
9 | * Created by isfaaghyth on 28/04/19.
10 | * github: @isfaaghyth
11 | */
12 | interface ReposServices {
13 |
14 | /**
15 | * get github repositories by username
16 | * @param: username
17 | * @return: Observable with Array of Object
18 | */
19 | @GET("users/{username}/repos")
20 | fun getGithubRepo(
21 | @Path("username") username: String
22 | ): Single>
23 |
24 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/data/entity/Repo.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.data.entity
2 |
3 | /**
4 | * Created by isfaaghyth on 28/04/19.
5 | * github: @isfaaghyth
6 | */
7 | data class Repo(
8 | val name: String = "",
9 | val htmlUrl: String = ""
10 | )
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/data/remote/RemoteRepository.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.data.remote
2 |
3 | import app.isfaaghyth.repos.data.ReposServices
4 | import app.isfaaghyth.repos.data.entity.Repo
5 | import io.reactivex.Single
6 |
7 | /**
8 | * Created by isfaaghyth on 28/04/19.
9 | * github: @isfaaghyth
10 | */
11 | interface RemoteRepository: ReposServices
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/data/remote/RemoteRepositoryImpl.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.data.remote
2 |
3 | import app.isfaaghyth.repos.data.ReposServices
4 | import app.isfaaghyth.repos.data.entity.Repo
5 | import io.reactivex.Single
6 | import javax.inject.Inject
7 |
8 | /**
9 | * Created by isfaaghyth on 28/04/19.
10 | * github: @isfaaghyth
11 | */
12 | class RemoteRepositoryImpl @Inject constructor(private val services: ReposServices): RemoteRepository {
13 |
14 | override fun getGithubRepo(username: String): Single>
15 | = services.getGithubRepo(username)
16 |
17 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/di/ReposComponent.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.di
2 |
3 | import app.isfaaghyth.repos.feature.ReposActivity
4 | import dagger.Component
5 |
6 | /**
7 | * Created by isfaaghyth on 28/04/19.
8 | * github: @isfaaghyth
9 | */
10 | @ReposScope @Component(modules = [ReposModule::class])
11 | interface ReposComponent {
12 | fun inject(activity: ReposActivity)
13 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/di/ReposModule.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.di
2 |
3 | import app.isfaaghyth.abstraction.utils.rx.AppSchedulerProvider
4 | import app.isfaaghyth.abstraction.utils.rx.SchedulerProvider
5 | import app.isfaaghyth.network.services
6 | import app.isfaaghyth.repos.data.AppDataManager
7 | import app.isfaaghyth.repos.data.DataManager
8 | import app.isfaaghyth.repos.data.ReposServices
9 | import app.isfaaghyth.repos.data.remote.RemoteRepository
10 | import app.isfaaghyth.repos.data.remote.RemoteRepositoryImpl
11 | import app.isfaaghyth.repos.feature.ReposPresenter
12 | import app.isfaaghyth.repos.feature.ReposPresenterInteractor
13 | import dagger.Module
14 | import dagger.Provides
15 |
16 | /**
17 | * Created by isfaaghyth on 28/04/19.
18 | * github: @isfaaghyth
19 | */
20 | @Module class ReposModule {
21 |
22 | /**
23 | * providing route of services for retrofit consume
24 | */
25 | @Provides @ReposScope
26 | fun provideReposService(): ReposServices {
27 | return services()
28 | }
29 |
30 | /**
31 | * scheduler provider for async data stream trough IO / mainthread
32 | */
33 | @Provides @ReposScope
34 | fun provideAppSchedulerProvider(): AppSchedulerProvider {
35 | return AppSchedulerProvider()
36 | }
37 |
38 | /**
39 | * scheduler provider for async data stream trough IO / mainthread
40 | * @purpose: unit testing and mocking purpose for trampoline data stream
41 | */
42 | @Provides @ReposScope
43 | fun provideSchedulerProvider(schedulerProvider: AppSchedulerProvider): SchedulerProvider {
44 | return schedulerProvider
45 | }
46 |
47 | /**
48 | * providing remote repository
49 | */
50 | @Provides @ReposScope
51 | fun provideRemoteReposityImpl(services: ReposServices): RemoteRepositoryImpl {
52 | return RemoteRepositoryImpl(services)
53 | }
54 |
55 | /**
56 | * providing remote repository
57 | * @purpose: unit testing and mocking purpose for remote repository
58 | */
59 | @Provides @ReposScope
60 | fun provideRemoteRepository(remoteRepositoryImpl: RemoteRepositoryImpl): RemoteRepository {
61 | return remoteRepositoryImpl
62 | }
63 |
64 | /**
65 | * providing data manager
66 | */
67 | @Provides @ReposScope
68 | fun provideDataManager(dataManager: AppDataManager): DataManager {
69 | return dataManager
70 | }
71 |
72 | /**
73 | * providing feature presenter
74 | */
75 | @Provides @ReposScope
76 | fun providerReposPresenter(presenter: ReposPresenter): ReposPresenterInteractor {
77 | return presenter
78 | }
79 |
80 | /**
81 | * providing feature presenter
82 | * @purpose: unit testing and mocking purpose for presenter
83 | */
84 | @Provides @ReposScope
85 | fun provideReposPresenter(dataManager: DataManager, schedulerProvider: SchedulerProvider): ReposPresenter {
86 | return ReposPresenter(dataManager, schedulerProvider)
87 | }
88 |
89 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/di/ReposScope.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.di
2 |
3 | import javax.inject.Scope
4 |
5 | /**
6 | * Created by isfaaghyth on 28/04/19.
7 | * github: @isfaaghyth
8 | */
9 | @Scope annotation class ReposScope
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/feature/ReposActivity.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.feature
2 |
3 | import android.util.Log
4 | import app.isfaaghyth.abstraction.base.BaseActivity
5 | import app.isfaaghyth.abstraction.utils.toast
6 | import app.isfaaghyth.repos.R
7 | import app.isfaaghyth.repos.data.entity.Repo
8 | import app.isfaaghyth.repos.di.DaggerReposComponent
9 | import app.isfaaghyth.repos.di.ReposModule
10 | import javax.inject.Inject
11 |
12 | /**
13 | * Created by isfaaghyth on 28/04/19.
14 | * github: @isfaaghyth
15 | */
16 | class ReposActivity: BaseActivity(), ReposView {
17 |
18 | override fun contentView(): Int = R.layout.activity_repos_main
19 | @Inject lateinit var presenter: ReposPresenterInteractor
20 |
21 | override fun initInjector() {
22 | DaggerReposComponent.builder()
23 | .reposModule(ReposModule())
24 | .build()
25 | .inject(this)
26 | }
27 |
28 | override fun initView() {
29 | //init
30 | presenter.attachView(this)
31 |
32 | //hit API
33 | try {
34 | val username = intent?.data?.lastPathSegment as String
35 | presenter.getGithubRepo(username)
36 | } catch (e: Exception) {
37 | toast(e.message)
38 | finish()
39 | }
40 | }
41 |
42 | override fun onDestroy() {
43 | super.onDestroy()
44 | presenter.dettachView()
45 | }
46 |
47 | override fun resultGithubRepo(result: List) {
48 | for (repo: Repo in result) {
49 | Log.d("MyRepo", repo.name)
50 | }
51 | }
52 |
53 | override fun onErrorGetGithubRepo() {
54 | toast("Opps! terjadi kesalahan.")
55 | }
56 |
57 | override fun progressLoader(state: ReposState) {
58 | when (state) {
59 | is ReposState.Progress -> {
60 | //showing progress dialog
61 | }
62 | is ReposState.Complete -> {
63 | //hide progress dialog
64 | }
65 | }
66 | }
67 |
68 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/feature/ReposPresenter.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.feature
2 |
3 | import app.isfaaghyth.abstraction.base.BasePresenter
4 | import app.isfaaghyth.abstraction.utils.rx.SchedulerProvider
5 | import app.isfaaghyth.abstraction.utils.rx.with
6 | import app.isfaaghyth.repos.data.DataManager
7 | import io.reactivex.rxkotlin.subscribeBy
8 | import javax.inject.Inject
9 |
10 | /**
11 | * Created by isfaaghyth on 28/04/19.
12 | * github: @isfaaghyth
13 | */
14 | class ReposPresenter @Inject constructor(
15 | private val dataManager: DataManager,
16 | private val schedulerProvider: SchedulerProvider
17 | ): BasePresenter(), ReposPresenterInteractor {
18 |
19 | override fun getGithubRepo(username: String) {
20 | if (view.isNetworkConnect()) {
21 | view.progressLoader(ReposState.Progress)
22 | subscribe {
23 | dataManager.getGithubRepo(username)
24 | .with(schedulerProvider)
25 | .subscribeBy(
26 | onSuccess = {
27 | view.resultGithubRepo(it)
28 | view.progressLoader(ReposState.Complete)
29 | },
30 | onError = {
31 | view.onErrorGetGithubRepo()
32 | view.progressLoader(ReposState.Progress)
33 | }
34 | )
35 | }
36 | } else {
37 | //when network isn't connected,
38 | //load data from localRepository
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/feature/ReposPresenterInteractor.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.feature
2 |
3 | import app.isfaaghyth.abstraction.base.BasePresenterIntr
4 |
5 | /**
6 | * Created by isfaaghyth on 28/04/19.
7 | * github: @isfaaghyth
8 | */
9 | interface ReposPresenterInteractor: BasePresenterIntr {
10 | /**
11 | * get github repositories by username
12 | * @param: username
13 | */
14 | fun getGithubRepo(username: String)
15 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/feature/ReposState.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.feature
2 |
3 | /**
4 | * Created by isfaaghyth on 29/04/19.
5 | * github: @isfaaghyth
6 | */
7 | sealed class ReposState {
8 | object Progress: ReposState()
9 | object Complete: ReposState()
10 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/java/app/isfaaghyth/repos/feature/ReposView.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos.feature
2 |
3 | import app.isfaaghyth.abstraction.base.BaseView
4 | import app.isfaaghyth.repos.data.entity.Repo
5 |
6 | /**
7 | * Created by isfaaghyth on 28/04/19.
8 | * github: @isfaaghyth
9 | */
10 | interface ReposView: BaseView {
11 | fun resultGithubRepo(result: List)
12 | fun onErrorGetGithubRepo()
13 |
14 | //loader
15 | fun progressLoader(state: ReposState)
16 | }
--------------------------------------------------------------------------------
/feature/repos/src/main/res/layout/activity_repos_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
11 |
12 |
--------------------------------------------------------------------------------
/feature/repos/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | repos
3 |
4 |
--------------------------------------------------------------------------------
/feature/repos/src/test/java/app/isfaaghyth/repos/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.repos;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # Kotlin code style for this project: "official" or "obsolete":
15 | kotlin.code.style=official
16 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/isfaaghyth/arch-pattern-modularization/f6a5f6d6a3e5ce5d0c703fe735d5b7def433ead3/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/network/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/network/build.gradle:
--------------------------------------------------------------------------------
1 | apply from: "$rootDir/common.gradle"
2 |
3 | dependencies {
4 | //android support
5 | implementation AndroidSupport.appCompat
6 | implementation AndroidSupport.design
7 | implementation AndroidSupport.constraint
8 |
9 | //network
10 | implementation Retrofit.retrofit
11 | implementation Retrofit.gsonConverter
12 | implementation Retrofit.rxAdapter
13 | implementation Retrofit.coroutinesAdapter
14 | implementation Retrofit.okHttpLogging
15 | }
--------------------------------------------------------------------------------
/network/proguard-rules.pro:
--------------------------------------------------------------------------------
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
22 |
--------------------------------------------------------------------------------
/network/src/androidTest/java/app/isfaaghyth/network/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.network;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("com.tokopedia.network.test", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/network/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/network/src/main/java/app/isfaaghyth/network/Network.kt:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.network
2 |
3 | import com.google.gson.FieldNamingPolicy
4 | import com.google.gson.GsonBuilder
5 | import com.isfaaghyth.network.BuildConfig
6 | import com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory
7 | import okhttp3.OkHttpClient
8 | import okhttp3.logging.HttpLoggingInterceptor
9 | import retrofit2.Retrofit
10 | import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
11 | import retrofit2.converter.gson.GsonConverterFactory
12 | import java.util.concurrent.TimeUnit
13 |
14 | /**
15 | * Created by isfaaghyth on 20/04/19.
16 | * github: @isfaaghyth
17 | */
18 |
19 | const val REQUEST_TIME_OUT = 60L
20 |
21 | inline fun services(): T {
22 | val gson = GsonBuilder()
23 | /**
24 | * setFieldNamingPolicy()
25 | * for convert lowercase with underscores
26 | * json:`user_name`, you can use `userName` as variable
27 | */
28 | .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
29 | .setLenient()
30 | .create()
31 |
32 | val retrofit = Retrofit.Builder()
33 | .baseUrl(BuildConfig.GITHUB_URL)
34 | .addConverterFactory(GsonConverterFactory.create(gson))
35 | .addCallAdapterFactory(RxJava2CallAdapterFactory.create()).build()
36 |
37 | return retrofit.create(T::class.java)
38 | }
39 |
40 | inline fun serviceCoroutines(): T {
41 | val gson = GsonBuilder()
42 | /**
43 | * setFieldNamingPolicy()
44 | * for convert lowercase with underscores
45 | * json:`user_name`, you can use `userName` as variable
46 | */
47 | .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)
48 | .setLenient()
49 | .create()
50 |
51 | val retrofit = Retrofit.Builder()
52 | .baseUrl(BuildConfig.GITHUB_URL)
53 | .addConverterFactory(GsonConverterFactory.create(gson))
54 | .addCallAdapterFactory(CoroutineCallAdapterFactory()).build()
55 |
56 | return retrofit.create(T::class.java)
57 | }
--------------------------------------------------------------------------------
/network/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | network
3 |
4 |
--------------------------------------------------------------------------------
/network/src/test/java/app/isfaaghyth/network/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.network;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | //feature
2 | include Modules.app
3 | include Modules.repos
4 | include Modules.gists
5 |
6 | //common
7 | include Modules.abstraction
8 | include Modules.uicomponent
9 | include Modules.network
--------------------------------------------------------------------------------
/uicomponent/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/uicomponent/build.gradle:
--------------------------------------------------------------------------------
1 | apply from: "$rootDir/common.gradle"
2 |
3 | dependencies {
4 | //android support
5 | implementation AndroidSupport.appCompat
6 | implementation AndroidSupport.design
7 | implementation AndroidSupport.constraint
8 | }
--------------------------------------------------------------------------------
/uicomponent/proguard-rules.pro:
--------------------------------------------------------------------------------
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
22 |
--------------------------------------------------------------------------------
/uicomponent/src/androidTest/java/app/isfaaghyth/uicomponent/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.uicomponent;
2 |
3 | import android.content.Context;
4 | import android.support.test.InstrumentationRegistry;
5 | import android.support.test.runner.AndroidJUnit4;
6 |
7 | import org.junit.Test;
8 | import org.junit.runner.RunWith;
9 |
10 | import static org.junit.Assert.*;
11 |
12 | /**
13 | * Instrumented test, which will execute on an Android device.
14 | *
15 | * @see Testing documentation
16 | */
17 | @RunWith(AndroidJUnit4.class)
18 | public class ExampleInstrumentedTest {
19 | @Test
20 | public void useAppContext() {
21 | // Context of the app under test.
22 | Context appContext = InstrumentationRegistry.getTargetContext();
23 |
24 | assertEquals("app.isfaaghyth.uicomponent.test", appContext.getPackageName());
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/uicomponent/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
--------------------------------------------------------------------------------
/uicomponent/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | @color/white
4 | @color/greenPrimary
5 | @color/semiBlack
6 |
7 | #FFB73E
8 | #FFB236
9 |
10 | #e74c3c
11 |
12 | #F95B85
13 | #F71753
14 |
15 | #D2D6DF
16 | #898E9B
17 |
18 | #34495E
19 | #FFFFFF
20 |
21 | #005ED8
22 | #0047BB
23 |
24 | #2ECC71
25 | #27AE60
26 |
27 | #E9EFF4
28 |
29 | #fafafa
30 | #f5f5f5
31 | #eeeeee
32 | #e0e0e0
33 | #bdbdbd
34 | #9e9e9e
35 | #757575
36 | #616161
37 | #424242
38 | #212121
39 |
--------------------------------------------------------------------------------
/uicomponent/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 8dp
4 | 12dp
5 | 14dp
6 | 16dp
7 | 18dp
8 | 20dp
9 | 24dp
10 |
11 | 8sp
12 | 12sp
13 | 14sp
14 | 16sp
15 | 18sp
16 | 20sp
17 | 24sp
18 |
--------------------------------------------------------------------------------
/uicomponent/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | uicomponent
3 |
4 |
--------------------------------------------------------------------------------
/uicomponent/src/test/java/app/isfaaghyth/uicomponent/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package app.isfaaghyth.uicomponent;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/update.sh:
--------------------------------------------------------------------------------
1 | git add -A
2 | git commit -m "$1"
3 | git push origin master
4 |
--------------------------------------------------------------------------------