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

Commit

Permalink
fix gradlew line errors
Browse files Browse the repository at this point in the history
  • Loading branch information
urvil38 committed Oct 15, 2023
1 parent e85c505 commit cb402d4
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 15 deletions.
22 changes: 21 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ buildscript {
repositories {
google()
mavenCentral()

maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.0-beta01'
classpath 'com.android.tools.build:gradle:8.1.2'
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.4.0.3356"
}
}

apply plugin: "org.sonarqube"

allprojects {
repositories {
google()
Expand Down Expand Up @@ -43,6 +50,19 @@ def getVersionCode = { ->
}
}

sonar {
properties {
property "sonar.projectKey", "opentracks"
property "sonar.host.url", "http://localhost:9000"
property "sonar.sources", "src/main/java"
property "sonar.exclusions", '**/*Test*/**,' +
'*.json,' +
'**/*test*/**,' +
'**/.gradle/**,' +
'**/R.class'
}
}

android {
compileOptions {
coreLibraryDesugaringEnabled true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public void getAnnouncement_heart_rate_and_sensor_statistics() {
lastInterval = intervalStatistics.getIntervalList().get(intervalStatistics.getIntervalList().size() - 1);
}

SensorStatistics sensorStatistics = new SensorStatistics(HeartRate.of(180f), HeartRate.of(180f), null, null, null);
SensorStatistics sensorStatistics = new SensorStatistics(HeartRate.of(180f), HeartRate.of(180f), null, null, null, null);

// when
String announcement = VoiceAnnouncementUtils.getAnnouncement(context, stats, UnitSystem.METRIC, true, lastInterval, sensorStatistics).toString();
Expand Down Expand Up @@ -342,7 +342,7 @@ public void getAnnouncement_only_lap_heart_rate() {
lastInterval = intervalStatistics.getIntervalList().get(intervalStatistics.getIntervalList().size() - 1);
}

SensorStatistics sensorStatistics = new SensorStatistics(HeartRate.of(180f), HeartRate.of(180f), null, null, null);
SensorStatistics sensorStatistics = new SensorStatistics(HeartRate.of(180f), HeartRate.of(180f), null, null, null, null);

// when
String announcement = VoiceAnnouncementUtils.getAnnouncement(context, stats, UnitSystem.METRIC, true, lastInterval, sensorStatistics).toString();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.dennisguse.opentracks.ui.customrecordinglayout;
package de.dennisguse.opentracks.ui.customRecordingLayout;

import androidx.annotation.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.dennisguse.opentracks.ui.customrecordinglayout;
package de.dennisguse.opentracks.ui.customRecordingLayout;

public enum CustomLayoutFieldType {
GENERIC(1),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.dennisguse.opentracks.ui.customrecordinglayout;
package de.dennisguse.opentracks.ui.customRecordingLayout;

import android.os.Parcel;
import android.os.Parcelable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.dennisguse.opentracks.ui.customrecordinglayout;
package de.dennisguse.opentracks.ui.customRecordingLayout;

import android.os.Parcel;
import android.os.Parcelable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.dennisguse.opentracks.ui.customrecordinglayout;
package de.dennisguse.opentracks.ui.customRecordingLayout;

import android.content.res.Resources;
import android.util.Log;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.dennisguse.opentracks.ui.customrecordinglayout;
package de.dennisguse.opentracks.ui.customRecordingLayout;

import android.content.Context;
import android.util.Log;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package de.dennisguse.opentracks.ui.customrecordinglayout;
package de.dennisguse.opentracks.ui.customRecordingLayout;

import android.content.Context;
import android.view.LayoutInflater;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public void onAnimationStart(Animation anim) {
throw new UnsupportedOperationException("onAnimationStart is not supported for this class.");
}


@Override
public void onAnimationRepeat(Animation anim) {}


@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ public ScrollVisibleViews(@NonNull VisibleViewsListener visibleViewsListener) {

@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
if (scrollState == AbsListView.OnScrollListener.SCROLL_STATE_IDLE || scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING || scrollState == AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL) {
if (from >= 0 && to >= 0) {
if ((scrollState == AbsListView.OnScrollListener.SCROLL_STATE_IDLE || scrollState == AbsListView.OnScrollListener.SCROLL_STATE_FLING || scrollState == AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL) && from >= 0 && to >= 0)
{
for (int i = from; i < to; i++) {
View viewChild = view.getChildAt(i - from);
visibleViewsListener.onViewVisible(viewChild, i);
}
}
}
}

@Override
public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
Expand All @@ -39,4 +38,4 @@ public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCoun
public interface VisibleViewsListener {
void onViewVisible(View view, int position);
}
}
}

0 comments on commit cb402d4

Please sign in to comment.