Skip to content

Commit

Permalink
Documentation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Feb 25, 2024
1 parent dd6be12 commit 0868b18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 5 additions & 8 deletions docs/INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

Add the dependency from Maven Central to your app module's (not top-level) `build.gradle.kts` file:

```groovy
```kotlin
dependencies {
implementation("dev.hotwire:turbo:<latest-version>")
}
Expand All @@ -15,17 +14,15 @@ dependencies {

See the [latest version](https://search.maven.org/artifact/dev.hotwire/turbo) available on Maven Central.

_Note: As of May 1, 2021, artifacts will no longer be released to JCenter, since [it's shutting down](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/)._

## Required `minSdkVersion`

Android SDK 34 (or greater) is required as the `minSdkVersion` in your app module's `build.gradle.kts` file:
Android SDK 26 (or greater) is required as the `minSdkVersion` in your app module's `build.gradle.kts` file:

```groovy
```kotlin
compileSdk = 34

defaultConfig {
minSdkVersion = 34
minSdkVersion = 26
targetSdk = 34
// ...
}
Expand Down Expand Up @@ -58,7 +55,7 @@ export GITHUB_ACCESS_TOKEN='<your personal access token>'

Add the GitHub Packages maven repository and the dependency to your app module's `build.gradle.kts` file:

```groovy
```kotlin
repositories {
maven {
name = "GitHubPackages"
Expand Down
3 changes: 0 additions & 3 deletions docs/QUICK-START.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ The Turbo extension of this class, `TurboSessionNavHostFragment`, along with bei
In its simplest form, the implementation of your `TurboSessionNavHostFragment` will look like:

**`MainSessionNavHostFragment`:**

```kotlin
import dev.hotwire.turbo.session.TurboSessionNavHostFragment

Expand Down Expand Up @@ -66,7 +65,6 @@ You need to create a layout resource file that your `TurboActivity` will use to
Android Jetpack provides a [`FragmentContainerView`](https://developer.android.com/reference/androidx/fragment/app/FragmentContainerView) to contain `NavHostFragment` navigation. In its simplest form, your Activity layout file will look like:

**`res/layout/activity_main.xml`:**

```xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
Expand Down Expand Up @@ -125,7 +123,6 @@ You'll need to annotate each Fragment in your app with a `@TurboNavGraphDestinat
In its simplest form, your web Fragment will look like:

**`WebFragment.kt`:**

```kotlin
@TurboNavGraphDestination(uri = "turbo://fragment/web")
class WebFragment : TurboWebFragment()
Expand Down

0 comments on commit 0868b18

Please sign in to comment.