Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarr21 committed Nov 27, 2019
0 parents commit 286f8f0
Show file tree
Hide file tree
Showing 86 changed files with 2,445 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[*.{kt,kts}]
# possible values: number (e.g. 2), "unset" (makes ktlint ignore indentation completely)
indent_size=2
# possible values: number (e.g. 2), "unset"
continuation_indent_size=2
# true (recommended) / false
insert_final_newline=unset
# possible values: number (e.g. 120) (package name, imports & comments are ignored), "off"
# it's automatically set to 100 on `ktlint --android ...` (per Android Kotlin Style Guide)
max_line_length=120
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
build
124 changes: 124 additions & 0 deletions .idea/codeStyles/Project.xml

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

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

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

4 changes: 4 additions & 0 deletions .idea/encodings.xml

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

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

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

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

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

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

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# AppDialer

Work in progress...

<img src="assets/images/appdialer.png" width="320">
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
79 changes: 79 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
plugins {
id("com.android.application")
kotlin("android")
kotlin("kapt")
}

android {
compileSdkVersion(deps.build.compileSdkVersion)
buildToolsVersion(deps.build.buildToolsVersion)

defaultConfig {
applicationId = "io.github.jbarr21.appdialer"
minSdkVersion(deps.build.minSdkVersion)
targetSdkVersion(deps.build.targetSdkVersion)
versionCode = deps.build.versionCode
versionName = deps.build.versionName

multiDexEnabled = false
the<BasePluginConvention>().archivesBaseName = "appdialer"
vectorDrawables.useSupportLibrary = true
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
}

dependencies {
kapt("androidx.room:room-compiler:2.2.2")
kapt("com.github.bumptech.glide:compiler:4.8.0")
kapt("com.uber.motif:motif-compiler:0.0.18")

implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${deps.versions.kotlin}")
implementation("androidx.appcompat:appcompat:1.1.0")
implementation("androidx.constraintlayout:constraintlayout:1.1.3")
implementation("androidx.core:core-ktx:1.1.0")
implementation("androidx.lifecycle:lifecycle-extensions:2.1.0")
implementation("androidx.lifecycle:lifecycle-runtime:2.1.0")
implementation("androidx.palette:palette:1.0.0")
implementation("androidx.recyclerview:recyclerview:1.1.0")
implementation("androidx.room:room-ktx:2.2.2")
implementation("androidx.room:room-runtime:2.2.2")
implementation("androidx.room:room-rxjava2:2.2.2")
implementation("androidx.transition:transition:1.2.0")
implementation("com.github.bumptech.glide:glide:4.8.0")
implementation("com.github.Commit451:ModalBottomSheetDialogFragment:1.1.0")
implementation("com.github.andrefrsousa:SuperBottomSheet:1.3.0")
implementation("com.google.android.material:material:1.1.0-beta02")
implementation("com.google.guava:guava:27.0.1-android")
implementation("com.uber.motif:motif:0.0.18")
implementation("com.jakewharton.timber:timber:4.7.1")
implementation("com.squareup.picasso:picasso:2.71828")
implementation("com.uber.autodispose:autodispose:1.1.0")
implementation("com.uber.autodispose:autodispose-android-archcomponents-ktx:1.1.0")
implementation("com.uber.autodispose:autodispose-lifecycle-ktx:1.1.0")
implementation("io.reactivex.rxjava2:rxjava:2.2.9")
implementation("io.reactivex.rxjava2:rxandroid:2.1.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0")

debugImplementation("com.facebook.flipper:flipper:0.22.0")
debugImplementation("com.facebook.soloader:soloader:0.6.0")
debugImplementation("com.facebook.stetho:stetho:1.5.1")
releaseImplementation("com.facebook.flipper:flipper-noop:0.22.0")

testImplementation("junit:junit:4.12")
testImplementation("com.google.truth:truth:0.44")

androidTestImplementation("androidx.test:runner:1.2.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.2.0")
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.github.jbarr21.appdialer

import androidx.test.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getTargetContext()
assertEquals("io.github.jbarr21.appdialer", appContext.packageName)
}
}
5 changes: 5 additions & 0 deletions app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
</manifest>
Loading

0 comments on commit 286f8f0

Please sign in to comment.