Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Markdown fix, align with https://android.developer.tripgo.com
  • Loading branch information
nighthawk authored Nov 7, 2022
1 parent d0e8e72 commit 36d1e37
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ dependencies {
implementation 'com.github.skedgo.tripkit-android:TripKitAndroid:<insert-newest-version-here>'
}
```
[![Release](https://jitpack.io/v/skedgo/tripkit-android.svg)]
(https://jitpack.io/#skedgo/tripkit-android)
[![Release](https://jitpack.io/v/skedgo/tripkit-android.svg)](https://jitpack.io/#skedgo/tripkit-android)

For a full setup, you can have a look at TripKitSamples' build file [here](https://github.com/skedgo/tripkit-android/blob/dev/TripKitSamples/build.gradle).

Expand All @@ -50,23 +49,6 @@ An API key is necessary to use TripKit's services, such as A-2-B routing, and al

We recommend to have an `Application` subclass. Next, in the `onCreate()` method, you can initiate following setup:

for `<= v1.23.0-dev`
```kotlin
class App : Application() {
override fun onCreate() {
super.onCreate()
JodaTimeAndroid.init(this)
TripKit.initialize(
Configs.builder()
.context(this)
.key { Key.ApiKey("YOUR_API_KEY") }
.build()
)
}
}

```

for `>= v2.1.43`
```kotlin
class App : Application() {
Expand Down

0 comments on commit 36d1e37

Please sign in to comment.