Skip to content

Commit

Permalink
v2.4.1: Automated library publishing to sonatype, updated dependencie…
Browse files Browse the repository at this point in the history
…s & maintenance, cumulative updates released
  • Loading branch information
cioccarellia committed Feb 28, 2024
1 parent 251c7a8 commit eaadbdc
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 22 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<p align="center">
<a href="https://search.maven.org/artifact/com.github.cioccarellia/ksprefs"><img src="https://img.shields.io/maven-central/v/com.github.cioccarellia/ksprefs.svg?label=Maven%20Central" alt="Download from MavenCentral"></a>
<a href="https://app.codacy.com/manual/cioccarellia/ksprefs/dashboard"><img src="https://api.codacy.com/project/badge/Grade/f10cdbdbe7b84d0ea7a03b755c104e03" alt="Codacy"></a>
<a href="https://kotlinlang.org/docs/releases.html"><img src="https://img.shields.io/badge/kotlin-1.9.20-orange.svg" alt="Kotlin"></a>
<a href="https://kotlinlang.org/docs/releases.html"><img src="https://img.shields.io/badge/kotlin-1.9.22-orange.svg" alt="Kotlin"></a>
<a href="https://source.android.com/setup/start/build-numbers"><img src="https://img.shields.io/badge/min-19-00e676.svg" alt="Android Min Sdk"></a>
<a href="https://source.android.com/setup/start/build-numbers"><img src="https://img.shields.io/badge/compile-33-00e676.svg" alt="Android Compile Version"></a>
<a href="https://github.com/cioccarellia/ksprefs/blob/master/LICENSE.md"><img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License"></a>
Expand All @@ -17,7 +17,7 @@

```gradle
dependencies {
implementation 'com.github.cioccarellia:ksprefs:2.4.0'
implementation 'com.github.cioccarellia:ksprefs:2.4.1'
}
```
</details>
Expand All @@ -26,7 +26,7 @@ dependencies {

```gradle
dependencies {
implementation("com.github.cioccarellia:ksprefs:2.4.0")
implementation("com.github.cioccarellia:ksprefs:2.4.1")
}
```
</details>
Expand All @@ -37,18 +37,18 @@ dependencies {
<dependency>
<groupId>com.github.cioccarellia</groupId>
<artifactId>ksprefs</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<type>pom</type>
</dependency>
```
</details>

- ⚡️ Powerful SharedPreferences wrapper & API.
- 🚀 Easy to pick up & use right away.
- 🧪 Tested and production-ready.
- ⚙️ Fully customizable behaviour.
- 🔒 Built-in cryptography & decoding engines (PlainText, Base64, AES-CBC, AES-ECB, Android KeyStore + AES-GCM / RSA KeyPair).
- 🗂 Extensive type & enum support.
- Powerful SharedPreferences wrapper & API.
- Easy to pick up & use right away.
- Tested and production-ready.
- Fully customizable behaviour.
- Built-in cryptography & decoding engines (PlainText, Base64, AES-CBC, AES-ECB, Android KeyStore + AES-GCM / RSA KeyPair).
- Extensive type & enum support.

```kotlin
val prefs = KsPrefs(applicationContext)
Expand Down
17 changes: 17 additions & 0 deletions assemble.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
##
# Designed and developed by Andrea Cioccarelli (@cioccarellia)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

./gradlew library:assembleRelease --warning-mode all
18 changes: 18 additions & 0 deletions assemble_and_publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
##
# Designed and developed by Andrea Cioccarelli (@cioccarellia)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


./gradlew library:assembleRelease --warning-mode all && ./gradlew library:publishReleasePublicationToSonatypeRepository
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apply from: rootProject.file("gradle/versions_plugin_config.gradle")
apply plugin: "io.codearte.nexus-staging"

buildscript {
ext.kotlin_version = "1.9.20"
ext.kotlin_version = "1.9.22"

repositories {
google()
Expand Down
6 changes: 3 additions & 3 deletions docs/pages/overview/dependencies_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ repositories {

``` java
dependencies {
implementation "com.github.cioccarellia:ksprefs:2.4.0"
implementation "com.github.cioccarellia:ksprefs:2.4.1"
}
```

??? gradle "Kotlin DSL"

``` kotlin
dependencies {
implementation("com.github.cioccarellia:ksprefs:2.4.0")
implementation("com.github.cioccarellia:ksprefs:2.4.1")
}
```

Expand All @@ -44,7 +44,7 @@ repositories {
<dependency>
<groupId>com.github.cioccarellia</groupId>
<artifactId>ksprefs</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<type>pom</type>
</dependency>
```
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official

# todo remove
android.defaults.buildfeatures.buildconfig=true


android.nonTransitiveRClass=false
android.nonFinalResIds=false
org.gradle.configuration-cache=true
8 changes: 4 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ ext {
apply from: rootProject.file("gradle/android_library_config.gradle")

dependencies {
implementation "androidx.annotation:annotation:1.6.0"
implementation "androidx.annotation:annotation:1.7.1"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"

testImplementation "junit:junit:4.13.2"
testImplementation "androidx.test:core:1.5.0"
testImplementation "org.mockito:mockito-core:5.5.0"
testImplementation "org.robolectric:robolectric:4.10.3"
testImplementation "com.google.truth:truth:1.1.5"
testImplementation "org.mockito:mockito-core:5.10.0"
testImplementation "org.robolectric:robolectric:4.11.1"
testImplementation "com.google.truth:truth:1.4.0"
}

android {
Expand Down
6 changes: 3 additions & 3 deletions library_info.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

ext.library = [
min_sdk : 19,
compile_sdk : 33,
compile_sdk : 34,

artifact : "ksprefs",

publish_group : "com.github.cioccarellia",
publish_version : "2.4.0",
publish_version_code: 240,
publish_version : "2.4.1",
publish_version_code: 241,

description : "Kotlin SharedPreferences, Simplified",
website : "https://github.com/cioccarellia/ksprefs"
Expand Down
2 changes: 1 addition & 1 deletion test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies {

implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "com.google.android.material:material:1.9.0"
implementation "com.google.android.material:material:1.11.0"
implementation "com.android.support.constraint:constraint-layout:2.0.4"
}

Expand Down

0 comments on commit eaadbdc

Please sign in to comment.