diff --git a/.editorconfig b/.editorconfig index 73a670c902dda2ec2ee795cc1b6e3f74507fad1b..4ef29a4e27130f872cebea5f1365a4b075c5f7ca 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,2 +1,13 @@ +root = true + +[*] +charset = utf-8 +indent_size = 4 +indent_style = space +insert_final_newline = true + [*.{kt,kts}] ij_kotlin_imports_layout = *,^* + +[*.{yml,yaml}] +indent_size = 2 diff --git a/.gitattributes b/.gitattributes index 58f6c2a0e1fb493af28440c64177ed857b462653..411c07777552a74b61b3523fa0b6b82a1bc03a6b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,4 @@ -*.sh text eol=lf -gradlew text eol=lf +* text=auto eol=lf + +*.bat text eol=crlf +*.jar binary diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000000000000000000000000000000000..5ace4600a1f26e6892982f3e2f069ebfab108d87 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0e85d8939692dcc48ad740f28a29f85daa62c407..9121b5b7c6dcbc68f26c2dc3f5749dc5ce2a5def 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,16 +1,31 @@ name: Android CI -on: [pull_request] -jobs: - build: +on: + pull_request: + paths-ignore: + - '.idea/**' + - '.gitattributes' + - '.github/**.json' + - '.gitignore' + - '.gitmodules' + - '**.md' + - 'LICENSE' + - 'NOTICE' +jobs: + validation: runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: gradle/wrapper-validation-action@v1 + build: + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: set up JDK 11 - uses: actions/setup-java@v1 - with: - java-version: 11 - - name: Build with Gradle - run: ./gradlew assembleDebug ktlintCheck testsOnCi + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 + - uses: gradle/gradle-build-action@v2 + - run: ./gradlew assembleDebug ktlintCheck testsOnCi diff --git a/.github/workflows/gradle-cache.yml b/.github/workflows/gradle-cache.yml new file mode 100644 index 0000000000000000000000000000000000000000..6c264d90b3d04037f2de3c8ac70054f582513088 --- /dev/null +++ b/.github/workflows/gradle-cache.yml @@ -0,0 +1,29 @@ +name: Update Gradle build cache + +on: + push: + branches: + - main + paths-ignore: + - '.idea/**' + - '.gitattributes' + - '.github/**.json' + - '.gitignore' + - '.gitmodules' + - '**.md' + - 'LICENSE' + - 'NOTICE' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 + - uses: gradle/gradle-build-action@v2 + with: + gradle-home-cache-cleanup: true + - run: ./gradlew assembleDebug diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml deleted file mode 100644 index f365456a1e38d8178de110da8ea16a921243c43e..0000000000000000000000000000000000000000 --- a/.github/workflows/gradle-wrapper-validation.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: "Validate Gradle Wrapper" -on: [pull_request] - -jobs: - validation: - name: "Validation" - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: gradle/wrapper-validation-action@v1 diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index ffb506245c854ba317ba57408fadb983d38cefb4..0d89c0e5ba40f7ffc5c9460e13091b848e6430ce 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -31,8 +31,6 @@ -