From 23a394897a432ed18ca57883a35d3aa656f20e77 Mon Sep 17 00:00:00 2001 From: Oleksandr Balan Date: Wed, 6 Sep 2023 22:37:10 +0200 Subject: [PATCH] Update compose to 2023.08.00 --- .github/workflows/publish.yml | 15 +++-- .github/workflows/static-analysis.yml | 18 ++++-- .gitignore | 14 +---- .idea/gradle.xml | 14 +++++ README.md | 12 ++-- build-logic/.gitignore | 1 + build-logic/convention/.gitignore | 1 + build-logic/convention/build.gradle.kts | 19 ++++++ .../kotlin/JvmToolchainConventionPlugin.kt | 18 ++++++ .../main/kotlin/utils/ProjectExtensions.kt | 9 +++ build-logic/settings.gradle.kts | 18 ++++++ build.gradle | 34 ---------- build.gradle.kts | 23 +++++++ demo/build.gradle | 60 ------------------ demo/build.gradle.kts | 61 ++++++++++++++++++ .../kotlin/eu/wewox/pagecurl/MainActivity.kt | 60 ++---------------- .../kotlin/eu/wewox/pagecurl/RootScreen.kt | 54 ++++++++++++++++ .../eu/wewox/pagecurl/components/HowToPage.kt | 14 ++--- .../pagecurl/components/SettingsPopup.kt | 9 +-- .../eu/wewox/pagecurl/components/TopBar.kt | 46 ++++++++++---- .../pagecurl/components/ZoomOutLayout.kt | 7 ++- .../screens/BackPagePageCurlScreen.kt | 4 +- .../screens/InteractionConfigInPageCurl.kt | 6 +- .../pagecurl/screens/PagingPageCurlScreen.kt | 10 +-- .../screens/ShadowInPageCurlScreen.kt | 4 +- .../pagecurl/screens/StateInPageCurlScreen.kt | 4 +- .../eu/wewox/pagecurl/ui/theme/Shape.kt | 14 ----- .../eu/wewox/pagecurl/ui/theme/Theme.kt | 62 ++++++++++--------- gradle/libs.versions.toml | 34 ++++++++++ gradle/wrapper/gradle-wrapper.properties | 4 +- pagecurl/build.gradle | 45 -------------- pagecurl/build.gradle.kts | 32 ++++++++++ pagecurl/consumer-rules.pro | 0 pagecurl/proguard-rules.pro | 21 ------- settings.gradle => settings.gradle.kts | 16 +++-- 35 files changed, 431 insertions(+), 332 deletions(-) create mode 100644 build-logic/.gitignore create mode 100644 build-logic/convention/.gitignore create mode 100644 build-logic/convention/build.gradle.kts create mode 100644 build-logic/convention/src/main/kotlin/JvmToolchainConventionPlugin.kt create mode 100644 build-logic/convention/src/main/kotlin/utils/ProjectExtensions.kt create mode 100644 build-logic/settings.gradle.kts delete mode 100644 build.gradle create mode 100644 build.gradle.kts delete mode 100644 demo/build.gradle create mode 100644 demo/build.gradle.kts create mode 100644 demo/src/main/kotlin/eu/wewox/pagecurl/RootScreen.kt delete mode 100644 demo/src/main/kotlin/eu/wewox/pagecurl/ui/theme/Shape.kt create mode 100644 gradle/libs.versions.toml delete mode 100644 pagecurl/build.gradle create mode 100644 pagecurl/build.gradle.kts delete mode 100644 pagecurl/consumer-rules.pro delete mode 100644 pagecurl/proguard-rules.pro rename settings.gradle => settings.gradle.kts (60%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d03644c..386c86b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,8 +6,8 @@ name: Publish To Maven Central on: # Triggers the workflow when tag is pushed push: - tags: - - 'v*' + tags: + - 'v*' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -17,17 +17,22 @@ jobs: # This workflow contains a single job called "publish" publish: # The type of runner that the job will run on - runs-on: ubuntu-latest + runs-on: macos-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' # Runs a single command using the runners shell - name: publish - run: ./gradlew publish --no-daemon --no-parallel --stacktrace --info - env: + run: ./gradlew publish --no-daemon --no-parallel + env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index a05424f..370c0c3 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -12,12 +12,17 @@ on: jobs: detekt: name: Detekt - runs-on: ubuntu-latest + runs-on: macos-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' # Runs a single command using the runners shell - name: detekt @@ -25,12 +30,17 @@ jobs: spotless: name: Spotless - runs-on: ubuntu-latest + runs-on: macos-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' # Runs a single command using the runners shell - name: spotless diff --git a/.gitignore b/.gitignore index 4f4d8e3..e44d96a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1,9 @@ *.iml .gradle /local.properties -/.idea/caches -/.idea/libraries -/.idea/inspectionProfiles -/.idea/modules.xml -/.idea/workspace.xml -/.idea/navEditor.xml -/.idea/assetWizardSettings.xml -/.idea/misc.xml -/.idea/deploymentTargetDropDown.xml -/.idea/kotlinc.xml +/.idea .DS_Store -/build +build/ /captures .externalNativeBuild .cxx -local.properties diff --git a/.idea/gradle.xml b/.idea/gradle.xml index ecb9cfc..10965d5 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,12 +4,26 @@