-
-
Notifications
You must be signed in to change notification settings - Fork 733
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* update changelog * Updated dependency quote marks in setup docs (#735) * remove build-log dump.txt (#724) * Corrected `applicationContext` to `module` (#779) Updated documentation as per issue #131 in change log * Fix typo in Getting Started with Ktor (#796) * Koin MP setup docv * Fix KoinTestRule test exception handling. Fixes gh-803 Co-authored-by: Arnaud Giuliani <giuliani.arnaud@gmail.com> Co-authored-by: Rajanikant Deshmukh <rajanikant.deshmukh@gmail.com> Co-authored-by: Alexander Falb <221837+elexx@users.noreply.github.com> Co-authored-by: Dacre Denny <dacre@mooce.co.nz> Co-authored-by: Marcus Ramsden <marcus@bitsden.com> Co-authored-by: Jan Mottl <jan.mottl@ackee.cz>
- Loading branch information
1 parent
39f1c3e
commit da6c19e
Showing
14 changed files
with
238 additions
and
3,236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Setup Koin Multiplatform for your project {docsify-ignore-all} | ||
|
||
### Current Version | ||
|
||
Here are the current versions of Koin: | ||
|
||
```groovy | ||
// Current stable version | ||
koin_version= "3.0.0-alpha-2" | ||
``` | ||
|
||
### Gradle dependencies | ||
|
||
Add the following Gradle dependencies to add Koin to your project: | ||
|
||
?> Koin packages are published on JCenter | ||
|
||
```groovy | ||
// Add Jcenter to your repositories if needed | ||
repositories { | ||
jcenter() | ||
} | ||
``` | ||
|
||
<!-- tabs:start --> | ||
|
||
#### **Kotlin** | ||
|
||
```groovy | ||
// Koin for Kotlin | ||
implementation "org.koin:koin-core-jvm:$koin_version" | ||
// Koin Extended & experimental features | ||
implementation "org.koin:koin-core-ext:$koin_version" | ||
// Koin for Unit tests | ||
testImplementation "org.koin:koin-test-jvm:$koin_version" | ||
``` | ||
|
||
#### **Gradle Plugin** | ||
|
||
```groovy | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath "org.koin:koin-gradle-plugin:$koin_version" | ||
} | ||
} | ||
apply plugin: 'koin' | ||
``` | ||
|
||
#### **Android** | ||
|
||
```groovy | ||
// Koin for Android | ||
implementation "org.koin:koin-android:$koin_version" | ||
// Koin Android Scope feature | ||
implementation "org.koin:koin-android-scope:$koin_version" | ||
// Koin Android ViewModel feature | ||
implementation "org.koin:koin-android-viewmodel:$koin_version" | ||
``` | ||
|
||
#### **AndroidX** | ||
|
||
```groovy | ||
// Koin AndroidX Scope feature | ||
implementation "org.koin:koin-androidx-scope:$koin_version" | ||
// Koin AndroidX ViewModel feature | ||
implementation "org.koin:koin-androidx-viewmodel:$koin_version" | ||
// Koin AndroidX Fragment Factory (unstable version) | ||
implementation "org.koin:koin-androidx-fragment:$koin_version" | ||
``` | ||
|
||
#### **Ktor** | ||
|
||
```groovy | ||
// Koin for Ktor Kotlin | ||
implementation "org.koin:koin-ktor:$koin_version" | ||
``` | ||
|
||
<!-- tabs:end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Setup Koin Multiplatform for your project {docsify-ignore-all} | ||
|
||
### Current Version | ||
|
||
Here are the current versions of Koin: | ||
|
||
```groovy | ||
// Current stable version | ||
koin_version= "3.0.0-alpha-2" | ||
``` | ||
|
||
### Gradle dependencies | ||
|
||
Add the following Gradle dependencies to add Koin to your project: | ||
|
||
?> Koin packages are published on JCenter | ||
|
||
```groovy | ||
// Add Jcenter to your repositories if needed | ||
repositories { | ||
jcenter() | ||
} | ||
``` | ||
|
||
<!-- tabs:start --> | ||
|
||
#### **Kotlin** | ||
|
||
```groovy | ||
// Koin for Kotlin | ||
implementation "org.koin:koin-core-jvm:$koin_version" | ||
// Koin Extended & experimental features | ||
implementation "org.koin:koin-core-ext:$koin_version" | ||
// Koin for Unit tests | ||
testImplementation "org.koin:koin-test-jvm:$koin_version" | ||
``` | ||
|
||
#### **Gradle Plugin** | ||
|
||
```groovy | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath "org.koin:koin-gradle-plugin:$koin_version" | ||
} | ||
} | ||
apply plugin: 'koin' | ||
``` | ||
|
||
#### **Android** | ||
|
||
```groovy | ||
// Koin for Android | ||
implementation "org.koin:koin-android:$koin_version" | ||
// Koin Android Scope feature | ||
implementation "org.koin:koin-android-scope:$koin_version" | ||
// Koin Android ViewModel feature | ||
implementation "org.koin:koin-android-viewmodel:$koin_version" | ||
``` | ||
|
||
#### **AndroidX** | ||
|
||
```groovy | ||
// Koin AndroidX Scope feature | ||
implementation "org.koin:koin-androidx-scope:$koin_version" | ||
// Koin AndroidX ViewModel feature | ||
implementation "org.koin:koin-androidx-viewmodel:$koin_version" | ||
// Koin AndroidX Fragment Factory (unstable version) | ||
implementation "org.koin:koin-androidx-fragment:$koin_version" | ||
``` | ||
|
||
#### **Ktor** | ||
|
||
```groovy | ||
// Koin for Ktor Kotlin | ||
implementation "org.koin:koin-ktor:$koin_version" | ||
``` | ||
|
||
<!-- tabs:end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.