Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(init): the warning and example for a dagger users #119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions source/includes/_init.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@ plugins {
// Kotlin 2.0.0
// Gradle 8.8
// Android Gradle Plugin 8.5.1

// If your application uses Dagger for dependency injection, don't delete Dagger dependencies.
// If you use Dagger, its dependencies and the kapt plugin must remain in your gradle files.
// The structure for such a project should look similar to the example below:

plugins {
id 'kotlin-kapt'
}

dependencies {
implementation 'com.rees46:rees46-sdk:+'
implementation 'com.google.dagger:dagger:DAGGER_VERSION'
kapt 'com.google.dagger:dagger-compiler:DAGGER_COMPILER_VERSION'
}
```

```java
Expand Down Expand Up @@ -156,6 +170,14 @@ apply plugin: 'com.google.gms.google-services'

Before using API you have to setup SDK.

<aside class="warning">
If your mobile application uses Dagger for dependency injection, make sure to keep the Dagger dependencies and the kapt plugin in your gradle files.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

чо ты сделал? в p заверни блин


An example is provided in this documentation.

If you are having trouble switching to version 2.0 of the Android SDK or newer, refer to the troubleshooting section in our guides.
</aside>

## Start session

```shell
Expand Down