Skip to content

Commit

Permalink
Rename repository to datetime-wheel-picker
Browse files Browse the repository at this point in the history
  • Loading branch information
darkokoa committed Feb 27, 2024
1 parent 10ea931 commit d91a676
Show file tree
Hide file tree
Showing 33 changed files with 71 additions and 71 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Chrono Wheel Picker (work-in-progress 👷🔧️👷‍♀️⛏)
# DateTime Wheel Picker (work-in-progress 👷🔧️👷‍♀️⛏)
Compose Multiplatform implementation of [WheelPickerCompose](https://github.com/commandiron/WheelPickerCompose)
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ kotlin {
}

android {
namespace = "dev.darkokoa.chronowheelpicker"
namespace = "dev.darkokoa.datetimewheelpicker"
compileSdk = 34

defaultConfig {
Expand Down Expand Up @@ -103,7 +103,7 @@ compose.desktop {

nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "dev.darkokoa.chronowheelpicker.desktopApp"
packageName = "dev.darkokoa.datetimewheelpicker.desktopApp"
packageVersion = "1.0.0"
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker
package dev.darkokoa.datetimewheelpicker

import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
Expand All @@ -8,12 +8,12 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import dev.darkokoa.chronowheelpicker.core.CYBER_ERA
import dev.darkokoa.chronowheelpicker.core.DefaultWheelDatePicker
import dev.darkokoa.chronowheelpicker.core.EPOCH
import dev.darkokoa.chronowheelpicker.core.SelectorProperties
import dev.darkokoa.chronowheelpicker.core.WheelPickerDefaults
import dev.darkokoa.chronowheelpicker.core.now
import dev.darkokoa.datetimewheelpicker.core.CYBER_ERA
import dev.darkokoa.datetimewheelpicker.core.DefaultWheelDatePicker
import dev.darkokoa.datetimewheelpicker.core.EPOCH
import dev.darkokoa.datetimewheelpicker.core.SelectorProperties
import dev.darkokoa.datetimewheelpicker.core.WheelPickerDefaults
import dev.darkokoa.datetimewheelpicker.core.now
import kotlinx.datetime.LocalDate

@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker
package dev.darkokoa.datetimewheelpicker

import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
Expand All @@ -8,12 +8,12 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import dev.darkokoa.chronowheelpicker.core.CYBER_ERA
import dev.darkokoa.chronowheelpicker.core.DefaultWheelDateTimePicker
import dev.darkokoa.chronowheelpicker.core.EPOCH
import dev.darkokoa.chronowheelpicker.core.SelectorProperties
import dev.darkokoa.chronowheelpicker.core.TimeFormat
import dev.darkokoa.chronowheelpicker.core.WheelPickerDefaults
import dev.darkokoa.datetimewheelpicker.core.CYBER_ERA
import dev.darkokoa.datetimewheelpicker.core.DefaultWheelDateTimePicker
import dev.darkokoa.datetimewheelpicker.core.EPOCH
import dev.darkokoa.datetimewheelpicker.core.SelectorProperties
import dev.darkokoa.datetimewheelpicker.core.TimeFormat
import dev.darkokoa.datetimewheelpicker.core.WheelPickerDefaults
import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.TimeZone
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker
package dev.darkokoa.datetimewheelpicker

import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
Expand All @@ -8,13 +8,13 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import dev.darkokoa.chronowheelpicker.core.DefaultWheelTimePicker
import dev.darkokoa.chronowheelpicker.core.MAX
import dev.darkokoa.chronowheelpicker.core.MIN
import dev.darkokoa.chronowheelpicker.core.SelectorProperties
import dev.darkokoa.chronowheelpicker.core.TimeFormat
import dev.darkokoa.chronowheelpicker.core.WheelPickerDefaults
import dev.darkokoa.chronowheelpicker.core.now
import dev.darkokoa.datetimewheelpicker.core.DefaultWheelTimePicker
import dev.darkokoa.datetimewheelpicker.core.MAX
import dev.darkokoa.datetimewheelpicker.core.MIN
import dev.darkokoa.datetimewheelpicker.core.SelectorProperties
import dev.darkokoa.datetimewheelpicker.core.TimeFormat
import dev.darkokoa.datetimewheelpicker.core.WheelPickerDefaults
import dev.darkokoa.datetimewheelpicker.core.now
import kotlinx.datetime.LocalTime

@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import kotlinx.datetime.Clock
import kotlinx.datetime.LocalTime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import kotlinx.datetime.LocalDate
import kotlinx.datetime.LocalDateTime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.ExperimentalFoundationApi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.core
package dev.darkokoa.datetimewheelpicker.core

import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
Expand All @@ -9,9 +9,9 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import dev.darkokoa.chronowheelpicker.core.SelectorProperties
import dev.darkokoa.chronowheelpicker.core.WheelPicker
import dev.darkokoa.chronowheelpicker.core.WheelPickerDefaults
import dev.darkokoa.datetimewheelpicker.core.SelectorProperties
import dev.darkokoa.datetimewheelpicker.core.WheelPicker
import dev.darkokoa.datetimewheelpicker.core.WheelPickerDefaults

@Composable
fun WheelTextPicker(
Expand Down
8 changes: 4 additions & 4 deletions sample/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ kotlin {
}
}
commonMain.dependencies {
implementation(project(":chrono-wheel-picker"))
implementation(project(":datetime-wheel-picker"))

implementation(compose.runtime)
implementation(compose.material3)
Expand Down Expand Up @@ -76,14 +76,14 @@ kotlin {
}

android {
namespace = "dev.darkokoa.chronowheelpicker"
namespace = "dev.darkokoa.datetimewheelpicker"
compileSdk = 34

defaultConfig {
minSdk = 24
targetSdk = 34

applicationId = "dev.darkokoa.chronowheelpicker.androidApp"
applicationId = "dev.darkokoa.datetimewheelpicker.androidApp"
versionCode = 1
versionName = "1.0.0"
}
Expand All @@ -110,7 +110,7 @@ compose.desktop {

nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "dev.darkokoa.chronowheelpicker.desktopApp"
packageName = "dev.darkokoa.datetimewheelpicker.desktopApp"
packageVersion = "1.0.0"
}
}
Expand Down
2 changes: 1 addition & 1 deletion sample/composeApp/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<application
android:name=".AndroidApp"
android:icon="@android:drawable/ic_menu_compass"
android:label="chrono-wheel-picker"
android:label="datetime-wheel-picker"
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar">
<activity
android:name=".AppActivity"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker
package dev.darkokoa.datetimewheelpicker

import android.app.Application
import android.content.Intent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.theme
package dev.darkokoa.datetimewheelpicker.theme

import android.app.Activity
import android.graphics.Color
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker
package dev.darkokoa.datetimewheelpicker

import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Arrangement
Expand All @@ -15,9 +15,9 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
import dev.darkokoa.chronowheelpicker.core.TimeFormat
import dev.darkokoa.chronowheelpicker.core.WheelPickerDefaults
import dev.darkokoa.chronowheelpicker.theme.AppTheme
import dev.darkokoa.datetimewheelpicker.core.TimeFormat
import dev.darkokoa.datetimewheelpicker.core.WheelPickerDefaults
import dev.darkokoa.datetimewheelpicker.theme.AppTheme
import kotlinx.datetime.Clock
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.TimeZone
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.theme
package dev.darkokoa.datetimewheelpicker.theme

import androidx.compose.ui.graphics.Color

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.theme
package dev.darkokoa.datetimewheelpicker.theme

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.shape.RoundedCornerShape
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker
package dev.darkokoa.datetimewheelpicker

import platform.Foundation.NSURL
import platform.UIKit.UIApplication
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.theme
package dev.darkokoa.datetimewheelpicker.theme

import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
Expand Down
2 changes: 1 addition & 1 deletion sample/composeApp/src/iosMain/kotlin/main.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import androidx.compose.ui.window.ComposeUIViewController
import dev.darkokoa.chronowheelpicker.App
import dev.darkokoa.datetimewheelpicker.App
import platform.UIKit.UIViewController

fun MainViewController(): UIViewController = ComposeUIViewController { App() }
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker
package dev.darkokoa.datetimewheelpicker

import kotlinx.browser.window

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.theme
package dev.darkokoa.datetimewheelpicker.theme

import androidx.compose.runtime.Composable

Expand Down
4 changes: 2 additions & 2 deletions sample/composeApp/src/jsMain/kotlin/main.kt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.window.CanvasBasedWindow
import dev.darkokoa.chronowheelpicker.App
import dev.darkokoa.datetimewheelpicker.App
import org.jetbrains.skiko.wasm.onWasmReady

@OptIn(ExperimentalComposeUiApi::class)
fun main() {
onWasmReady {
CanvasBasedWindow("chrono-wheel-picker") {
CanvasBasedWindow("datetime-wheel-picker") {
App()
}
}
Expand Down
2 changes: 1 addition & 1 deletion sample/composeApp/src/jsMain/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>chrono-wheel-picker</title>
<title>datetime-wheel-picker</title>
<script src="skiko.js"></script>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker
package dev.darkokoa.datetimewheelpicker

import java.awt.Desktop
import java.net.URI
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.darkokoa.chronowheelpicker.theme
package dev.darkokoa.datetimewheelpicker.theme

import androidx.compose.runtime.Composable

Expand Down
4 changes: 2 additions & 2 deletions sample/composeApp/src/jvmMain/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState
import java.awt.Dimension
import dev.darkokoa.chronowheelpicker.App
import dev.darkokoa.datetimewheelpicker.App

fun main() = application {
Window(
title = "chrono-wheel-picker",
title = "datetime-wheel-picker",
state = rememberWindowState(width = 800.dp, height = 600.dp),
onCloseRequest = ::exitApplication,
) {
Expand Down
14 changes: 7 additions & 7 deletions sample/iosApp/iosApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
A93A953729CC810C00F8E227 /* chrono-wheel-picker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "chrono-wheel-picker.app"; sourceTree = BUILT_PRODUCTS_DIR; };
A93A953729CC810C00F8E227 /* datetime-wheel-picker.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "datetime-wheel-picker.app"; sourceTree = BUILT_PRODUCTS_DIR; };
A93A953A29CC810C00F8E227 /* iosApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iosApp.swift; sourceTree = "<group>"; };
A93A953E29CC810D00F8E227 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
A93A954129CC810D00F8E227 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -42,7 +42,7 @@
A93A953829CC810C00F8E227 /* Products */ = {
isa = PBXGroup;
children = (
A93A953729CC810C00F8E227 /* chrono-wheel-picker.app */,
A93A953729CC810C00F8E227 /* datetime-wheel-picker.app */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -90,7 +90,7 @@
);
name = iosApp;
productName = iosApp;
productReference = A93A953729CC810C00F8E227 /* chrono-wheel-picker.app */;
productReference = A93A953729CC810C00F8E227 /* datetime-wheel-picker.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
Expand Down Expand Up @@ -312,8 +312,8 @@
"-framework",
ComposeApp,
);
PRODUCT_BUNDLE_IDENTIFIER = dev.darkokoa.chronowheelpicker.iosApp;
PRODUCT_NAME = "chrono-wheel-picker";
PRODUCT_BUNDLE_IDENTIFIER = dev.darkokoa.datetimewheelpicker.iosApp;
PRODUCT_NAME = "datetime-wheel-picker";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down Expand Up @@ -349,8 +349,8 @@
"-framework",
ComposeApp,
);
PRODUCT_BUNDLE_IDENTIFIER = dev.darkokoa.chronowheelpicker.iosApp;
PRODUCT_NAME = "chrono-wheel-picker";
PRODUCT_BUNDLE_IDENTIFIER = dev.darkokoa.datetimewheelpicker.iosApp;
PRODUCT_NAME = "datetime-wheel-picker";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rootProject.name = "chrono-wheel-picker"
rootProject.name = "datetime-wheel-picker"
include(":sample:composeApp")
include(":chrono-wheel-picker")
include(":datetime-wheel-picker")

pluginManagement {
repositories {
Expand Down

0 comments on commit d91a676

Please sign in to comment.