Skip to content

Commit

Permalink
Update dependencies (#53)
Browse files Browse the repository at this point in the history
This PR updates the following dependencies:
- Android Gradle Plugin:
-
[8.7.0](https://developer.android.com/build/releases/gradle-plugin#fixed_issues)
-
[8.7.1](https://developer.android.com/build/releases/gradle-plugin#android-gradle-plugin-8.7.1)
- AndroidX Activity
-
[1.9.2](https://developer.android.com/jetpack/androidx/releases/activity#1.9.2)
-
[1.9.3](https://developer.android.com/jetpack/androidx/releases/activity#1.9.3)
- AndroidX Lifecycle:
-
[2.8.5](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.5)
-
[2.8.6](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.6)
- [Detekt 1.23.7](https://github.com/detekt/detekt/releases/tag/v1.23.7)
- [Kotlin
2.0.21](https://github.com/JetBrains/kotlin/releases/tag/v2.0.21)
- [KotlinX Serialization
1.7.3](https://github.com/Kotlin/kotlinx.serialization/releases/tag/v1.7.3)
- Gradle:
  - [8.10.1](https://github.com/gradle/gradle/releases/tag/v8.10.1)
  - [8.10.2](https://github.com/gradle/gradle/releases/tag/v8.10.2)

It also enables Dependabot for Gradle dependencies and updates the
`.gitignore` file.

Finally, it adds a new GitHub Actions workflow when pushing to the
`main` branch to upload Gradle's dependency graph to GitHub's
[Dependency
Graph](https://github.com/SRGSSR/srgdataprovider-android/network/dependencies).
  • Loading branch information
MGaetan89 authored Oct 31, 2024
1 parent 86c404b commit c45b6b1
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 80 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ updates:
actions:
patterns:
- "*"

- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "weekly"
groups:
androidx:
patterns:
- "androidx.*"
29 changes: 29 additions & 0 deletions .github/workflows/dependency_graph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Submit dependency graph

on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
submit-dependency-graph:
name: Submit dependency graph
runs-on: ubuntu-latest
permissions:
contents: write
env:
USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Submit dependency graph
uses: gradle/actions/dependency-submission@v4
92 changes: 19 additions & 73 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,91 +1,37 @@
# Built application files
*.apk
*.aar
*.ap_
*.aab

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# .gitignore file from: https://github.com/github/gitignore/blob/main/Android.gitignore
# Gradle files
.gradle/
build/

# Kotlin files
.kotlin/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
# Log/OS Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
# Android Studio generated files and folders
captures/
.externalNativeBuild/
.cxx/
*.apk
output.json

# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml
.idea/
misc.xml
deploymentTargetDropDown.xml
render.experimental.xml

# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Freeline
freeline.py
freeline/
freeline_project_description.json

# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md

# Version control
vcs.xml
google-services.json

# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/
.DS_Store
.idea/compiler.xml
.idea/deploymentTargetDropDown.xml
.idea/kotlinc.xml
.idea/misc.xml
.idea/androidTestResultsUserPreferences.xml
# Android Profiling
*.hprof
12 changes: 6 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[versions]
android-gradle-plugin = "8.6.0"
androidx-activity = "1.9.1"
androidx-lifecycle = "2.8.4"
android-gradle-plugin = "8.7.1"
androidx-activity = "1.9.3"
androidx-lifecycle = "2.8.6"
androidx-paging = "3.3.2"
androidx-test-ext-junit = "1.2.1"
detekt = "1.23.6"
detekt = "1.23.7"
junit = "4.13.2"
kotlin = "2.0.20"
kotlinx-serialization = "1.7.2"
kotlin = "2.0.21"
kotlinx-serialization = "1.7.3"
okhttp = "4.12.0"
retrofit = "2.11.0"
robolectric = "4.13"
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit c45b6b1

Please sign in to comment.