Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
# Conflicts:
#	app/build.gradle
#	app/src/main/java/com/garnegsoft/hubs/ui/screens/main/ArticlesScreenViewModel.kt
#	app/src/main/java/com/garnegsoft/hubs/ui/screens/main/MyFeedFilter.kt
  • Loading branch information
Garneg committed Dec 17, 2023
2 parents 8445a01 + 545e1f3 commit 2f133dc
Show file tree
Hide file tree
Showing 116 changed files with 6,825 additions and 4,108 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

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

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Хабы 🇷🇺 | [English version 🇬🇧](https://github.com/Garneg/Hubs/blob/master/README_EN.md)
# Хабы
Неофициальный мобильный клиент для Хабра. Создан для изучения Jetpack Compose и Android.

### Скриншоты
Expand Down
42 changes: 26 additions & 16 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ plugins {
id "kotlin-kapt"
}

def getDate() {
def date = new Date()
def formattedDate = date.format('HHmmddMMyy')
return formattedDate
}

android {
namespace "com.garnegsoft.hubs"
compileSdk 34
Expand All @@ -13,8 +19,8 @@ android {
applicationId "com.garnegsoft.hubs"
minSdk 23
targetSdk 34
versionCode 12
versionName "2.3.4"
versionCode 13
versionName "2.4.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand All @@ -26,6 +32,7 @@ android {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"

}
benchmark {
proguardFiles "proguard-rules.pro"
Expand All @@ -34,9 +41,9 @@ android {
debuggable false
}
debug {

debuggable true
applicationIdSuffix ".debug"
// applicationIdSuffix ".debug"
versionNameSuffix "-build" + getDate()
}

}
Expand All @@ -51,7 +58,7 @@ android {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion "1.4.7"
kotlinCompilerExtensionVersion "1.5.3"
}
packagingOptions {
resources {
Expand All @@ -64,27 +71,29 @@ kapt {
}

dependencies {
var m3version = "1.1.1"
var m3version = "1.1.2"
implementation "androidx.compose.material3:material3:$m3version"

implementation "androidx.work:work-runtime-ktx:2.9.0"

implementation "androidx.profileinstaller:profileinstaller:1.3.1"

implementation "androidx.compose.runtime:runtime-livedata:1.5.0"
implementation "androidx.compose.runtime:runtime-livedata:1.5.4"

implementation "me.saket.telephoto:zoomable-image-coil:0.4.0"

implementation "org.jsoup:jsoup:1.16.1"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.5.1"
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "androidx.core:core-ktx:1.10.1"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
implementation "androidx.activity:activity-compose:1.7.2"
implementation "androidx.core:core-ktx:1.12.0"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2"
implementation "androidx.activity:activity-compose:1.8.1"
implementation "androidx.compose.ui:ui:$compose_ui_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
implementation "androidx.compose.material:material:1.5.0"
implementation "androidx.compose.material:material:1.5.4"
implementation "com.squareup.okhttp3:okhttp:4.11.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'

implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"

Expand All @@ -98,14 +107,15 @@ dependencies {
implementation "io.coil-kt:coil-svg:$coil_version"

implementation "org.jetbrains.kotlin:kotlin-reflect:1.9.0"
implementation "androidx.browser:browser:1.6.0"
implementation "com.google.android.material:material:1.9.0"
implementation "androidx.browser:browser:1.7.0"
implementation "com.google.android.material:material:1.10.0"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.core:core-ktx:1.10.1"
implementation "androidx.core:core-ktx:1.12.0"
implementation "androidx.coordinatorlayout:coordinatorlayout:1.2.0"

implementation "androidx.datastore:datastore-preferences:1.0.0"
implementation "androidx.room:room-ktx:$room_version"
implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"

testImplementation "junit:junit:4.13.2"
Expand Down
3 changes: 2 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@
}

# @Serializable and @Polymorphic are used at runtime for polymorphic serialization.
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault
-dontobfuscate
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ class ExampleInstrumentedTest {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.garnegsoft.hubs", appContext.packageName)


}
}
15 changes: 15 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
android:name="android.app.lib_name"
android:value="" />

<meta-data
android:name="android.app.shortcuts"
android:resource="@xml/shortcuts"/>

<intent-filter>
<action android:name="android.intent.action.VIEW" />

Expand All @@ -50,6 +54,17 @@
android:name=".AuthActivity"
android:exported="false"
android:theme="@style/Theme.Hubs.Auth" />

<provider
android:name=".ui.screens.settings.LogFileProvider"
android:authorities="com.garnegsoft.hubs.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/log_file_path" />
</provider>

</application>

</manifest>
Loading

0 comments on commit 2f133dc

Please sign in to comment.