Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build

on:
push:
branches:
- main
pull_request:
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

- name: Build
run: ./gradlew assemble
20 changes: 14 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

buildscript {
ext.kotlin = providers.systemProperty('kotlinVersion').forUseAtConfigurationTime().orNull ?: '1.4.32'
ext.kotlin = providers.systemProperty('kotlinVersion').forUseAtConfigurationTime().orNull ?: '1.7.10'
ext.spotless = '5.10.1'
ext.ktlint = '0.28.0'
ext.googlejavaformat = '1.6'
Expand All @@ -26,23 +26,27 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:${providers.systemProperty("agpVersion").forUseAtConfigurationTime().orNull ?: '4.1.3'}"
classpath "com.android.tools.build:gradle:${providers.systemProperty("agpVersion").forUseAtConfigurationTime().orNull ?: '7.2.1'}"
classpath 'com.google.gms:google-services:4.3.5'
//classpath 'com.google.android.gms:oss-licenses-plugin:0.9.4' // This plugin has issues that would fail the build with Gradle 7.0+ (see bug 184258452)
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin"
classpath "com.diffplug.spotless:spotless-plugin-gradle:$spotless"
}
}

plugins {
id "org.gradle.android.cache-fix" version "2.5.6" apply false
}

ext {
versionName = "5.3.1"
versionCode = 53010005

minSdkVersion = 23
compileSdkVersion = 30
targetSdkVersion = 30
compileSdkVersion = 32
targetSdkVersion = 32

tools = '30.0.2'
tools = '30.0.3'

supportAnnotations = "androidx.annotation:annotation:1.0.1"
appCompat = "androidx.appcompat:appcompat:1.0.2"
Expand All @@ -65,7 +69,7 @@ ext {
archLifecycleExtentions = "androidx.lifecycle:lifecycle-extensions:$archLifecycle"
archLifecycleCompiler = "androidx.lifecycle:lifecycle-compiler:$archLifecycle"

archRoom = "2.2.4"
archRoom = "2.4.2"
archRoomRuntime = "androidx.room:room-runtime:$archRoom"
archRoomCompiler = "androidx.room:room-compiler:$archRoom"
archRoomTesting = "androidx.room:room-testing:$archRoom"
Expand Down Expand Up @@ -142,7 +146,11 @@ ext {
mergeAdapter = 'me.mvdw.recyclerviewmergeadapter:recyclerviewmergeadapter:2.1.0'
}


subprojects {
plugins.withType(com.android.build.gradle.api.AndroidBasePlugin) {
project.apply plugin: "org.gradle.android.cache-fix"
}
apply plugin: "com.diffplug.spotless"
spotless {
java {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
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.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading