question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implementation documentation or sample app?

See original GitHub issue

Good day, I have some performance issue using Moshi as adapter and it says that Kotshi will be the current solution from this thread.

Unfortunately I do not understand how to properly implement this dependency as I can’t see any example of using this in a sample app so far I am facing an error Failed to resolve: se.ansman.kotshi:api:2.4.0.

This is my dependencies so far

//    kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.11.0'
    implementation 'com.squareup.moshi:moshi-kotlin:1.11.0'
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
    implementation 'com.squareup.retrofit2:converter-moshi:2.9.0'

    implementation 'se.ansman.kotshi:api:2.4.0'
    kapt 'se.ansman.kotshi:compiler:2.4.0'

    implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'

project level gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        google()
        mavenCentral()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        maven { url "https://jitpack.io" }
        maven { url "https://google.bintray.com/flexbox-layout" }
        maven { url = "https://dl.bintray.com/kotlin/kotlin-eap" }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.0-alpha10"
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-M1'

        classpath 'com.google.gms:google-services:4.3.5'

        // Add the Crashlytics Gradle plugin.
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        maven { url "https://jitpack.io" }
        maven { url "https://google.bintray.com/flexbox-layout" }
        maven { url = "https://dl.bintray.com/kotlin/kotlin-eap" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ansmancommented, Apr 13, 2021

Looks like the API artifact didn’t sync properly to Maven Central. I’ve synced it again and it should work soon. Until then you can use version 2.3.3

0reactions
ansmancommented, Apr 13, 2021

@ArcherEmiya05 No problem, sorry for the trouble. 2.4.0 is synced now: https://repo1.maven.org/maven2/se/ansman/kotshi/api/2.4.0/

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Great Examples of Developer Documentation - Zapier
This post shows eight examples of great developer documentation, where the time invested yields great dividends for the app's teams.
Read more >
Technical Documentation in Software Development - AltexSoft
The common examples of process-related documents are standards, project documentation, such as project plans, test schedules, reports, meeting ...
Read more >
5 Examples of What Great Documentation Looks Like for ...
What Makes Digital Ocean Docs Great? Comprehensive separation of API Tutorials, Metadata Guides, and OAuth implementations for your application.
Read more >
Software Documentation Best Practices [With Examples]
In this guide, we cover software documentation types, examples, and best practices for improving the quality of your documentation process.
Read more >
Developing a Document-Based App
This sample app is a text editor, implementing a subclass of NSDocument called Document with a data model called Content . The Content...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found