This project contains the Cyface Android Utils Library which contains methods and classes used by multiple Cyface Libraries. This separation is required to avoid circular dependencies.
This library is published to the Github Package Registry.
To use it as a dependency in your app you need to:
-
Make sure you are authenticated to the repository:
-
You need a Github account with read-access to this Github repository
-
Create a personal access token on Github with "read:packages" permissions
-
Create or adjust a
local.properties
file in the project root containing:github.user=YOUR_USERNAME github.token=YOUR_ACCESS_TOKEN
-
Add the custom repository to your
build.gradle
:
def properties = new Properties() properties.load(new FileInputStream("local.properties")) repositories { // Other maven repositories, e.g.: google() mavenCentral() gradlePluginPortal() // Repository for this library maven { url = uri("https://maven.pkg.github.com/cyface-de/android-utils") credentials { username = properties.getProperty("github.user") password = properties.getProperty("github.token") } } }
-
-
Add this package as a dependency to your app’s
build.gradle
:dependencies { implementation "de.cyface:android-utils:$utilsVersion" }
-
Set the
$utilsVersion
gradle variable to the latest version.
This section is only relevant for developers of this library.
-
Make sure you are authenticated to the repository:
-
You need a Github account with write-access to this Github repository
-
Create a personal access token on Github with "write:packages" permissions
-
Copy
gradle.properties.template
togradle.properties
and adjust:githubUser=YOUR_USERNAME githubToken=YOUR_ACCESS_TOKEN
-
-
Execute the publish command
./gradlew publishAll
Copyright 2017-2023 Cyface GmbH
This file is part of the Cyface Utils for Android.
The Cyface Utils for Android is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Cyface Utils for Android is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the Cyface Utils for Android. If not, see http://www.gnu.org/licenses/.