Skip to content

Commit

Permalink
Setup bottom bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhriya committed Nov 22, 2020
1 parent 9850e87 commit 59b0d65
Show file tree
Hide file tree
Showing 164 changed files with 5,342 additions and 1,222 deletions.
57 changes: 0 additions & 57 deletions app/app-dependencies.gradle

This file was deleted.

38 changes: 0 additions & 38 deletions app/build.gradle

This file was deleted.

99 changes: 99 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
plugins {
id("com.android.application")
kotlin("android")
kotlin("android.extensions")
kotlin("kapt")
id("kotlin-android")
id("dagger.hilt.android.plugin")
}

android {
compileSdkVersion(Apps.compileSdk)
buildToolsVersion = Apps.buildToolsVersion

defaultConfig {
applicationId = "com.biofourmis.ipmpatient"
minSdkVersion(Apps.minSdk)
targetSdkVersion(Apps.targetSdk)
versionCode = Apps.versionCode
versionName = Apps.versionName
multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
getByName("debug") {
isMinifyEnabled = false
isDebuggable = true
applicationIdSuffix = ".debug"
versionNameSuffix = "-dev"
}
getByName("release") {
isMinifyEnabled = true
isDebuggable = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
buildFeatures {
dataBinding = true
viewBinding = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
}

dependencies {
implementation(Libs.kotlin)
implementation(Libs.appcompat)
implementation(Libs.coreKtx)
implementation(Libs.constraintLayout)
implementation(Libs.materialDesign)
// Multidex
implementation(Libs.multiDex)
// Coroutine
implementation(Libs.coroutineCore)
implementation(Libs.coroutineAndroid)
// Lifecycle components
implementation(Libs.lifecycleComponentExtension)
implementation("org.jetbrains.kotlin:kotlin-stdlib:${rootProject.extra["kotlin_version"]}")
implementation("androidx.legacy:legacy-support-v4:1.0.0")
kapt(Libs.lifecycleComponentExtension)
// Viewmodel
implementation(Libs.viewmodel)
// Recyclerview
implementation(Libs.recyclerView)
// Glide
implementation(Libs.glide)
// Lottie
implementation(Libs.lottie)
// Acronym view
implementation(Libs.acronymView)
// Bottom nav bar
implementation(Libs.bottomBar)
// Navigation
implementation(Libs.navComponentFragment)
implementation(Libs.navComponentUi)
// Viewpager
implementation(Libs.viewPager)
// Smarttab layout utils
implementation(Libs.smartTabLayoutUtils)
// Hilt
implementation(Libs.hiltCore)
implementation(Libs.hiltCommon)
implementation(Libs.hiltViewModelLifecycle)
kapt(Libs.hiltDaggerAndroidCompiler)
kapt(Libs.hiltCompiler)

implementation(project(":commons"))
implementation(project(":datasource"))


}
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
# proguardFiles setting in build.gradle.kts.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.abhriya.callblocker">
package="com.abhriya.callblockr">

<uses-permission android:name="android.permission.ANSWER_PHONE_CALLS" />
<uses-permission android:name="android.permission.CALL_PHONE" />
Expand All @@ -11,15 +11,15 @@
<uses-permission android:name="android.permission.READ_CONTACTS" />

<application
android:name=".CallBlockerApplication"
android:name="com.abhriya.callblockr.CallBlockerApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".ui.MainActivity"
android:name="com.abhriya.callblockr.ui.MainActivity"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -29,15 +29,15 @@
</activity>

<receiver
android:name="com.abhriya.callblocker.broadcastreceiver.PhoneStateChangeBroadcastReceiver"
android:name="com.abhriya.callblockr.broadcastreceiver.PhoneStateChangeBroadcastReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
</receiver>

<service android:name=".service.ForegroundKeepAppAliveService" />
<service android:name="com.abhriya.callblockr.service.ForegroundKeepAppAliveService" />
</application>

</manifest>

This file was deleted.

15 changes: 0 additions & 15 deletions app/src/main/java/com/abhriya/callblocker/di/ActivityBuilder.kt

This file was deleted.

37 changes: 0 additions & 37 deletions app/src/main/java/com/abhriya/callblocker/di/AppComponent.kt

This file was deleted.

28 changes: 0 additions & 28 deletions app/src/main/java/com/abhriya/callblocker/di/AppModule.kt

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/java/com/abhriya/callblocker/di/BroadcastModule.kt

This file was deleted.

Loading

0 comments on commit 59b0d65

Please sign in to comment.