Skip to content

Commit

Permalink
Merge pull request #62 from mikepenz/develop
Browse files Browse the repository at this point in the history
dev -> main
  • Loading branch information
mikepenz authored Dec 3, 2021
2 parents c69ae13 + d05aa06 commit a5257c0
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 45 deletions.
43 changes: 19 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
os: [macOS-latest, ubuntu-18.04]
os: [macOS-latest, ubuntu-latest, windows-latest]

runs-on: ${{matrix.os}}

Expand All @@ -24,7 +24,7 @@ jobs:

- uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'zulu'
java-version: '15'

- name: Copy CI gradle.properties
Expand All @@ -41,47 +41,42 @@ jobs:
restore-keys: |
gradle-${{ runner.os }}-
- name: Prepare Sonatype Gradle properties
run: |
echo "signing.keyId=${{ secrets.SONATYPE_GPG_KEY }}" >> ~/.gradle/gradle.properties
echo "signing.password=${{ secrets.SONATYPE_GPG_PASS }}" >> ~/.gradle/gradle.properties
echo "${{ secrets.SONATYPE_GPG_FILE }}" > opensource.gpg.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch "opensource.gpg.asc" > "$HOME/.gradle/opensource.gpg"
echo "signing.secretKeyRingFile=$HOME/.gradle/opensource.gpg" >> ~/.gradle/gradle.properties
- name: Prepare Sonatype Gradle properties - Secret (Unix)
if: matrix.os != 'windows-latest'
run: |
echo "${{ secrets.SONATYPE_GPG_FILE }}" > opensource.gpg.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch "opensource.gpg.asc" > ~/.gradle/opensource.gpg
echo "signing.secretKeyRingFile=$HOME/.gradle/opensource.gpg" >> ~/.gradle/gradle.properties
- name: Prepare Sonatype Gradle properties - Secret (Windows)
if: matrix.os == 'windows-latest'
run: |
echo "${{ secrets.SONATYPE_GPG_FILE }}" > opensource.gpg.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch "opensource.gpg.asc" > ~/.gradle/opensource.gpg
echo "signing.secretKeyRingFile=$HOME\\.gradle\\opensource.gpg" >> ~/.gradle/gradle.properties
- name: Cache konan
uses: actions/cache@v2
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
gradle-${{ runner.os }}-
- name: Publish the macOS artifacts
if: matrix.os == 'macOS-latest'
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publishAllPublicationsToMavenRepository --no-daemon

- name: Publish the windows artifact
if: matrix.os == 'windows-latest'
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publishMingwPublicationToMavenRepository

- name: Publish the linux artifact
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'ubuntu-latest'
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
run: ./gradlew publishLinuxX64PublicationToMavenRepository

build:
Expand Down
20 changes: 10 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,32 @@ buildscript {
buildTools: "31.0.0",
minSdk : 21,
targetSdk : 30,
dokka : "1.5.31"
dokka : "1.6.0"
]

versions = [
annotation : '1.0.1',
appcompat : '1.3.1',
recyclerView : '1.2.1',
drawerlayout : '1.1.1',
constraintLayout : '2.1.1',
constraintLayout : '2.1.2',
cardView : '1.0.0',
okhttp : '4.9.2',
iconics : "5.3.2",
fastadapter : '5.5.1',
materialdrawer : '9.0.0-a01',
aboutLibraries : '10.0.0-a01',
okhttp : '4.9.3',
iconics : "5.3.3",
fastadapter : '5.6.0',
materialdrawer : '9.0.0-a03',
aboutLibraries : '10.0.0-b02',
ktor : "1.6.5",
kermit : "0.3.0-m1",
kotlinxSerialization: "1.3.0",
kermit : "1.0.2",
kotlinxSerialization: "1.3.1",
kotlinxDateTime : "0.3.1",
kotlinCoroutines : "1.5.2",
// ktx
activityKtx : "1.4.0",
lifecycleKtx : "2.4.0",
viewModelKtx : "2.4.0",
// other
detekt : '1.18.1',
detekt : '1.19.0',
]
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maven stuff
GROUP=com.mikepenz
VERSION_NAME=1.1.3
VERSION_CODE=1103
VERSION_NAME=1.1.4
VERSION_CODE=1104

POM_URL=https://github.com/mikepenz/storyblok-mp-SDK

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-rc-3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mikepenz.common.repository

import co.touchlab.kermit.LogcatLogger
import co.touchlab.kermit.LogcatWriter
import co.touchlab.kermit.Logger
import co.touchlab.kermit.StaticConfig

actual fun getLogger(): Logger = LogcatLogger()
actual fun getLogger(): Logger = Logger(StaticConfig(logWriterList = listOf(LogcatWriter())))
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class StoryblokRepository(token: String) {
private val storyblok = Storyblok(token)

suspend fun fetchStories(): List<Story> {
logger.d("fetchStories", "Repo")
logger.d("Repo")
return storyblok.fetchStories()
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mikepenz.common.repository

import co.touchlab.kermit.NSLogWriter
import co.touchlab.kermit.Logger
import co.touchlab.kermit.NSLogLogger
import co.touchlab.kermit.StaticConfig

actual fun getLogger(): Logger = NSLogLogger()
actual fun getLogger(): Logger = Logger(StaticConfig(logWriterList = listOf(NSLogWriter())))
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mikepenz.common.repository

import co.touchlab.kermit.CommonLogger
import co.touchlab.kermit.CommonWriter
import co.touchlab.kermit.Logger
import co.touchlab.kermit.StaticConfig

actual fun getLogger(): Logger = CommonLogger()
actual fun getLogger(): Logger = Logger(StaticConfig(logWriterList = listOf(CommonWriter())))
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class Storyblok constructor(
private const val API_ENDPOINT = "api.storyblok.com"
private const val API_VERSION = "v2"

private const val SDK_VERSION = "1.1.3"
private const val SDK_VERSION = "1.1.4"
private const val SDK_USER_AGENT = "storyblok-sdk-android/$SDK_VERSION"

private const val VERSION_PUBLISHED = "published"
Expand Down

0 comments on commit a5257c0

Please sign in to comment.