Skip to content

Commit

Permalink
Merge pull request #255 from marcauberer/dev
Browse files Browse the repository at this point in the history
Release of version 1.3.4
  • Loading branch information
marcauberer committed Mar 5, 2022
2 parents ee00a38 + c1753d7 commit c2fca8c
Show file tree
Hide file tree
Showing 82 changed files with 231 additions and 166 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# Workflow for Android CI debug build

name: Android CI

on:
push:
pull_request:
branches: [ main, beta, dev ]
branches:
- main
- beta
- dev

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Make gradlew executable
run: chmod +x ./gradlew
run: chmod +x gradlew

- name: Android Build
run: ./gradlew assembleDebug
run: ./gradlew build
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Workflow for Android CI release

name: Publish to Sonatype

on:
Expand All @@ -12,11 +11,11 @@ jobs:
name: Release build and publish
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Make gradlew executable
run: chmod +x ./gradlew
run: chmod +x gradlew

- name: Set up JDK 11
uses: actions/setup-java@v2
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020-2021 Marc Auberer
Copyright (c) 2020-2022 Marc Auberer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ allprojects {

Add dependencies to build.gradle file on module level (e.g. app/build.gradle):
```gradle
implementation 'com.chillibits:simplesettings:1.3.3'
implementation 'com.chillibits:simplesettings:1.3.4'
// Required dependencies
implementation 'com.google.android.material:material:<latest-version>'
Expand Down Expand Up @@ -284,4 +284,4 @@ If you want to contribute to this project, please feel free to send us a pull re
## Credits
Thanks to all contributors and translators!

© Marc Auberer 2020-2021
© Marc Auberer 2020-2022
20 changes: 10 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © Marc Auberer 2020-2021. All rights reserved
* Copyright © Marc Auberer 2020-2022. All rights reserved
*/

plugins {
Expand All @@ -9,13 +9,13 @@ plugins {
}

android {
compileSdk 30
buildToolsVersion "30.0.3"
compileSdk 32
buildToolsVersion "32.0.0"

defaultConfig {
applicationId "com.chillibits.simplesettingssample"
minSdk 21
targetSdk 30
targetSdk 31
versionCode libraryVersionCode
versionName libraryVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -49,20 +49,20 @@ dependencies {
implementation project(':simplesettings')

// Base dependencies
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'androidx.core:core-ktx:1.7.0'

// Google dependencies
implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'

// Jetpack Compose
implementation "androidx.compose.ui:ui:$composeVersion"
implementation "androidx.compose.ui:ui-tooling:$composeVersion"
implementation "androidx.compose.material:material:$composeVersion"
implementation "androidx.compose.runtime:runtime-livedata:$composeVersion"
implementation 'androidx.constraintlayout:constraintlayout-compose:1.0.0-beta02'
implementation 'androidx.activity:activity-compose:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout-compose:1.0.0'
implementation 'androidx.activity:activity-compose:1.4.0'

// ChilliBits dependencies
implementation 'com.chillibits:composenumberpicker:1.1.0'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © Marc Auberer 2020-2021. All rights reserved
* Copyright © Marc Auberer 2020-2022. All rights reserved
*/

package com.chillibits.simplesettingssample
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.chillibits.simplesettingssample"
android:installLocation="auto" >
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © Marc Auberer 2020-2021. All rights reserved
* Copyright © Marc Auberer 2020-2022. All rights reserved
*/

package com.chillibits.simplesettingssample
Expand Down Expand Up @@ -58,7 +58,7 @@ class MainActivity : AppCompatActivity(), SimpleSettingsConfig.OptionsItemSelect
}
}

override fun onCreateOptionsMenu(menu: Menu?): Boolean {
override fun onCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.menu_activity_main, menu)
return super.onCreateOptionsMenu(menu)
}
Expand Down Expand Up @@ -92,7 +92,7 @@ class MainActivity : AppCompatActivity(), SimpleSettingsConfig.OptionsItemSelect
Column(modifier = Modifier.layoutId("layout")) {
val componentModifiers = Modifier
.align(CenterHorizontally)
.padding(6.dp)
.padding(4.dp)

Row(modifier = componentModifiers) {
Text(stringResource(R.string.number_of_switch_preferences))
Expand Down Expand Up @@ -356,15 +356,12 @@ class MainActivity : AppCompatActivity(), SimpleSettingsConfig.OptionsItemSelect

override fun onDialogButtonClicked(button: DialogClickListener.Button) {
when(button) {
DialogClickListener.Button.POSITIVE -> {
DialogClickListener.Button.POSITIVE ->
Toast.makeText(this, R.string.yes, Toast.LENGTH_SHORT).show()
}
DialogClickListener.Button.NEGATIVE -> {
DialogClickListener.Button.NEGATIVE ->
Toast.makeText(this, R.string.no, Toast.LENGTH_SHORT).show()
}
DialogClickListener.Button.NEUTRAL -> {
DialogClickListener.Button.NEUTRAL ->
Toast.makeText(this, R.string.cancel, Toast.LENGTH_SHORT).show()
}
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright © Marc Auberer 2020-2022. All rights reserved
*/

package com.chillibits.simplesettingssample

import androidx.compose.foundation.isSystemInDarkTheme
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/android.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/github.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
~ Copyright © Marc Auberer 2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/drawable/header_gradient.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="@color/colorPrimaryVariant"
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<!--
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/settings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/share_white.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<vector android:height="24dp" android:tint="#FFFFFF"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/star_border_white.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<vector android:height="24dp" android:tint="#FFFFFF"
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/layout/header.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="240dp"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/toolbar.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<androidx.appcompat.widget.Toolbar
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/menu_activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<menu
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/menu/menu_settings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<menu
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
<color name="ic_launcher_background">#3DDC84</color>
</resources>
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/uris.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<resources>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright © Marc Auberer 2020-2021. All rights reserved
~ Copyright © Marc Auberer 2020-2022. All rights reserved
-->

<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © Marc Auberer 2020-2021. All rights reserved
* Copyright © Marc Auberer 2020-2022. All rights reserved
*/

package com.chillibits.simplesettingssample
Expand Down

0 comments on commit c2fca8c

Please sign in to comment.