Skip to content

Commit

Permalink
Fixed JSON error in custom json package
Browse files Browse the repository at this point in the history
  • Loading branch information
Udhayarajan committed Feb 10, 2023
1 parent 2838331 commit c7b87a9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .idea/artifacts/VidSnapKit_jvm_2_0_7.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ plugins {
kotlin("multiplatform") version "1.7.22"
id("convention.publication")
id("com.android.library")
id("org.jetbrains.kotlin.android") version "1.7.22" apply false
}

group = "io.github.udhayarajan"
version = "2.0.6"
version = "2.0.7"
//Version Naming incremented if "<NEW_FEATURE_ADDED>.<WORKED_ON_BUG>.<BETA_VERSION_COUNT>"

repositories {
Expand All @@ -34,7 +33,7 @@ repositories {
}


kotlin {
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "11"
Expand All @@ -51,7 +50,7 @@ repositories {
val ktor_version = "2.0.1"

@SuppressLint("DuplicatePlatformClasses")
val jvmMain by getting{
val jvmMain by getting {
dependencies {
// https://mvnrepository.com/artifact/org.json/json
implementation("org.json:json:20220924")
Expand Down Expand Up @@ -87,6 +86,7 @@ repositories {
android {
compileSdk = 33
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
sourceSets["main"].java.srcDir("src/androidMain/kotlin/")
defaultConfig {
minSdk = 21
targetSdk = 33
Expand All @@ -101,4 +101,9 @@ android {
}
dependencies {
implementation("androidx.core:core-ktx:1.9.0")
testImplementation(project(mapOf("path" to ":")))
testImplementation(project(mapOf("path" to ":")))
testImplementation(project(mapOf("path" to ":")))
androidTestImplementation(project(mapOf("path" to ":")))
androidTestImplementation(project(mapOf("path" to ":")))
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ pluginManagement {
rootProject.name = "VidSnapKit"
includeBuild("convention-plugins")
include("java-json-lib")
include(":sampleapk")
2 changes: 1 addition & 1 deletion src/commonTest/kotlin/DemoTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DemoTest {
val extractor = Extractor.findExtractor(url)
runBlocking {
extractor?.apply {
// cookies="csrftoken=wP8Wm7bbgKhv0LSq6PQSLM9OiVRevkOD;ds_user_id=48252728893;mid=Y1a44wALAAGo0YfkaF9Gz5CObmdY;sessionid=48252728893%3ACSdZDAoXf2QHQJ%3A2%3AAYduHPQ_19ArTnoweFlreXw0wKgiNSZrthoCUkZn9A"
// cookies="APPROPRIATE COOKIES"
start {
when (it) {
is Result.Failed -> {
Expand Down

0 comments on commit c7b87a9

Please sign in to comment.