Skip to content

Commit

Permalink
Added Ruler plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
leinardi committed Feb 15, 2022
1 parent 5d424d8 commit 5cadfb7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: assembleRelease
arguments: bundleRelease analyzeReleaseBundle

static-analysis:
name: Static analysis and Unit tests
Expand Down
1 change: 1 addition & 0 deletions build-conventions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ dependencies {
implementation libs.plugin.triplet.play
implementation libs.plugin.versionsgradle
implementation libs.plugin.violation
implementation libs.plugin.ruler
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ plugins {
id 'forlago.dependencies-conventions'
id 'com.starter.easylauncher'
id 'com.google.firebase.firebase-perf'
id 'forlago.ruler-conventions'
}

def applyGsmServicesPlugins = rootProject.file("app/google-services.json").exists()
Expand Down
26 changes: 26 additions & 0 deletions build-conventions/src/main/groovy/forlago.ruler-conventions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright 2022 Roberto Leinardi.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
id 'com.spotify.ruler'
}

ruler {
abi = "arm64-v8a"
locale = "en"
screenDensity = 480
sdkVersion = 30
}
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ plugin-google-services = { module = "com.google.gms:google-services", version =
plugin-hilt = { module = "com.google.dagger:hilt-android-gradle-plugin", version.ref = "hilt" }
plugin-jdkdesugar = { module = "com.android.tools:desugar_jdk_libs", version = "1.1.5" }
plugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
plugin-ruler = { module = "com.spotify.ruler:ruler-gradle-plugin", version = "1.0.0" }
plugin-spotless = { module = "com.diffplug.spotless:spotless-plugin-gradle", version = "5.15.0" }
plugin-triplet-play = { module = "com.github.triplet.gradle:play-publisher", version = "3.6.0" }
plugin-versionsgradle = { module = "com.github.ben-manes:gradle-versions-plugin", version = "0.39.0" }
Expand Down

0 comments on commit 5cadfb7

Please sign in to comment.