Skip to content

Commit c7b87a9

Browse files
committed
Fixed JSON error in custom json package
1 parent 2838331 commit c7b87a9

5 files changed

Lines changed: 20 additions & 5 deletions

File tree

.idea/artifacts/VidSnapKit_jvm_2_0_7.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@ plugins {
2121
kotlin("multiplatform") version "1.7.22"
2222
id("convention.publication")
2323
id("com.android.library")
24-
id("org.jetbrains.kotlin.android") version "1.7.22" apply false
2524
}
2625

2726
group = "io.github.udhayarajan"
28-
version = "2.0.6"
27+
version = "2.0.7"
2928
//Version Naming incremented if "<NEW_FEATURE_ADDED>.<WORKED_ON_BUG>.<BETA_VERSION_COUNT>"
3029

3130
repositories {
@@ -34,7 +33,7 @@ repositories {
3433
}
3534

3635

37-
kotlin {
36+
kotlin {
3837
jvm {
3938
compilations.all {
4039
kotlinOptions.jvmTarget = "11"
@@ -51,7 +50,7 @@ repositories {
5150
val ktor_version = "2.0.1"
5251

5352
@SuppressLint("DuplicatePlatformClasses")
54-
val jvmMain by getting{
53+
val jvmMain by getting {
5554
dependencies {
5655
// https://mvnrepository.com/artifact/org.json/json
5756
implementation("org.json:json:20220924")
@@ -87,6 +86,7 @@ repositories {
8786
android {
8887
compileSdk = 33
8988
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
89+
sourceSets["main"].java.srcDir("src/androidMain/kotlin/")
9090
defaultConfig {
9191
minSdk = 21
9292
targetSdk = 33
@@ -101,4 +101,9 @@ android {
101101
}
102102
dependencies {
103103
implementation("androidx.core:core-ktx:1.9.0")
104+
testImplementation(project(mapOf("path" to ":")))
105+
testImplementation(project(mapOf("path" to ":")))
106+
testImplementation(project(mapOf("path" to ":")))
107+
androidTestImplementation(project(mapOf("path" to ":")))
108+
androidTestImplementation(project(mapOf("path" to ":")))
104109
}

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ pluginManagement {
3333
rootProject.name = "VidSnapKit"
3434
includeBuild("convention-plugins")
3535
include("java-json-lib")
36+
include(":sampleapk")

src/commonTest/kotlin/DemoTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DemoTest {
3838
val extractor = Extractor.findExtractor(url)
3939
runBlocking {
4040
extractor?.apply {
41-
// cookies="csrftoken=wP8Wm7bbgKhv0LSq6PQSLM9OiVRevkOD;ds_user_id=48252728893;mid=Y1a44wALAAGo0YfkaF9Gz5CObmdY;sessionid=48252728893%3ACSdZDAoXf2QHQJ%3A2%3AAYduHPQ_19ArTnoweFlreXw0wKgiNSZrthoCUkZn9A"
41+
// cookies="APPROPRIATE COOKIES"
4242
start {
4343
when (it) {
4444
is Result.Failed -> {

0 commit comments

Comments
 (0)