Skip to content

Commit

Permalink
Merge pull request #33 from TEAM-PREAT/fix/access-modifiers
Browse files Browse the repository at this point in the history
[fix/access-modifiers] Update Access Modifiers
  • Loading branch information
onseok authored Dec 28, 2023
2 parents 892b0e7 + 429666e commit 043fcc0
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins {

allprojects {
group = "io.github.team-preat"
version = "0.3.1"
version = "0.3.2"
}

nexusPublishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ actual class CameraCaptureLauncher actual constructor(
}
}

fun Context.createImageFile(): File {
private fun Context.createImageFile(): File {
// Generate a file name using the current time
val timeStamp = SimpleDateFormat("yyyy-MM-dd_HH-mm-ss", Locale.getDefault()).format(Date())
// Add a unique identifier to prevent file name duplication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ package com.preat.peekaboo.camera

import java.util.UUID

actual fun createUUID(): String = UUID.randomUUID().toString()
internal actual fun createUUID(): String = UUID.randomUUID().toString()
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
*/
package com.preat.peekaboo.camera

expect fun createUUID(): String
internal expect fun createUUID(): String
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ actual fun rememberCameraCaptureLauncher(
}
}

class StrongReferenceDelegate(
private class StrongReferenceDelegate(
private val onResult: (ByteArray?) -> Unit,
) : NSObject(), UIImagePickerControllerDelegateProtocol, UINavigationControllerDelegateProtocol {
override fun imagePickerController(
Expand Down Expand Up @@ -138,7 +138,7 @@ private sealed interface CameraAccess {
}

@OptIn(ExperimentalForeignApi::class)
inline fun NSData.toByteArray(): ByteArray {
private inline fun NSData.toByteArray(): ByteArray {
val size = length.toInt()
val byteArray = ByteArray(size)
if (size > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ import platform.CoreFoundation.CFUUIDCreateString
import platform.Foundation.CFBridgingRelease

@OptIn(ExperimentalForeignApi::class)
actual fun createUUID(): String = CFBridgingRelease(CFUUIDCreateString(null, CFUUIDCreate(null))) as String
internal actual fun createUUID(): String = CFBridgingRelease(CFUUIDCreateString(null, CFUUIDCreate(null))) as String
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private fun pickSingleImage(
}

@Composable
fun pickMultipleImages(
private fun pickMultipleImages(
selectionMode: SelectionMode.Multiple,
resizeOptions: ResizeOptions,
onResult: (List<ByteArray>) -> Unit,
Expand Down Expand Up @@ -146,7 +146,7 @@ actual class ImagePickerLauncher actual constructor(
}
}

fun resizeImage(
private fun resizeImage(
context: Context,
uri: Uri,
width: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ private fun BoxScope.RealDeviceCamera(
}

@OptIn(ExperimentalForeignApi::class)
inline fun NSData.toByteArray(): ByteArray {
private inline fun NSData.toByteArray(): ByteArray {
val size = length.toInt()
val byteArray = ByteArray(size)
if (size > 0) {
Expand Down

0 comments on commit 043fcc0

Please sign in to comment.