File tree Expand file tree Collapse file tree 16 files changed +80
-71
lines changed
src/main/java/se/eelde/toggles/core Expand file tree Collapse file tree 16 files changed +80
-71
lines changed Original file line number Diff line number Diff line change 3535 run : ./gradlew check --exclude-task testReleaseUnitTest
3636
3737 - name : Publish application
38- run : ./gradlew :toggles-app:publish
38+ run : ./gradlew :toggles-app:publishRelease
Original file line number Diff line number Diff line change @@ -25,15 +25,13 @@ jobs:
2525
2626 - name : Setup environment
2727 run : |
28- mkdir -p ~/.gradle
29- touch ~/.gradle/gradle.properties
30- echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> ~/.gradle/gradle.properties
31- echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> ~/.gradle/gradle.properties
32- echo "signing.secretKeyRingFile=~/.gradle/secring.gpg" >> ~/.gradle/gradle.properties
33- echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> ~/.gradle/gradle.properties
34- echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> ~/.gradle/gradle.properties
35- echo "${{secrets.SECRING_GPG_B64}}" > ~/.gradle/secring.gpg.b64
36- base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
28+ echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> gradle.properties
29+ echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> gradle.properties
30+ echo "signing.secretKeyRingFile=../secring.gpg" >> gradle.properties
31+ echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> gradle.properties
32+ echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> gradle.properties
33+ echo "${{secrets.SECRING_GPG_B64}}" > secring.gpg.b64
34+ base64 -d secring.gpg.b64 > secring.gpg
3735
3836 - name : Publish core library
3937 run : ./gradlew :toggles-core:publish --no-daemon --no-parallel
Original file line number Diff line number Diff line change @@ -25,15 +25,13 @@ jobs:
2525
2626 - name : Setup environment
2727 run : |
28- mkdir -p ~/.gradle
29- touch ~/.gradle/gradle.properties
30- echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> ~/.gradle/gradle.properties
31- echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> ~/.gradle/gradle.properties
32- echo "signing.secretKeyRingFile=~/.gradle/secring.gpg" >> ~/.gradle/gradle.properties
33- echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> ~/.gradle/gradle.properties
34- echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> ~/.gradle/gradle.properties
35- echo "${{secrets.SECRING_GPG_B64}}" > ~/.gradle/secring.gpg.b64
36- base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
28+ echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> gradle.properties
29+ echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> gradle.properties
30+ echo "signing.secretKeyRingFile=../secring.gpg" >> gradle.properties
31+ echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> gradle.properties
32+ echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> gradle.properties
33+ echo "${{secrets.SECRING_GPG_B64}}" > secring.gpg.b64
34+ base64 -d secring.gpg.b64 > secring.gpg
3735
3836 - name : Publish flow library
3937 run : ./gradlew :toggles-flow:publish --no-daemon --no-parallel
Original file line number Diff line number Diff line change @@ -36,15 +36,13 @@ jobs:
3636
3737 - name : Setup environment
3838 run : |
39- mkdir -p ~/.gradle
40- touch ~/.gradle/gradle.properties
41- echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> ~/.gradle/gradle.properties
42- echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> ~/.gradle/gradle.properties
43- echo "signing.secretKeyRingFile=~/.gradle/secring.gpg" >> ~/.gradle/gradle.properties
44- echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> ~/.gradle/gradle.properties
45- echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> ~/.gradle/gradle.properties
46- echo "${{secrets.SECRING_GPG_B64}}" > ~/.gradle/secring.gpg.b64
47- base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
39+ echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> gradle.properties
40+ echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> gradle.properties
41+ echo "signing.secretKeyRingFile=secring.gpg" >> gradle.properties
42+ echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> gradle.properties
43+ echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> gradle.properties
44+ echo "${{secrets.SECRING_GPG_B64}}" > secring.gpg.b64
45+ base64 -d secring.gpg.b64 > secring.gpg
4846
4947 - name : Publish core library
5048 run : ./gradlew :toggles-prefs:publish --no-daemon --no-parallel
Original file line number Diff line number Diff line change @@ -25,15 +25,13 @@ jobs:
2525
2626 - name : Setup environment
2727 run : |
28- mkdir -p ~/.gradle
29- touch ~/.gradle/gradle.properties
30- echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> ~/.gradle/gradle.properties
31- echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> ~/.gradle/gradle.properties
32- echo "signing.secretKeyRingFile=~/.gradle/secring.gpg" >> ~/.gradle/gradle.properties
33- echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> ~/.gradle/gradle.properties
34- echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> ~/.gradle/gradle.properties
35- echo "${{secrets.SECRING_GPG_B64}}" > ~/.gradle/secring.gpg.b64
36- base64 -d ~/.gradle/secring.gpg.b64 > ~/.gradle/secring.gpg
28+ echo "signing.keyId=${{secrets.SIGNING_KEYID}}" >> gradle.properties
29+ echo "signing.password=${{secrets.SIGNING_PASSWORD}}" >> gradle.properties
30+ echo "signing.secretKeyRingFile=../secring.gpg" >> gradle.properties
31+ echo "mavenCentralRepositoryUsername=${{secrets.MAVEN_CENTRAL_REPOSITORY_USERNAME}}" >> gradle.properties
32+ echo "mavenCentralRepositoryPassword=${{secrets.MAVEN_CENTRAL_REPOSITORY_PASSWORD}}" >> gradle.properties
33+ echo "${{secrets.SECRING_GPG_B64}}" > secring.gpg.b64
34+ base64 -d secring.gpg.b64 > secring.gpg
3735
3836 - name : Publish prefs library
3937 run : ./gradlew :toggles-prefs:publish --no-daemon --no-parallel
Original file line number Diff line number Diff line change 22
33Development tool to store app settings / feature toggles in an external application making in persist across clean data / reinstallations.
44
5- ##
6-
75## Toggles app
86
97Toggles can be downloaded on [ play store] ( https://play.google.com/store/apps/details?id=se.eelde.toggles ) .
@@ -13,13 +11,25 @@ Stores settings / toggles behind a content provider.
1311
1412This is a development tools meant to facilitate feature switching in an external app so that configurations will be retained across clear data / uninstalls.
1513
16- 2 premade libraries to talk to the toggles application. "Prefs" and "Flow":
14+ 2 premade libraries to talk to the toggles application. "Prefs" and "Flow" - Backed by a common core library :
1715
1816## Toggles-flow library
1917Exposes switches from toggles using a kotlin flow.
18+ ```
19+ implementation("se.eelde.toggles:toggles-flow:0.0.1")
20+ ```
2021
2122## Toggles-prefs library
2223One-shot fetch of a toggle. Similar API as androids SharedPreferences.
24+ ```
25+ implementation("se.eelde.toggles:toggles-prefs:0.0.1")
26+ ```
27+
28+ ## Toggles-core library
29+ Base library exposing common bit to help communicating with the toggles application via the provider. Generally shouldn't be needed unless implementing your own library.
30+ ```
31+ implementation("se.eelde.toggles:toggles-core:0.0.2")
32+ ```
2333
2434#### Previously known as wrench
2535The idea dates way back to and was inspired by the now removed [ Dash Clock Widget] ( https://play.google.com/store/apps/details?id=net.nurik.roman.dashclock ) as well as the still maintained [ muzei] ( https://play.google.com/store/apps/details?id=net.nurik.roman.muzei ) .
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ allprojects {
4949 google()
5050 mavenCentral()
5151 jcenter()
52+ maven(" https://s01.oss.sonatype.org/service/local/repositories/seeelde-1001/content" )
5253 }
5354}
5455
Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ android {
6565 applicationId = " se.eelde.toggles"
6666 minSdk = 21
6767 targetSdk = 30
68- versionCode = 5
69- versionName = " 1.01.01 "
68+ versionCode = 6
69+ versionName = " 1.01.02 "
7070
7171 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
7272 vectorDrawables.useSupportLibrary = true
@@ -202,9 +202,12 @@ dependencies {
202202 implementation(" androidx.navigation:navigation-ui-ktx:2.3.5" )
203203
204204 implementation(" com.izettle.wrench:wrench-core:0.3" )
205- implementation(project(" :toggles-core" ))
206- implementation(project(" :toggles-prefs" ))
207- implementation(project(" :toggles-flow" ))
205+ // implementation(project(":toggles-core"))
206+ // implementation(project(":toggles-prefs"))
207+ // implementation(project(":toggles-flow"))
208+ implementation(" se.eelde.toggles:toggles-core:0.0.2" )
209+ implementation(" se.eelde.toggles:toggles-flow:0.0.1" )
210+ implementation(" se.eelde.toggles:toggles-prefs:0.0.1" )
208211
209212 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3" )
210213
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ kotlin {
4747}
4848
4949dependencies {
50- implementation(" androidx.core:core-ktx:1.3.2" )
5150 testImplementation(" junit:junit:4.13.2" )
5251 implementation(" androidx.annotation:annotation:1.2.0" )
5352}
Original file line number Diff line number Diff line change 11POM_ARTIFACT_ID =toggles-core
22POM_NAME =Toggles Core
3- VERSION_NAME =0.0.2 -SNAPSHOT
3+ VERSION_NAME =0.0.3 -SNAPSHOT
You can’t perform that action at this time.
0 commit comments