Skip to content

Commit

Permalink
Merge pull request #6 from burnoo/update-libs-04-2023
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
burnoo authored Apr 2, 2023
2 parents 0d4188c + 3560b10 commit f0d0bd7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Jetpack Compose library for remembering state persistently, based on DataStore p
Library is distributed through Maven Central. To use it you need to add following dependancy to your module `build.gradle`:
```groovy
dependencies {
implementation 'dev.burnoo:compose-remember-preference:1.0.0'
implementation 'dev.burnoo:compose-remember-preference:1.0.1'
}
```
To store state in `@Composable` when app is running you would use `remember { mutableStateOf(x) }`. The library comes with the same functionality, but supports data persistence, saving and restoring data using DataStore preferences. It has it owns functions that returns `MutableState`.
Expand Down
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
buildscript {
ext {
lib_version = '1.0.0'
compose_version = '1.2.1'
compose_compiler_version = '1.3.2'
lib_version = '1.0.1'
compose_version = '1.4.0'
compose_compiler_version = '1.4.4'
datastore_version = '1.0.0'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20"
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10"
}
}

plugins {
id 'maven-publish'
}

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
5 changes: 3 additions & 2 deletions lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ plugins {
apply from: 'maven-publishing.gradle'

android {
compileSdkVersion 33
buildToolsVersion "30.0.3"
compileSdk = 33
buildToolsVersion = "33.0.1"

defaultConfig {
minSdkVersion 21
Expand Down Expand Up @@ -38,6 +38,7 @@ android {
composeOptions {
kotlinCompilerExtensionVersion compose_compiler_version
}
namespace 'dev.burnoo.compose.rememberpreference'
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="dev.burnoo.compose.rememberpreference"/>
<manifest />
13 changes: 7 additions & 6 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ plugins {
}

android {
compileSdkVersion 33
buildToolsVersion "30.0.3"
compileSdk = 33
buildToolsVersion = "33.0.1"

defaultConfig {
applicationId "dev.burnoo.compose.rememberpreference.sample"
Expand Down Expand Up @@ -36,17 +36,18 @@ android {
composeOptions {
kotlinCompilerExtensionVersion compose_compiler_version
}
namespace 'dev.burnoo.compose.rememberpreference.sample'
}

dependencies {

implementation project(":lib")
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.8.0'
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.ui:ui-tooling:$compose_version"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
implementation 'androidx.activity:activity-compose:1.6.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
implementation 'androidx.activity:activity-compose:1.7.0'
}
3 changes: 1 addition & 2 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.burnoo.compose.rememberpreference.sample">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand Down

0 comments on commit f0d0bd7

Please sign in to comment.