Skip to content

Commit 34f806b

Browse files
Merge pull request #8 from developer-kaczmarek/feature/compose_version
Версия 3.0: - Обновлен дизайн; - Добавлена возможность настройки темы приложения; - Добавлена кнопка реестра на Главном экране для просмотра деталей сессии без сохранения в историю; - Добавили экран Детализации сессии, в котором отображается общая сумма, общее количество купюр и информация по конкретным номиналам; - Добавлена раздел Политика конфиденциальности;
2 parents 42b1afd + 1a5a862 commit 34f806b

File tree

235 files changed

+5298
-4325
lines changed

Some content is hidden

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

235 files changed

+5298
-4325
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Калькулятор купюр
2-
[![LICENSE](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/images/downloads.svg)](https://play.google.com/store/apps/details?id=kaczmarek.moneycalculator ) [![LICENSE](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/images/license-GPLv3-blue.svg)](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/LICENSE)
2+
[![LICENSE](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/images/license-GPLv3-blue.svg)](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/LICENSE)
33

44
"Калькулятор купюр" - удобное приложение, предназначенное для подсчета наличности в кассе или сейфе и значительно облегчающее работу кассира. В новой версии добавлена история подсчетов.
55

@@ -11,7 +11,8 @@
1111
* [Версия 1.2](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/downloads/money_calculator_v1_2.apk)
1212

1313
## Как это выглядит?
14-
![UI](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/images/UI.png)
14+
![UI](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/images/UI_V3.png)
15+
![UI_THEMES](https://github.com/developer-kaczmarek/MoneyCalculator/blob/master/images/UI_V3_THEMES.png)
1516

1617
## Баги / Вопросы / Предложения
1718

app/build.gradle

Lines changed: 69 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1-
apply plugin: 'com.android.application'
2-
3-
apply plugin: 'kotlin-android'
4-
5-
apply plugin: 'kotlin-android-extensions'
6-
7-
apply plugin: 'kotlin-kapt'
1+
plugins {
2+
id 'com.android.application'
3+
id 'kotlin-android'
4+
id 'kotlinx-serialization'
5+
id 'kotlin-parcelize'
6+
id 'kotlin-kapt'
7+
}
88

99
android {
10-
compileSdkVersion 29
11-
buildToolsVersion "29.0.2"
10+
compileSdk target_sdk_version
11+
1212
defaultConfig {
1313
applicationId "kaczmarek.moneycalculator"
14-
minSdkVersion 21
15-
targetSdkVersion 29
16-
versionCode 4
17-
versionName "2.0"
14+
minSdk min_sdk_version
15+
targetSdk target_sdk_version
16+
versionCode 5
17+
versionName "3.0"
18+
1819
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20+
vectorDrawables {
21+
useSupportLibrary true
22+
}
1923
}
24+
2025
buildTypes {
2126
release {
2227
minifyEnabled false
@@ -25,75 +30,68 @@ android {
2530
}
2631

2732
compileOptions {
33+
coreLibraryDesugaringEnabled true
2834
sourceCompatibility JavaVersion.VERSION_1_8
2935
targetCompatibility JavaVersion.VERSION_1_8
3036
}
31-
}
3237

33-
def verMoxy = "2.0.2"
34-
def verRoom = "2.2.3"
35-
def verDagger = "2.25.2"
36-
def verCoroutines = "1.2.2"
37-
def navVersion = "2.1.0"
38-
def stechoVersion = '1.5.1'
39-
dependencies {
40-
implementation fileTree(dir: 'libs', include: ['*.jar'])
41-
42-
// Test
43-
testImplementation 'junit:junit:4.12'
44-
androidTestImplementation 'androidx.test:runner:1.2.0'
45-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
46-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
47-
48-
// Kotlin-stdlib
49-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
50-
51-
// AndroidX libraries
52-
implementation 'androidx.core:core-ktx:1.1.0'
53-
implementation 'androidx.appcompat:appcompat:1.1.0'
54-
implementation 'androidx.recyclerview:recyclerview:1.1.0'
55-
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
56-
implementation 'androidx.cardview:cardview:1.0.0'
57-
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
58-
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
38+
sourceSets {
39+
main.kotlin.srcDirs += "src/main/kotlin"
40+
debug.kotlin.srcDirs += "src/debug/kotlin"
41+
androidTest.kotlin.srcDirs += "src/androidTest/kotlin"
42+
test.kotlin.srcDirs += "src/test/kotlin"
43+
}
5944

60-
// Room
61-
implementation "androidx.room:room-runtime:$verRoom"
62-
implementation "androidx.room:room-ktx:$verRoom"
45+
kotlinOptions {
46+
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
47+
freeCompilerArgs += "-Xopt-in=kotlin.ExperimentalStdlibApi"
48+
freeCompilerArgs += "-Xopt-in=kotlin.time.ExperimentalTime"
49+
}
6350

64-
// Navigation
65-
implementation "androidx.navigation:navigation-fragment-ktx:$navVersion"
66-
implementation "androidx.navigation:navigation-ui-ktx:$navVersion"
51+
buildFeatures {
52+
compose true
53+
}
6754

68-
//Google material
69-
implementation 'com.google.android.material:material:1.0.0'
55+
composeOptions {
56+
kotlinCompilerExtensionVersion libs.versions.compose.get()
57+
}
7058

71-
//Moxy
72-
implementation "com.github.moxy-community:moxy:$verMoxy"
73-
implementation "com.github.moxy-community:moxy-androidx:$verMoxy"
74-
implementation "com.github.moxy-community:moxy-material:$verMoxy"
59+
packagingOptions {
60+
resources {
61+
excludes += '/META-INF/{AL2.0,LGPL2.1}'
62+
}
63+
}
64+
}
7565

76-
//Kotlin coroutines
77-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$verCoroutines"
78-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$verCoroutines"
66+
dependencies {
67+
coreLibraryDesugaring libs.android.desugar
7968

80-
//Dagger 2
81-
implementation "com.google.dagger:dagger:$verDagger"
82-
implementation "com.google.dagger:dagger-android:$verDagger"
83-
annotationProcessor "com.google.dagger:dagger-android-processor:$verDagger"
69+
// Kotlin
70+
implementation libs.kotlin.datetime
71+
implementation libs.coroutines.core
72+
implementation libs.coroutines.android
8473

85-
//Gson
86-
implementation 'com.google.code.gson:gson:2.8.5'
74+
// UI
75+
implementation libs.compose.ui
76+
implementation libs.compose.material
77+
implementation libs.activity.compose
78+
implementation libs.splashscreen
79+
debugImplementation libs.compose.tooling
8780

88-
//Stecho
89-
implementation "com.facebook.stetho:stetho:$stechoVersion"
81+
// Architecture
82+
implementation libs.bundles.sesame
83+
implementation libs.bundles.decompose
9084

91-
//TapTargetView
92-
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.13.0'
85+
// DI
86+
implementation libs.koin.android
9387

94-
//Kapts
95-
kapt "com.github.moxy-community:moxy-compiler:$verMoxy"
96-
kapt "com.google.dagger:dagger-android-processor:$verDagger"
97-
kapt "com.google.dagger:dagger-compiler:$verDagger"
98-
kapt "androidx.room:room-compiler:$verRoom"
99-
}
88+
// Serialization
89+
implementation libs.serialization.json
90+
91+
// Accompanist
92+
implementation libs.accompanist.systemuicontroller
93+
94+
// Room
95+
implementation libs.bundles.room
96+
kapt libs.room.compiler
97+
}

app/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile

app/src/androidTest/java/com/kaczmarek/moneycalculator/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

app/src/main/AndroidManifest.xml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,36 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
xmlns:tools="http://schemas.android.com/tools"
44
package="kaczmarek.moneycalculator">
5+
56
<uses-permission android:name="android.permission.WAKE_LOCK"/>
67

78
<application
8-
android:name=".BaseApplication"
9-
android:allowBackup="false"
9+
android:name=".App"
10+
tools:targetApi="n"
11+
android:allowBackup="true"
1012
android:icon="@mipmap/ic_launcher"
1113
android:label="@string/app_name"
1214
android:roundIcon="@mipmap/ic_launcher_round"
1315
android:supportsRtl="true"
14-
android:theme="@style/AppTheme"
15-
android:resizeableActivity="false"
16-
tools:ignore="GoogleAppIndexingWarning"
17-
tools:targetApi="n">
18-
<activity android:name=".ui.main.ActivityMain"
16+
android:theme="@style/AppTheme">
17+
18+
<activity
19+
android:name=".MainActivity"
20+
tools:ignore="LockedOrientationActivity,NonResizeableActivity"
21+
android:configChanges="density|fontScale|keyboard|keyboardHidden|layoutDirection|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|touchscreen|uiMode"
22+
android:exported="true"
23+
android:launchMode="singleTask"
1924
android:windowSoftInputMode="stateAlwaysHidden"
20-
android:screenOrientation="portrait">
21-
<intent-filter>
22-
<action android:name="android.intent.action.MAIN" />
25+
android:screenOrientation="portrait"
26+
android:resizeableActivity="false"
27+
android:theme="@style/SplashTheme">
2328

24-
<category android:name="android.intent.category.LAUNCHER" />
29+
<intent-filter>
30+
<action android:name="android.intent.action.MAIN"/>
31+
<category android:name="android.intent.category.LAUNCHER"/>
2532
</intent-filter>
2633
</activity>
34+
2735
</application>
2836

2937
</manifest>

app/src/main/assets/InitData.json

Lines changed: 0 additions & 123 deletions
This file was deleted.
Binary file not shown.
7.66 KB
Loading

0 commit comments

Comments
 (0)