Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infomaniak/android-core
Infomaniak Core library for Android (many purposes)
https://github.com/infomaniak/android-core
Last synced: about 2 months ago
JSON representation
Infomaniak Core library for Android (many purposes)
- Host: GitHub
- URL: https://github.com/infomaniak/android-core
- Owner: Infomaniak
- License: gpl-3.0
- Created: 2021-04-19T10:05:30.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T13:37:52.000Z (about 2 months ago)
- Last Synced: 2024-11-07T09:51:58.200Z (about 2 months ago)
- Language: Kotlin
- Homepage:
- Size: 1.64 MB
- Stars: 11
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Infomaniak Android Core library
Infomaniak Core library for Android (many purposes)
## Installation
Import the project as a git modsub-module in the root folder of your project
## Use
Init the `InfomaniakCore` object in `MainApplication` and configure it like this :
```
InfomaniakCore.init(
this,
BuildConfig.VERSION_NAME,
BuildConfig.API_APP_TOKEN,
BuildConfig.VERSION_CODE,
BuildConfig.DEBUG
)
```You'll be able to call the method `getHeaders()` everywhere in your app, as long as you've initiated the InfomaniakCore library in
`MainApplication`. Like this example :```
val request = Request.Builder()
.url(url)
.headers(getHeaders())
.post(requestBody)
.build()
```## What does it contain
* Infomaniak basic colors
* Basic and reusable strings (for Infomaniak)
* Models
* Some actions relatives to HTTP## License
Copyright 2021-2023 Infomaniak Network SA
This program 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.This program 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 this program. If not, see .