Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #6

Merged
merged 8 commits into from
Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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