Skip to content

Commit

Permalink
Use androidx Bundle, clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmb13 committed May 10, 2024
1 parent 168bcd4 commit 57505e9
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package co.zsmb.requirektx

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.core.bundle.Bundle

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Expand Down
4 changes: 3 additions & 1 deletion requirektx-bundle/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ android.namespace = "co.zsmb.requirektx.bundle"

kotlin {
sourceSets {
commonMain.dependencies {}
commonMain.dependencies {
api("org.jetbrains.androidx.core:core-bundle:1.0.0-rc01")
}
commonTest.dependencies {
implementation(libs.kotlin.test)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package co.zsmb.requirektx

import android.os.Bundle
import androidx.core.bundle.Bundle
import android.os.Parcelable

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

package co.zsmb.requirektx

import android.content.Intent
import android.os.Bundle
import android.os.Parcelable
import android.util.SparseArray
import java.io.Serializable
import androidx.core.bundle.Bundle

/**
* Returns the value associated with the given key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package co.zsmb.requirektx

import android.os.Bundle
import androidx.core.bundle.Bundle

/**
* Returns the value associated with the given key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

package co.zsmb.requirektx

import android.os.Bundle
import java.io.Serializable
import android.os.Parcelable
import androidx.core.bundle.Bundle

/**
* Returns the value associated with the given key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package co.zsmb.requirektx

import android.os.Binder
import android.os.Bundle
import androidx.core.bundle.Bundle
import android.os.Parcelable
import android.util.Size
import android.util.SizeF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package co.zsmb.requirektx

import android.location.Location
import android.net.Uri
import android.os.Bundle
import androidx.core.bundle.Bundle
import org.junit.Assert
import org.junit.Assert.assertEquals
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ package co.zsmb.requirektx

import android.location.Location
import android.net.Uri
import android.os.Bundle
import androidx.core.bundle.Bundle
import android.util.SparseArray
import org.junit.Assert
import org.junit.Assert.assertArrayEquals
import org.junit.Assert.assertEquals
import org.junit.Assert.assertThrows
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package co.zsmb.requirektx

import android.os.Bundle
import androidx.core.bundle.Bundle
import org.junit.Assert
import org.junit.Assert.assertEquals
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ package co.zsmb.requirektx
import android.location.Location
import android.net.Uri
import android.os.Binder
import android.os.Bundle
import android.util.Size
import android.util.SizeF
import androidx.core.bundle.Bundle
import org.junit.Assert.assertEquals
import org.junit.Assert.assertThrows
import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
Expand Down
1 change: 1 addition & 0 deletions requirektx-intent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ kotlin {
sourceSets {
commonMain.dependencies {
api(project(":requirektx-bundle"))
implementation("org.jetbrains.androidx.core:core-bundle:1.0.0-rc01")
}
commonTest.dependencies {
implementation(libs.kotlin.test)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package co.zsmb.requirektx

import android.content.Intent
import android.os.Bundle
import androidx.core.bundle.Bundle

/**
* Returns the extras of [this] Intent.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package co.zsmb.requirektx

import android.content.Intent
import android.os.Bundle
import androidx.core.bundle.Bundle
import android.os.Parcelable
import java.io.Serializable

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package co.zsmb.requirektx

import android.content.Intent
import android.os.Bundle
import androidx.core.bundle.Bundle

/**
* Returns the value associated with the given key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package co.zsmb.requirektx
import android.content.Intent
import android.location.Location
import android.net.Uri
import android.os.Bundle
import androidx.core.bundle.Bundle
import org.junit.Assert
import org.junit.Assert.assertArrayEquals
import org.junit.Assert.assertEquals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package co.zsmb.requirektx
import android.content.Intent
import android.location.Location
import android.net.Uri
import android.os.Bundle
import androidx.core.bundle.Bundle
import org.junit.Assert.assertEquals
import org.junit.Assert.assertThrows
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
package co.zsmb.requirektx

import android.content.Intent
import android.location.Location
import android.net.Uri
import android.os.Bundle
import org.junit.Assert
import org.junit.Assert.assertArrayEquals
import org.junit.Assert.assertEquals
import org.junit.Assert.assertThrows
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import java.lang.Exception
import java.util.Calendar
import java.util.UUID

@RunWith(RobolectricTestRunner::class)
internal class IntentTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package co.zsmb.requirektx

import android.os.Bundle
import androidx.core.bundle.Bundle
import androidx.navigation.NavBackStackEntry

/**
Expand Down

0 comments on commit 57505e9

Please sign in to comment.