Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Remove this unused "track" local variable #163

Merged
merged 1 commit into from
Oct 14, 2023
Merged
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
24 changes: 22 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ buildscript {
maven { url "https://plugins.gradle.org/m2/"}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1"
classpath 'com.android.tools.build:gradle:8.1.2'
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'

}
}

Expand Down Expand Up @@ -165,3 +166,22 @@ dependencies {

androidTestUtil 'androidx.test:orchestrator:1.4.2'
}

apply plugin: "org.sonarqube"

sonarqube {
properties {
property "sonar.projectName", "OpenTracksConcordia"
property "sonar.projectKey", "opentracks"
property "sonar.tests", ["src/androidTest/java"]
property "sonar.test.inclusions", "/*Test/*"
property "sonar.sourceEncoding", "UTF-8"
property "sonar.sources", "src/main/java"
property "sonar.exclusions", '/*Test/*,' +
'*.json,' +
'/*test/*,' +
'*/.gradle/*,' +
'**/R.class'
}
}

4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1024m
android.suppressUnsupportedCompileSdk=34
android.suppressUnsupportedCompileSdk=34
systemProp.sonar.host.url=http://localhost:9000
systemProp.sonar.login=sqp_64567e25c0b9ca202bd8e272f45f80f604ae3deb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ protected void onCreate(Bundle savedInstanceState) {

trackRecordingServiceConnection = new TrackRecordingServiceConnection(bindCallback);

Track track = contentProviderUtils.getTrack(trackId);
contentProviderUtils.getTrack(trackId);
viewBinding.bottomAppBarLayout.bottomAppBar.replaceMenu(R.menu.track_detail);
setSupportActionBar(viewBinding.bottomAppBarLayout.bottomAppBar);

Expand Down
Loading