diff --git a/.github/template/deploy/action.yml b/.github/template/deploy/action.yml
index 0262f7a..7c6579c 100644
--- a/.github/template/deploy/action.yml
+++ b/.github/template/deploy/action.yml
@@ -37,7 +37,7 @@ runs:
path: ~/.m2/repository/io/github/estivensh4
- name: Sample - ${{ inputs.target }}
shell: bash
- run: cd samples/${{ inputs.target }} && ./local-check.sh
+ run: cd sample/${{ inputs.target }} && ./local-check.sh
- name: Publish Test Report
uses: mikepenz/action-junit-report@v2
if: ${{ always() }}
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6a5f9f7..5d5f54c 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -15,7 +15,7 @@ env:
jobs:
build-library:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -69,7 +69,7 @@ jobs:
name: code-coverage-report-${{ github.job }}
path: "**/build/reports/**/*"
check-sample-android-app:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
needs: build-library
runs-on: ubuntu-latest
steps:
@@ -81,7 +81,7 @@ jobs:
target: androidapp
githubToken: ${{ secrets.GITHUB_TOKEN }}
check-sample-desktop-app:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
needs: build-library
runs-on: ubuntu-latest
steps:
@@ -93,7 +93,7 @@ jobs:
target: desktopApp
githubToken: ${{ secrets.GITHUB_TOKEN }}
check-sample-wear-app:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
needs: build-library
runs-on: ubuntu-latest
steps:
@@ -105,7 +105,7 @@ jobs:
target: wearapp
githubToken: ${{ secrets.GITHUB_TOKEN }}
check-sample-web-app:
- # if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ # if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
needs: build-library
runs-on: ubuntu-latest
steps:
diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml
index 60a220f..4593514 100644
--- a/.github/workflows/code-coverage.yml
+++ b/.github/workflows/code-coverage.yml
@@ -16,18 +16,17 @@ permissions:
jobs:
build:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
name: Build and analyze
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- with:
- fetch-depth: 0
- - name: Set up JDK 17
+ - name: set up JDK 11
uses: actions/setup-java@v3
with:
- java-version: 17
+ java-version: '17'
distribution: 'zulu'
+ cache: gradle
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml
index 7e06568..78d7bb0 100644
--- a/.github/workflows/documentation.yml
+++ b/.github/workflows/documentation.yml
@@ -15,7 +15,7 @@ env:
jobs:
build-documentation:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
@@ -45,7 +45,7 @@ jobs:
retention-days: 7
test-documentation:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
needs: build-documentation
runs-on: ubuntu-latest
@@ -62,7 +62,7 @@ jobs:
instance: ${{ env.INSTANCE }}
deploy-documentation:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 535b01a..c112295 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -27,7 +27,7 @@ env:
jobs:
pre-build:
- #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ #if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
name: Publish library at mavenCentral
runs-on: self-hosted
steps:
@@ -57,7 +57,7 @@ jobs:
- name: Publish library
run: ./gradlew publish --no-parallel
release:
- # if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'samples/')
+ # if: github.event_name == 'pull_request' && github.event.action == 'opened' && startsWith(github.event.pull_request.head.ref, 'sample/')
name: Create release v${{ github.event.inputs.version }}
needs: pre-build
runs-on: self-hosted
diff --git a/README.md b/README.md
index 3da6d1b..8561789 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@
Thank you all for your work! ❤️
-
+
[badge-android]: http://img.shields.io/badge/-android-6EDB8D.svg?style=flat
diff --git a/aws-common/build.gradle.kts b/aws-common/build.gradle.kts
index 7cdf16b..b84d852 100644
--- a/aws-common/build.gradle.kts
+++ b/aws-common/build.gradle.kts
@@ -19,6 +19,10 @@ kotlin {
jvmToolchain(11)
+ compilerOptions {
+ freeCompilerArgs.add("-Xexpect-actual-classes")
+ }
+
androidTarget {
publishAllLibraryVariants()
compilations.all {
diff --git a/aws-dynamo/build.gradle.kts b/aws-dynamo/build.gradle.kts
index 4036774..b7d5efe 100644
--- a/aws-dynamo/build.gradle.kts
+++ b/aws-dynamo/build.gradle.kts
@@ -14,13 +14,19 @@ plugins {
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
kotlin {
- targetHierarchy.default()
+ applyDefaultHierarchyTemplate()
+
+ jvmToolchain(11)
+
+ compilerOptions {
+ freeCompilerArgs.add("-Xexpect-actual-classes")
+ }
androidTarget {
publishAllLibraryVariants()
compilations.all {
kotlinOptions {
- jvmTarget = "1.8"
+ jvmTarget = "11"
}
}
}
diff --git a/aws-dynamo/src/iosMain/kotlin/com/estivensh4/dynamo/AWSDynamo.kt b/aws-dynamo/src/iosMain/kotlin/com/estivensh4/dynamo/AWSDynamo.kt
index 0fd0c32..868184a 100644
--- a/aws-dynamo/src/iosMain/kotlin/com/estivensh4/dynamo/AWSDynamo.kt
+++ b/aws-dynamo/src/iosMain/kotlin/com/estivensh4/dynamo/AWSDynamo.kt
@@ -204,6 +204,7 @@ fun AWSDynamoDBUpdateItemOutput?.toResult(): UpdateItemResult {
)
}
+@Suppress("UNCHECKED_CAST")
@OptIn(ExperimentalForeignApi::class)
fun AWSDynamoDBScanOutput?.toResult(): ScanResult {
val item = this?.items as List