Skip to content

Commit

Permalink
Merge pull request #38 from alexandr7035/develop
Browse files Browse the repository at this point in the history
Release v1.0

- Refactoring to clean
- New design
- Change password feature
  • Loading branch information
alexandr7035 authored Jan 15, 2022
2 parents 8264c30 + 144b575 commit 828e9a5
Show file tree
Hide file tree
Showing 142 changed files with 2,047 additions and 856 deletions.
9 changes: 6 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ android {
versionName "0.2-alpha"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

buildConfigField("String", "API_KEY", API_KEY)
}

buildTypes {
Expand Down Expand Up @@ -61,9 +59,11 @@ android {
}

dependencies {
implementation project(path:":domain")
implementation project(path: ":data")

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
Expand Down Expand Up @@ -95,4 +95,7 @@ dependencies {
// Coil
implementation "io.coil-kt:coil:1.4.0"
implementation "io.coil-kt:coil-svg:1.4.0"

// CircleImageView
implementation 'de.hdodenhof:circleimageview:3.1.0'
}
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<uses-permission android:name="android.permission.INTERNET"/>

<application
android:allowBackup="false"
android:name=".core.App"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/by/alexandr7035/affinidi_id/core/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package by.alexandr7035.affinidi_id.core

import android.app.Application
import by.alexandr7035.affinidi_id.BuildConfig
import dagger.hilt.android.AndroidEntryPoint
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package by.alexandr7035.affinidi_id.core.extensions

import android.content.ClipData
import android.content.ClipboardManager
import android.widget.TextView
import androidx.core.content.ContextCompat

fun TextView.copyToClipboard(clipLabel: String) {
val clipBoard = ContextCompat.getSystemService(context, ClipboardManager::class.java)
clipBoard?.setPrimaryClip(
ClipData.newPlainText(
clipLabel,
text.toString()
)
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SingleLiveEvent<T>() : MutableLiveData<T>() {
}

// Observe the internal MutableLiveData
super.observe(owner, Observer<T> { t ->
super.observe(owner, { t ->
if (pending.compareAndSet(true, false)) {
observer.onChanged(t)
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 828e9a5

Please sign in to comment.