diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index f8a58e383..d5c0b898e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -45,19 +45,23 @@ jobs: - name: Git LFS Pull run: git lfs pull - + - name: Setup Android SDK - uses: android-actions/setup-android@v4 + run: | + echo "ANDROID_HOME=/usr/local/lib/android/sdk" >> $GITHUB_ENV + echo "ANDROID_SDK_ROOT=/usr/local/lib/android/sdk" >> $GITHUB_ENV + echo "/usr/local/lib/android/sdk/cmdline-tools/latest/bin" >> $GITHUB_PATH + echo "/usr/local/lib/android/sdk/platform-tools" >> $GITHUB_PATH - name: Install Android SDK components run: | - sdkmanager "tools" - sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" - sdkmanager "platforms;android-${ANDROID_API}" + yes | sdkmanager --licenses + sdkmanager "platforms;android-${{ env.ANDROID_API }}" + sdkmanager "build-tools;${{ env.ANDROID_BUILD_TOOLS }}" sdkmanager "extras;android;m2repository" sdkmanager "extras;google;m2repository" sdkmanager "extras;google;google_play_services" - + - name: Prepare builddir run: | # secrets are only available for collabrators, other will build with OsmDroid (but a few more options than F-Droid still) diff --git a/app/build.gradle b/app/build.gradle index 03cbdea00..4ec65b24e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -100,7 +100,7 @@ android { lint { baseline = file('lint-baseline.xml') checkReleaseBuilds = true - if (mapboxEnabled) { + if (rootProject.ext.mapboxEnabled) { lintConfig = file('lint.xml') } else { lintConfig = file('lint-osmdroid.xml') @@ -131,7 +131,8 @@ android { repositories { google() - mavenCentral() //MapBox GraphView + mavenCentral() + maven { url = 'https://jitpack.io' } if (rootProject.ext.mapboxEnabled) { maven { url = 'https://api.mapbox.com/downloads/v2/releases/maven' @@ -183,15 +184,6 @@ dependencies { testImplementation "org.mockito:mockito-core:${rootProject.ext.mockitoVersion}" } -allprojects { - tasks.withType(JavaCompile).tap { - configureEach { - // options.compilerArgs << "-Xlint:deprecation"; - options.compilerArgs << "-Xlint:unchecked" - } - } -} - def props = new Properties() // For locally signed builds only, Google Play signs the bundle if (rootProject.file("release.properties").exists()) { diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index 8a682b1ce..914f595a2 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -1,5 +1,5 @@ - + - - - - - - - - - - - - - - - - - - - diff --git a/app/res/layout/detail.xml b/app/res/layout/detail.xml index 826afc59c..b2e51ac4a 100644 --- a/app/res/layout/detail.xml +++ b/app/res/layout/detail.xml @@ -88,140 +88,133 @@ - + android:layout_below="@id/appbarlayout" + android:orientation="vertical"> - + android:layout_height="wrap_content" /> - + - + android:layout_height="match_parent" + android:layout_margin="@dimen/activity_margin" + android:orientation="vertical"> - + android:layout_height="wrap_content" + android:layout_marginTop="1px" + android:prompt="@string/Type" + android:text="@string/Sport" /> - - - - - - - - - - - + + + + android:background="@android:color/black" + android:orientation="vertical" + android:visibility="gone"> - + android:layout_gravity="center" + android:text="@string/Heartrate_zones_distribution" + android:textAlignment="center" + android:textColor="@android:color/white" /> + - - - - - - + + + + + + + + android:layout_height="match_parent" /> + - - + + android:orientation="vertical" + android:weightSum="1" /> + - - - - - + + + + + + - - - - + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:minWidth="48dp" + android:minHeight="48dp" /> - + - + - + - - + + - + + + android:padding="16dp"> + android:gravity="bottom|start" + android:orientation="horizontal"> - - - - - - - - - - - - - - - - - - - + + + + + + - - + app:srcCompat="@drawable/ic_watch_white_24dp" /> - - - + + + + + - - -