Skip to content

Commit

Permalink
Gradle cache Cicd (owlmail#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin2dehury committed Mar 21, 2023
1 parent f181f24 commit b6cd2d2
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 19 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/Detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Set up Gradle with Cache
uses: gradle/gradle-build-action@v2

- name: Fetch Secrets data
env:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/GenerateApk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Set up Gradle with Cache
uses: gradle/gradle-build-action@v2

- name: Fetch Secrets data
env:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Set up Gradle with Cache
uses: gradle/gradle-build-action@v2

- name: Fetch Secrets data
env:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/Profiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ jobs:
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Set up Gradle with Cache
uses: gradle/gradle-build-action@v2

- name: Fetch Secrets data
env:
Expand Down
5 changes: 2 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {

id 'org.jlleitschuh.gradle.ktlint'

id("com.google.devtools.ksp")
id "com.google.devtools.ksp"
}

android {
Expand Down Expand Up @@ -130,8 +130,7 @@ dependencies {
implementation Dependencies.RoomKtx
kapt Dependencies.RoomCompiler

implementation "androidx.metrics:metrics-performance:1.0.0-alpha03"
implementation("androidx.profileinstaller:profileinstaller:1.2.2")
implementation Dependencies.BaselineProfileInstaller

implementation(project(Modules.Auth))
implementation(project(Modules.Mail))
Expand Down
2 changes: 1 addition & 1 deletion auth/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {

id 'org.jlleitschuh.gradle.ktlint'

id("com.google.devtools.ksp")
id "com.google.devtools.ksp"
}

android {
Expand Down
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ object Dependencies {
// leak canary
const val LeakCanary =
"com.squareup.leakcanary:leakcanary-android:${DependencyVersion.LeakCanary}"

// Baseline Profile installer
const val BaselineProfileInstaller =
"androidx.profileinstaller:profileinstaller:${DependencyVersion.BaselineProfileInstaller}"
}
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/DependencyVersion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ object DependencyVersion {

// Leak canary
const val LeakCanary = "2.10"

// Baseline Profile installer
const val BaselineProfileInstaller = "1.2.2"
}
2 changes: 1 addition & 1 deletion contacts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {

id 'org.jlleitschuh.gradle.ktlint'

id("com.google.devtools.ksp")
id "com.google.devtools.ksp"
}

android {
Expand Down
2 changes: 1 addition & 1 deletion mail/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ plugins {

id 'org.jlleitschuh.gradle.ktlint'

id("com.google.devtools.ksp")
id "com.google.devtools.ksp"
}

android {
Expand Down
2 changes: 1 addition & 1 deletion networking/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

id 'org.jlleitschuh.gradle.ktlint'

id("com.google.devtools.ksp")
id "com.google.devtools.ksp"
}

android {
Expand Down

0 comments on commit b6cd2d2

Please sign in to comment.