From b64fbbe13790d262a6ca85db276c9d912fa955e5 Mon Sep 17 00:00:00 2001 From: Hernand Azevedo Date: Wed, 30 Nov 2022 09:26:13 -0300 Subject: [PATCH] feat: Feature/rename packages (#62) * Rename package Signed-off-by: Hernand Azevedo * Merge remote-tracking branch 'origin/main' into feature/rename-packages Signed-off-by: Hernand Azevedo * Rename package Signed-off-by: Hernand Azevedo Signed-off-by: Hernand Azevedo --- .../com/zup/nimbus/core/ActionEvent.kt | 8 ++--- .../{ => br}/com/zup/nimbus/core/Nimbus.kt | 24 ++++++------- .../com/zup/nimbus/core/ServerDrivenConfig.kt | 14 ++++---- .../zup/nimbus/core/ServerDrivenNavigator.kt | 4 +-- .../com/zup/nimbus/core/ServerDrivenState.kt | 14 ++++---- .../com/zup/nimbus/core/ServerDrivenView.kt | 4 +-- .../core/dependency/CommonDependency.kt | 2 +- .../zup/nimbus/core/dependency/Dependency.kt | 2 +- .../dependency/DependencyUpdateManager.kt | 2 +- .../zup/nimbus/core/dependency/Dependent.kt | 2 +- .../zup/nimbus/core/dependency/UpdateError.kt | 2 +- .../deserialization/AnyServerDrivenData.kt | 8 ++--- .../deserialization/SerializationError.kt | 2 +- .../zup/nimbus/core/expression/Expression.kt | 2 +- .../com/zup/nimbus/core/expression/Literal.kt | 2 +- .../zup/nimbus/core/expression/Operation.kt | 22 ++++++------ .../nimbus/core/expression/StateReference.kt | 20 +++++------ .../nimbus/core/expression/StringTemplate.kt | 14 ++++---- .../expression/parser/ExpressionParser.kt | 8 ++--- .../core/expression/parser/LiteralParser.kt | 8 ++--- .../core/expression/parser/OperationParser.kt | 12 +++---- .../expression/parser/StateReferenceParser.kt | 18 +++++----- .../expression/parser/StringTemplateParser.kt | 10 +++--- .../core/expression/parser/automaton.kt | 6 ++-- .../com/zup/nimbus/core/log/DefaultLogger.kt | 2 +- .../com/zup/nimbus/core/log/LogLevel.kt | 2 +- .../com/zup/nimbus/core/log/Logger.kt | 2 +- .../nimbus/core/network/DefaultHttpClient.kt | 6 ++-- .../nimbus/core/network/DefaultUrlBuilder.kt | 4 +-- .../nimbus/core/network/DefaultViewClient.kt | 8 ++--- .../com/zup/nimbus/core/network/HttpClient.kt | 2 +- .../com/zup/nimbus/core/network/UrlBuilder.kt | 2 +- .../com/zup/nimbus/core/network/ViewClient.kt | 8 ++--- .../zup/nimbus/core/network/ViewRequest.kt | 2 +- .../com/zup/nimbus/core/network/error.kt | 2 +- .../com/zup/nimbus/core/regex/FastRegex.kt | 2 +- .../com/zup/nimbus/core/regex/MatchGroups.kt | 2 +- .../com/zup/nimbus/core/regex/extensions.kt | 2 +- .../com/zup/nimbus/core/scope/CommonScope.kt | 4 +-- .../com/zup/nimbus/core/scope/LazilyScoped.kt | 2 +- .../com/zup/nimbus/core/scope/Scope.kt | 12 +++---- .../zup/nimbus/core/scope/StateOnlyScope.kt | 4 +-- .../zup/nimbus/core/tree/DefaultIdManager.kt | 2 +- .../com/zup/nimbus/core/tree/IdManager.kt | 2 +- .../nimbus/core/tree/ServerDrivenAction.kt | 6 ++-- .../zup/nimbus/core/tree/ServerDrivenEvent.kt | 8 ++--- .../zup/nimbus/core/tree/ServerDrivenNode.kt | 8 ++--- .../nimbus/core/tree/dynamic/DynamicAction.kt | 22 ++++++------ .../nimbus/core/tree/dynamic/DynamicEvent.kt | 34 +++++++++---------- .../tree/dynamic/builder/ActionBuilder.kt | 12 +++---- .../core/tree/dynamic/builder/EventBuilder.kt | 8 ++--- .../core/tree/dynamic/builder/NodeBuilder.kt | 24 ++++++------- .../nimbus/core/tree/dynamic/builder/error.kt | 2 +- .../tree/dynamic/container/NodeContainer.kt | 16 ++++----- .../dynamic/container/PropertyContainer.kt | 22 ++++++------ .../tree/dynamic/container/PropertyCopying.kt | 10 +++--- .../core/tree/dynamic/node/DynamicNode.kt | 22 ++++++------ .../core/tree/dynamic/node/ForEachNode.kt | 18 +++++----- .../nimbus/core/tree/dynamic/node/IfNode.kt | 12 +++---- .../nimbus/core/tree/dynamic/node/RootNode.kt | 4 +-- .../{ => br}/com/zup/nimbus/core/types.kt | 2 +- .../com/zup/nimbus/core/ui/UILibrary.kt | 8 ++--- .../zup/nimbus/core/ui/UILibraryManager.kt | 10 +++--- .../zup/nimbus/core/ui/action/condition.kt | 8 ++--- .../error/ActionDeserializationError.kt | 8 ++--- .../ui/action/error/ActionExecutionError.kt | 6 ++-- .../com/zup/nimbus/core/ui/action/log.kt | 10 +++--- .../zup/nimbus/core/ui/action/navigation.kt | 22 ++++++------ .../zup/nimbus/core/ui/action/sendRequest.kt | 20 +++++------ .../com/zup/nimbus/core/ui/action/setState.kt | 12 +++---- .../com/zup/nimbus/core/ui/action/utils.kt | 10 +++--- .../com/zup/nimbus/core/ui/coreUILibrary.kt | 32 ++++++++--------- .../zup/nimbus/core/ui/operations/array.kt | 6 ++-- .../zup/nimbus/core/ui/operations/logic.kt | 8 ++--- .../zup/nimbus/core/ui/operations/number.kt | 16 ++++----- .../zup/nimbus/core/ui/operations/other.kt | 10 +++--- .../zup/nimbus/core/ui/operations/string.kt | 12 +++---- .../com/zup/nimbus/core/utils/Null.kt | 2 +- .../{ => br}/com/zup/nimbus/core/utils/any.kt | 4 +-- .../com/zup/nimbus/core/utils/boolean.kt | 2 +- .../com/zup/nimbus/core/utils/json.kt | 2 +- .../com/zup/nimbus/core/utils/list.kt | 2 +- .../{ => br}/com/zup/nimbus/core/utils/map.kt | 4 +-- .../com/zup/nimbus/core/utils/number.kt | 2 +- .../com/zup/nimbus/core/utils/string.kt | 2 +- .../com/zup/nimbus/core}/AsyncUtils.kt | 2 +- .../com/zup/nimbus/core}/EmptyHttpClient.kt | 8 ++--- .../com/zup/nimbus/core}/JsonLoader.kt | 2 +- .../com/zup/nimbus/core}/NodeUtils.kt | 10 +++--- .../zup/nimbus/core}/ObservableHttpClient.kt | 10 +++--- .../com/zup/nimbus/core}/ObservableLogger.kt | 6 ++-- .../zup/nimbus/core}/ObservableNavigator.kt | 10 +++--- .../core}/integration/ActionObserverTest.kt | 22 ++++++------ .../core}/integration/StateResolutionTest.kt | 10 +++--- .../core}/integration/forEach/ForEachTest.kt | 14 ++++---- .../core}/integration/forEach/screens.kt | 2 +- .../core}/integration/ifThenElse/IfTest.kt | 14 ++++---- .../core}/integration/ifThenElse/screens.kt | 2 +- .../integration/navigation/NavigationTest.kt | 18 +++++----- .../integration/navigation/PreFetchTest.kt | 10 +++--- .../navigation/screenAssertions.kt | 6 ++-- .../integration/navigation/serverMock.kt | 2 +- .../integration/operations/OperationsTest.kt | 18 +++++----- .../integration/operations/serverMock.kt | 4 +-- .../sendRequest/SendRequestTest.kt | 18 +++++----- .../integration/sendRequest/serverMock.kt | 2 +- .../integration/setState/SetStateTest.kt | 18 +++++----- .../core}/integration/setState/screens.kt | 2 +- .../core}/performance/PerformanceTest.kt | 18 +++++----- .../zup/nimbus/core}/unity/FastRegexTest.kt | 8 ++--- .../nimbus/core}/unity/ServerDrivenState.kt | 4 +-- .../zup/nimbus/core}/unity/SimpleAction.kt | 8 ++--- .../com/zup/nimbus/core}/unity/SimpleEvent.kt | 22 ++++++------ .../core}/unity/action/ConditionTest.kt | 26 +++++++------- .../AnyServerDrivenDataTest.kt | 8 ++--- .../core}/unity/deserialization/AnyTest.kt | 4 +-- .../unity/deserialization/BooleanTest.kt | 4 +-- .../core}/unity/deserialization/DoubleTest.kt | 4 +-- .../core}/unity/deserialization/EnumTest.kt | 4 +-- .../core}/unity/deserialization/EventTest.kt | 4 +-- .../core}/unity/deserialization/FloatTest.kt | 4 +-- .../core}/unity/deserialization/IntTest.kt | 4 +-- .../core}/unity/deserialization/ListTest.kt | 4 +-- .../core}/unity/deserialization/LongTest.kt | 4 +-- .../core}/unity/deserialization/MapTest.kt | 4 +-- .../core}/unity/deserialization/StringTest.kt | 4 +-- .../core}/unity/expression/expression.kt | 22 ++++++------ .../core}/unity/network/DefaultHttpClient.kt | 16 ++++----- .../nimbus/core}/unity/network/UrlBuilder.kt | 12 +++---- .../unity/network/mocks/customHttpClient.kt | 8 ++--- .../unity/network/mocks/customUrlBuilder.kt | 4 +-- .../unity/network/mocks/httpEngineMock.kt | 2 +- .../zup/nimbus/core}/unity/operations/and.kt | 4 +-- .../core}/unity/operations/capitalize.kt | 4 +-- .../nimbus/core}/unity/operations/concat.kt | 4 +-- .../core}/unity/operations/condition.kt | 4 +-- .../nimbus/core}/unity/operations/contains.kt | 4 +-- .../nimbus/core}/unity/operations/divide.kt | 4 +-- .../zup/nimbus/core}/unity/operations/eq.kt | 4 +-- .../zup/nimbus/core}/unity/operations/gt.kt | 4 +-- .../zup/nimbus/core}/unity/operations/gte.kt | 4 +-- .../nimbus/core}/unity/operations/insert.kt | 4 +-- .../nimbus/core}/unity/operations/isEmpty.kt | 4 +-- .../nimbus/core}/unity/operations/isNull.kt | 4 +-- .../nimbus/core}/unity/operations/length.kt | 4 +-- .../core}/unity/operations/lowercase.kt | 4 +-- .../zup/nimbus/core}/unity/operations/lt.kt | 4 +-- .../zup/nimbus/core}/unity/operations/lte.kt | 4 +-- .../nimbus/core}/unity/operations/match.kt | 4 +-- .../nimbus/core}/unity/operations/multiply.kt | 4 +-- .../zup/nimbus/core}/unity/operations/not.kt | 4 +-- .../zup/nimbus/core}/unity/operations/or.kt | 4 +-- .../nimbus/core}/unity/operations/remove.kt | 4 +-- .../core}/unity/operations/removeIndex.kt | 4 +-- .../nimbus/core}/unity/operations/replace.kt | 4 +-- .../nimbus/core}/unity/operations/substr.kt | 4 +-- .../nimbus/core}/unity/operations/subtract.kt | 4 +-- .../zup/nimbus/core}/unity/operations/sum.kt | 4 +-- .../core}/unity/operations/uppercase.kt | 4 +-- .../nimbus/core}/unity/tree/NodeBuilder.kt | 10 +++--- .../zup/nimbus/core}/unity/utils/AnyTest.kt | 8 ++--- .../nimbus/core}/unity/utils/BooleanTest.kt | 4 +-- .../zup/nimbus/core}/unity/utils/JsonTest.kt | 8 ++--- .../zup/nimbus/core}/unity/utils/ListTest.kt | 4 +-- .../zup/nimbus/core}/unity/utils/MapTest.kt | 4 +-- .../nimbus/core}/unity/utils/StringTest.kt | 8 ++--- .../com/zup/nimbus/core/regex/FastRegex.kt | 2 +- .../com/zup/nimbus/core/utils/Null.kt | 2 +- .../com/zup/nimbus/core/JsonLoader.kt | 2 +- .../com/zup/nimbus/core/regex/FastRegex.kt | 2 +- .../com/zup/nimbus/core/utils/Null.kt | 2 +- .../com/zup/nimbus/core/JsonLoader.kt | 2 +- 172 files changed, 654 insertions(+), 654 deletions(-) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ActionEvent.kt (87%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/Nimbus.kt (71%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ServerDrivenConfig.kt (88%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ServerDrivenNavigator.kt (66%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ServerDrivenState.kt (91%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ServerDrivenView.kt (92%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/dependency/CommonDependency.kt (88%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/dependency/Dependency.kt (94%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/dependency/DependencyUpdateManager.kt (98%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/dependency/Dependent.kt (87%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/dependency/UpdateError.kt (82%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/deserialization/AnyServerDrivenData.kt (99%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/deserialization/SerializationError.kt (91%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/Expression.kt (77%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/Literal.kt (72%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/Operation.kt (70%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/StateReference.kt (65%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/StringTemplate.kt (73%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/parser/ExpressionParser.kt (90%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/parser/LiteralParser.kt (74%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/parser/OperationParser.kt (90%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/parser/StateReferenceParser.kt (77%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/parser/StringTemplateParser.kt (77%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/expression/parser/automaton.kt (96%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/log/DefaultLogger.kt (96%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/log/LogLevel.kt (58%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/log/Logger.kt (83%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/network/DefaultHttpClient.kt (91%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/network/DefaultUrlBuilder.kt (81%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/network/DefaultViewClient.kt (94%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/network/HttpClient.kt (92%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/network/UrlBuilder.kt (93%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/network/ViewClient.kt (83%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/network/ViewRequest.kt (94%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/network/error.kt (90%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/regex/FastRegex.kt (98%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/regex/MatchGroups.kt (95%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/regex/extensions.kt (89%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/scope/CommonScope.kt (82%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/scope/LazilyScoped.kt (96%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/scope/Scope.kt (90%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/scope/StateOnlyScope.kt (86%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/DefaultIdManager.kt (82%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/IdManager.kt (57%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/ServerDrivenAction.kt (91%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/ServerDrivenEvent.kt (91%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/ServerDrivenNode.kt (89%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/DynamicAction.kt (75%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/DynamicEvent.kt (67%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/builder/ActionBuilder.kt (84%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/builder/EventBuilder.kt (82%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/builder/NodeBuilder.kt (81%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/builder/error.kt (92%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/container/NodeContainer.kt (82%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/container/PropertyContainer.kt (89%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/container/PropertyCopying.kt (90%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/node/DynamicNode.kt (82%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/node/ForEachNode.kt (93%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/node/IfNode.kt (90%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/tree/dynamic/node/RootNode.kt (91%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/types.kt (86%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/UILibrary.kt (91%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/UILibraryManager.kt (89%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/action/condition.kt (64%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/action/error/ActionDeserializationError.kt (59%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/action/error/ActionExecutionError.kt (67%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/action/log.kt (59%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/action/navigation.kt (79%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/action/sendRequest.kt (80%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/action/setState.kt (70%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/action/utils.kt (52%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/coreUILibrary.kt (50%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/operations/array.kt (89%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/operations/logic.kt (82%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/operations/number.kt (81%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/operations/other.kt (89%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/ui/operations/string.kt (85%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/utils/Null.kt (91%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/utils/any.kt (99%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/utils/boolean.kt (65%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/utils/json.kt (98%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/utils/list.kt (94%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/utils/map.kt (95%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/utils/number.kt (99%) rename src/commonMain/kotlin/{ => br}/com/zup/nimbus/core/utils/string.kt (96%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/AsyncUtils.kt (97%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/EmptyHttpClient.kt (54%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/JsonLoader.kt (77%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/NodeUtils.kt (76%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/ObservableHttpClient.kt (84%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/ObservableLogger.kt (83%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/ObservableNavigator.kt (84%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/ActionObserverTest.kt (88%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/StateResolutionTest.kt (83%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/forEach/ForEachTest.kt (97%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/forEach/screens.kt (99%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/ifThenElse/IfTest.kt (94%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/ifThenElse/screens.kt (98%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/navigation/NavigationTest.kt (91%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/navigation/PreFetchTest.kt (96%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/navigation/screenAssertions.kt (96%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/navigation/serverMock.kt (99%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/operations/OperationsTest.kt (68%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/operations/serverMock.kt (86%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/sendRequest/SendRequestTest.kt (91%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/sendRequest/serverMock.kt (98%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/setState/SetStateTest.kt (95%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/integration/setState/screens.kt (99%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/performance/PerformanceTest.kt (88%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/FastRegexTest.kt (97%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/ServerDrivenState.kt (96%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/SimpleAction.kt (61%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/SimpleEvent.kt (59%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/action/ConditionTest.kt (77%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/AnyServerDrivenDataTest.kt (96%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/AnyTest.kt (89%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/BooleanTest.kt (94%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/DoubleTest.kt (95%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/EnumTest.kt (92%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/EventTest.kt (93%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/FloatTest.kt (95%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/IntTest.kt (96%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/ListTest.kt (97%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/LongTest.kt (95%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/MapTest.kt (97%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/deserialization/StringTest.kt (91%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/expression/expression.kt (96%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/network/DefaultHttpClient.kt (82%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/network/UrlBuilder.kt (77%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/network/mocks/customHttpClient.kt (68%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/network/mocks/customUrlBuilder.kt (56%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/network/mocks/httpEngineMock.kt (92%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/and.kt (88%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/capitalize.kt (84%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/concat.kt (90%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/condition.kt (85%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/contains.kt (93%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/divide.kt (92%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/eq.kt (94%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/gt.kt (92%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/gte.kt (93%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/insert.kt (88%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/isEmpty.kt (93%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/isNull.kt (81%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/length.kt (93%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/lowercase.kt (76%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/lt.kt (92%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/lte.kt (93%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/match.kt (80%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/multiply.kt (92%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/not.kt (79%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/or.kt (83%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/remove.kt (89%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/removeIndex.kt (89%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/replace.kt (79%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/substr.kt (76%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/subtract.kt (92%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/sum.kt (91%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/operations/uppercase.kt (76%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/tree/NodeBuilder.kt (64%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/utils/AnyTest.kt (97%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/utils/BooleanTest.kt (84%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/utils/JsonTest.kt (94%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/utils/ListTest.kt (86%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/utils/MapTest.kt (90%) rename src/commonTest/kotlin/{com.zup.nimbus.core => br/com/zup/nimbus/core}/unity/utils/StringTest.kt (81%) rename src/iosMain/kotlin/{ => br}/com/zup/nimbus/core/regex/FastRegex.kt (99%) rename src/iosMain/kotlin/{ => br}/com/zup/nimbus/core/utils/Null.kt (84%) rename src/iosTest/kotlin/{ => br}/com/zup/nimbus/core/JsonLoader.kt (97%) rename src/jvmMain/kotlin/{ => br}/com/zup/nimbus/core/regex/FastRegex.kt (97%) rename src/jvmMain/kotlin/{ => br}/com/zup/nimbus/core/utils/Null.kt (80%) rename src/jvmTest/kotlin/{ => br}/com/zup/nimbus/core/JsonLoader.kt (93%) diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ActionEvent.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ActionEvent.kt similarity index 87% rename from src/commonMain/kotlin/com/zup/nimbus/core/ActionEvent.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ActionEvent.kt index 89f0925..8c46b3b 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ActionEvent.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ActionEvent.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.tree.ServerDrivenAction -import com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.tree.ServerDrivenAction +import br.com.zup.nimbus.core.tree.ServerDrivenEvent interface ActionEvent { /** diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/Nimbus.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/Nimbus.kt similarity index 71% rename from src/commonMain/kotlin/com/zup/nimbus/core/Nimbus.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/Nimbus.kt index aeaa86e..a8618c9 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/Nimbus.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/Nimbus.kt @@ -1,16 +1,16 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.expression.parser.ExpressionParser -import com.zup.nimbus.core.ui.UILibraryManager -import com.zup.nimbus.core.log.DefaultLogger -import com.zup.nimbus.core.network.DefaultHttpClient -import com.zup.nimbus.core.network.DefaultUrlBuilder -import com.zup.nimbus.core.network.DefaultViewClient -import com.zup.nimbus.core.scope.CommonScope -import com.zup.nimbus.core.tree.DefaultIdManager -import com.zup.nimbus.core.tree.dynamic.builder.EventBuilder -import com.zup.nimbus.core.tree.dynamic.builder.NodeBuilder -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.expression.parser.ExpressionParser +import br.com.zup.nimbus.core.ui.UILibraryManager +import br.com.zup.nimbus.core.log.DefaultLogger +import br.com.zup.nimbus.core.network.DefaultHttpClient +import br.com.zup.nimbus.core.network.DefaultUrlBuilder +import br.com.zup.nimbus.core.network.DefaultViewClient +import br.com.zup.nimbus.core.scope.CommonScope +import br.com.zup.nimbus.core.tree.DefaultIdManager +import br.com.zup.nimbus.core.tree.dynamic.builder.EventBuilder +import br.com.zup.nimbus.core.tree.dynamic.builder.NodeBuilder +import br.com.zup.nimbus.core.ui.coreUILibrary /** * The root scope of a nimbus application. Contains important objects like the logger and the httpClient. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenConfig.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenConfig.kt similarity index 88% rename from src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenConfig.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenConfig.kt index f9ba3a2..c8689ef 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenConfig.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenConfig.kt @@ -1,11 +1,11 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.ui.UILibrary -import com.zup.nimbus.core.log.Logger -import com.zup.nimbus.core.network.HttpClient -import com.zup.nimbus.core.network.UrlBuilder -import com.zup.nimbus.core.network.ViewClient -import com.zup.nimbus.core.tree.IdManager +import br.com.zup.nimbus.core.ui.UILibrary +import br.com.zup.nimbus.core.log.Logger +import br.com.zup.nimbus.core.network.HttpClient +import br.com.zup.nimbus.core.network.UrlBuilder +import br.com.zup.nimbus.core.network.ViewClient +import br.com.zup.nimbus.core.tree.IdManager data class ServerDrivenConfig( /** diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenNavigator.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenNavigator.kt similarity index 66% rename from src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenNavigator.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenNavigator.kt index dc9f341..7df1685 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenNavigator.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenNavigator.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.network.ViewRequest +import br.com.zup.nimbus.core.network.ViewRequest interface ServerDrivenNavigator { fun push(request: ViewRequest) diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenState.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenState.kt similarity index 91% rename from src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenState.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenState.kt index 40f3663..1a7ddde 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenState.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenState.kt @@ -1,11 +1,11 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.dependency.DependencyUpdateManager -import com.zup.nimbus.core.dependency.UpdateError -import com.zup.nimbus.core.utils.deepCopyMutable -import com.zup.nimbus.core.utils.setMapValue -import com.zup.nimbus.core.utils.valueOfPath +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.dependency.DependencyUpdateManager +import br.com.zup.nimbus.core.dependency.UpdateError +import br.com.zup.nimbus.core.utils.deepCopyMutable +import br.com.zup.nimbus.core.utils.setMapValue +import br.com.zup.nimbus.core.utils.valueOfPath /** * Represents a state in the scope hierarchy. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenView.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenView.kt similarity index 92% rename from src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenView.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenView.kt index 51f24f6..eb512f1 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ServerDrivenView.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ServerDrivenView.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.scope.CommonScope +import br.com.zup.nimbus.core.scope.CommonScope /** * A scope for the current view in a navigator. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/CommonDependency.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/CommonDependency.kt similarity index 88% rename from src/commonMain/kotlin/com/zup/nimbus/core/dependency/CommonDependency.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/CommonDependency.kt index 5aac8f2..876266f 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/CommonDependency.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/CommonDependency.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.dependency +package br.com.zup.nimbus.core.dependency abstract class CommonDependency: Dependency { diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/Dependency.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/Dependency.kt similarity index 94% rename from src/commonMain/kotlin/com/zup/nimbus/core/dependency/Dependency.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/Dependency.kt index d389d8c..53e356a 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/Dependency.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/Dependency.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.dependency +package br.com.zup.nimbus.core.dependency /** * Makes this a node in the dependency graph so it can be a dependency of another node. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/DependencyUpdateManager.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/DependencyUpdateManager.kt similarity index 98% rename from src/commonMain/kotlin/com/zup/nimbus/core/dependency/DependencyUpdateManager.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/DependencyUpdateManager.kt index 4ed98cd..ca2a3b2 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/DependencyUpdateManager.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/DependencyUpdateManager.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.dependency +package br.com.zup.nimbus.core.dependency /** * Manages a dependency graph by updating the nodes that need to be updated. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/Dependent.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/Dependent.kt similarity index 87% rename from src/commonMain/kotlin/com/zup/nimbus/core/dependency/Dependent.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/Dependent.kt index 4996e57..0b2cfaf 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/Dependent.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/Dependent.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.dependency +package br.com.zup.nimbus.core.dependency /** * Makes this a node in the dependency graph so it can depend on another node. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/UpdateError.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/UpdateError.kt similarity index 82% rename from src/commonMain/kotlin/com/zup/nimbus/core/dependency/UpdateError.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/UpdateError.kt index 9aa3b08..11e34b4 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/dependency/UpdateError.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/dependency/UpdateError.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.dependency +package br.com.zup.nimbus.core.dependency class UpdateError(errors: List): Error() { override val message = "There were errors while updating the dependency graph: " + diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/deserialization/AnyServerDrivenData.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/deserialization/AnyServerDrivenData.kt similarity index 99% rename from src/commonMain/kotlin/com/zup/nimbus/core/deserialization/AnyServerDrivenData.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/deserialization/AnyServerDrivenData.kt index 5946bf0..2f17d68 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/deserialization/AnyServerDrivenData.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/deserialization/AnyServerDrivenData.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.deserialization +package br.com.zup.nimbus.core.deserialization -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.tree.dynamic.DynamicEvent -import com.zup.nimbus.core.utils.Null +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.tree.dynamic.DynamicEvent +import br.com.zup.nimbus.core.utils.Null /** * This class helps to deserialize data of unknown type. This is very useful for deserializing the data that comes from diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/deserialization/SerializationError.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/deserialization/SerializationError.kt similarity index 91% rename from src/commonMain/kotlin/com/zup/nimbus/core/deserialization/SerializationError.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/deserialization/SerializationError.kt index d179fcf..880e031 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/deserialization/SerializationError.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/deserialization/SerializationError.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.deserialization +package br.com.zup.nimbus.core.deserialization class SerializationError(propertyName: String, value: Any?): Error() { override val message = "Can't serialize \"$propertyName\". Only the types String, Short, Int, Long, Float, Double, " + diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/Expression.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Expression.kt similarity index 77% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/Expression.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Expression.kt index 8c048f9..3c74112 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/Expression.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Expression.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.expression +package br.com.zup.nimbus.core.expression /** * The compiled version of an expression string, i.e., the Abstract Syntax Tree (AST). diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/Literal.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Literal.kt similarity index 72% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/Literal.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Literal.kt index dfe36ae..ea11c57 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/Literal.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Literal.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.expression +package br.com.zup.nimbus.core.expression class Literal(private val value: Any?): Expression { override fun getValue(): Any? { diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/Operation.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Operation.kt similarity index 70% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/Operation.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Operation.kt index 1ee6519..c1621be 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/Operation.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/Operation.kt @@ -1,15 +1,15 @@ -package com.zup.nimbus.core.expression +package br.com.zup.nimbus.core.expression -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.OperationHandler -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.dependency.Dependent -import com.zup.nimbus.core.log.Logger -import com.zup.nimbus.core.scope.CloneAfterInitializationError -import com.zup.nimbus.core.scope.DoubleInitializationError -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.scope.closestScopeWithType +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.OperationHandler +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.dependency.Dependent +import br.com.zup.nimbus.core.log.Logger +import br.com.zup.nimbus.core.scope.CloneAfterInitializationError +import br.com.zup.nimbus.core.scope.DoubleInitializationError +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.scope.closestScopeWithType class Operation( private val handler: OperationHandler, diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/StateReference.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/StateReference.kt similarity index 65% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/StateReference.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/StateReference.kt index eab3b13..43d9d60 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/StateReference.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/StateReference.kt @@ -1,14 +1,14 @@ -package com.zup.nimbus.core.expression +package br.com.zup.nimbus.core.expression -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.dependency.Dependent -import com.zup.nimbus.core.scope.CloneAfterInitializationError -import com.zup.nimbus.core.scope.DoubleInitializationError -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.scope.closestState -import com.zup.nimbus.core.utils.valueOfPath +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.dependency.Dependent +import br.com.zup.nimbus.core.scope.CloneAfterInitializationError +import br.com.zup.nimbus.core.scope.DoubleInitializationError +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.scope.closestState +import br.com.zup.nimbus.core.utils.valueOfPath class StateReference( private var id: String, diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/StringTemplate.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/StringTemplate.kt similarity index 73% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/StringTemplate.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/StringTemplate.kt index f0392ba..f2e5bee 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/StringTemplate.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/StringTemplate.kt @@ -1,11 +1,11 @@ -package com.zup.nimbus.core.expression +package br.com.zup.nimbus.core.expression -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.dependency.Dependent -import com.zup.nimbus.core.scope.CloneAfterInitializationError -import com.zup.nimbus.core.scope.DoubleInitializationError -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.dependency.Dependent +import br.com.zup.nimbus.core.scope.CloneAfterInitializationError +import br.com.zup.nimbus.core.scope.DoubleInitializationError +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.scope.Scope class StringTemplate( private val composition: List, diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/ExpressionParser.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/ExpressionParser.kt similarity index 90% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/ExpressionParser.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/ExpressionParser.kt index 9555012..19a9147 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/ExpressionParser.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/ExpressionParser.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.expression.parser +package br.com.zup.nimbus.core.expression.parser -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.expression.Expression -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.expression.Expression +import br.com.zup.nimbus.core.regex.toFastRegex //Do not remove the Redundant character escape '\}' in RegExp, this causes error when using android regex implementation private val expressionRegex = """(\\*)@\{(([^'}]|('([^'\\]|\\.)*'))*)\}""".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/LiteralParser.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/LiteralParser.kt similarity index 74% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/LiteralParser.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/LiteralParser.kt index c4cf571..4d88dd2 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/LiteralParser.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/LiteralParser.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.expression.parser +package br.com.zup.nimbus.core.expression.parser -import com.zup.nimbus.core.expression.Literal -import com.zup.nimbus.core.regex.matches -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.expression.Literal +import br.com.zup.nimbus.core.regex.matches +import br.com.zup.nimbus.core.regex.toFastRegex private val literalRegex = """^\d+((.)|(.\d+)?)$""".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/OperationParser.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/OperationParser.kt similarity index 90% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/OperationParser.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/OperationParser.kt index a83ed4f..8824504 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/OperationParser.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/OperationParser.kt @@ -1,10 +1,10 @@ -package com.zup.nimbus.core.expression.parser +package br.com.zup.nimbus.core.expression.parser -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.expression.Expression -import com.zup.nimbus.core.expression.Literal -import com.zup.nimbus.core.expression.Operation -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.expression.Expression +import br.com.zup.nimbus.core.expression.Literal +import br.com.zup.nimbus.core.expression.Operation +import br.com.zup.nimbus.core.regex.toFastRegex private val operationRegex = """^(\w+)\((.*)\)$""".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/StateReferenceParser.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/StateReferenceParser.kt similarity index 77% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/StateReferenceParser.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/StateReferenceParser.kt index 6f3d32d..196800c 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/StateReferenceParser.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/StateReferenceParser.kt @@ -1,13 +1,13 @@ -package com.zup.nimbus.core.expression.parser +package br.com.zup.nimbus.core.expression.parser -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.expression.Expression -import com.zup.nimbus.core.expression.Literal -import com.zup.nimbus.core.expression.StateReference -import com.zup.nimbus.core.regex.matches -import com.zup.nimbus.core.regex.toFastRegex -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.scope.getPathToScope +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.expression.Expression +import br.com.zup.nimbus.core.expression.Literal +import br.com.zup.nimbus.core.expression.StateReference +import br.com.zup.nimbus.core.regex.matches +import br.com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.scope.getPathToScope private val stateReferenceRegex = """^[\w\d_]+(\[\d+\])*(\.([\w\d_]+(\[\d+\])*))*$""".toFastRegex() private val pathRegex = """^([^\.\[\]]+)\.?(.*)""".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/StringTemplateParser.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/StringTemplateParser.kt similarity index 77% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/StringTemplateParser.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/StringTemplateParser.kt index e52e9f1..4c80d11 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/StringTemplateParser.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/StringTemplateParser.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.expression.parser +package br.com.zup.nimbus.core.expression.parser -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.expression.Literal -import com.zup.nimbus.core.expression.StringTemplate -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.expression.Literal +import br.com.zup.nimbus.core.expression.StringTemplate +import br.com.zup.nimbus.core.regex.toFastRegex private val expressionRegex = """(\\*)@\{(([^'}]|('([^'\\]|\\.)*'))*)\}""".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/automaton.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/automaton.kt similarity index 96% rename from src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/automaton.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/automaton.kt index 709d248..2148b87 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/expression/parser/automaton.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/expression/parser/automaton.kt @@ -1,8 +1,8 @@ @file:Suppress("ComplexCondition") // todo: verify -package com.zup.nimbus.core.expression.parser +package br.com.zup.nimbus.core.expression.parser -import com.zup.nimbus.core.regex.FastRegex -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.regex.FastRegex +import br.com.zup.nimbus.core.regex.toFastRegex private const val MAX_MEMOIZED_KEYS = 1000 diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/log/DefaultLogger.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/log/DefaultLogger.kt similarity index 96% rename from src/commonMain/kotlin/com/zup/nimbus/core/log/DefaultLogger.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/log/DefaultLogger.kt index 0b50794..2d55030 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/log/DefaultLogger.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/log/DefaultLogger.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.log +package br.com.zup.nimbus.core.log class DefaultLogger: Logger { private var isEnabled = true diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/log/LogLevel.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/log/LogLevel.kt similarity index 58% rename from src/commonMain/kotlin/com/zup/nimbus/core/log/LogLevel.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/log/LogLevel.kt index fa51089..280feb8 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/log/LogLevel.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/log/LogLevel.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.log +package br.com.zup.nimbus.core.log enum class LogLevel { Info, Warning, Error, diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/log/Logger.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/log/Logger.kt similarity index 83% rename from src/commonMain/kotlin/com/zup/nimbus/core/log/Logger.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/log/Logger.kt index 064039b..bae822d 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/log/Logger.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/log/Logger.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.log +package br.com.zup.nimbus.core.log interface Logger { fun enable() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultHttpClient.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultHttpClient.kt similarity index 91% rename from src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultHttpClient.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultHttpClient.kt index 2f5c244..2571800 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultHttpClient.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultHttpClient.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.network +package br.com.zup.nimbus.core.network -import com.zup.nimbus.core.utils.then +import br.com.zup.nimbus.core.utils.then import io.ktor.client.HttpClient import io.ktor.client.call.body import io.ktor.client.engine.HttpClientEngine @@ -13,7 +13,7 @@ import io.ktor.http.Headers import io.ktor.http.HttpMethod import kotlin.collections.set -class DefaultHttpClient (engine: HttpClientEngine? = null): com.zup.nimbus.core.network.HttpClient { +class DefaultHttpClient (engine: HttpClientEngine? = null): br.com.zup.nimbus.core.network.HttpClient { constructor() : this(null) private val client = if (engine == null) HttpClient() else HttpClient(engine) diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultUrlBuilder.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultUrlBuilder.kt similarity index 81% rename from src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultUrlBuilder.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultUrlBuilder.kt index ddb8897..20e6f55 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultUrlBuilder.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultUrlBuilder.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.network +package br.com.zup.nimbus.core.network -import com.zup.nimbus.core.utils.removeSuffix +import br.com.zup.nimbus.core.utils.removeSuffix class DefaultUrlBuilder( /** diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultViewClient.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultViewClient.kt similarity index 94% rename from src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultViewClient.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultViewClient.kt index 7a67775..aa8c662 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/DefaultViewClient.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/DefaultViewClient.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.network +package br.com.zup.nimbus.core.network -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.tree.dynamic.node.RootNode +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.tree.dynamic.node.RootNode import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Deferred import kotlinx.coroutines.Dispatchers diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/HttpClient.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/HttpClient.kt similarity index 92% rename from src/commonMain/kotlin/com/zup/nimbus/core/network/HttpClient.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/network/HttpClient.kt index 44ca56e..2d1cd86 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/HttpClient.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/HttpClient.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.network +package br.com.zup.nimbus.core.network const val FIRST_BAD_STATUS = 400 diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/UrlBuilder.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/UrlBuilder.kt similarity index 93% rename from src/commonMain/kotlin/com/zup/nimbus/core/network/UrlBuilder.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/network/UrlBuilder.kt index 4df8a51..a168c25 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/UrlBuilder.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/UrlBuilder.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.network +package br.com.zup.nimbus.core.network interface UrlBuilder { /** diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/ViewClient.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/ViewClient.kt similarity index 83% rename from src/commonMain/kotlin/com/zup/nimbus/core/network/ViewClient.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/network/ViewClient.kt index 53b6fc5..a92536e 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/ViewClient.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/ViewClient.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.network +package br.com.zup.nimbus.core.network -import com.zup.nimbus.core.tree.dynamic.builder.MalformedComponentError -import com.zup.nimbus.core.tree.dynamic.builder.MalformedJsonError -import com.zup.nimbus.core.tree.dynamic.node.RootNode +import br.com.zup.nimbus.core.tree.dynamic.builder.MalformedComponentError +import br.com.zup.nimbus.core.tree.dynamic.builder.MalformedJsonError +import br.com.zup.nimbus.core.tree.dynamic.node.RootNode import kotlin.coroutines.cancellation.CancellationException interface ViewClient { diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/ViewRequest.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/ViewRequest.kt similarity index 94% rename from src/commonMain/kotlin/com/zup/nimbus/core/network/ViewRequest.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/network/ViewRequest.kt index 774a67d..d0536f3 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/ViewRequest.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/ViewRequest.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.network +package br.com.zup.nimbus.core.network data class ViewRequest( /** diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/network/error.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/error.kt similarity index 90% rename from src/commonMain/kotlin/com/zup/nimbus/core/network/error.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/network/error.kt index 25c91a3..fa339f5 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/network/error.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/network/error.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.network +package br.com.zup.nimbus.core.network open class NetworkError(override val message: String): Error(message) diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt similarity index 98% rename from src/commonMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt index c5fcf4b..513b954 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.regex +package br.com.zup.nimbus.core.regex expect class FastRegex(pattern: String) { val pattern: String diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/regex/MatchGroups.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/regex/MatchGroups.kt similarity index 95% rename from src/commonMain/kotlin/com/zup/nimbus/core/regex/MatchGroups.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/regex/MatchGroups.kt index b4dfadb..c4cf203 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/regex/MatchGroups.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/regex/MatchGroups.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.regex +package br.com.zup.nimbus.core.regex class MatchGroups( val values: List diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/regex/extensions.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/regex/extensions.kt similarity index 89% rename from src/commonMain/kotlin/com/zup/nimbus/core/regex/extensions.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/regex/extensions.kt index c3d8535..2d672b1 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/regex/extensions.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/regex/extensions.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.regex +package br.com.zup.nimbus.core.regex fun String.toFastRegex() = FastRegex(this) diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/scope/CommonScope.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/scope/CommonScope.kt similarity index 82% rename from src/commonMain/kotlin/com/zup/nimbus/core/scope/CommonScope.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/scope/CommonScope.kt index cf2d7fc..175d899 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/scope/CommonScope.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/scope/CommonScope.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.scope +package br.com.zup.nimbus.core.scope -import com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.ServerDrivenState open class CommonScope( override val states: List?, diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/scope/LazilyScoped.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/scope/LazilyScoped.kt similarity index 96% rename from src/commonMain/kotlin/com/zup/nimbus/core/scope/LazilyScoped.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/scope/LazilyScoped.kt index 787283e..0fe3d00 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/scope/LazilyScoped.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/scope/LazilyScoped.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.scope +package br.com.zup.nimbus.core.scope /** * An entity that needs a scope, but the scope can't be known upon construction, i.e. it must be lazily initialized. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/scope/Scope.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/scope/Scope.kt similarity index 90% rename from src/commonMain/kotlin/com/zup/nimbus/core/scope/Scope.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/scope/Scope.kt index fd4ccb0..5c788b9 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/scope/Scope.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/scope/Scope.kt @@ -1,10 +1,10 @@ -package com.zup.nimbus.core.scope +package br.com.zup.nimbus.core.scope -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.ServerDrivenView -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.ServerDrivenView +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.tree.ServerDrivenNode /** * Most things in Nimbus occurs within a scope. An event, for instance, can be triggered in the scope of button click, diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/scope/StateOnlyScope.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/scope/StateOnlyScope.kt similarity index 86% rename from src/commonMain/kotlin/com/zup/nimbus/core/scope/StateOnlyScope.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/scope/StateOnlyScope.kt index 8146689..09335ed 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/scope/StateOnlyScope.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/scope/StateOnlyScope.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.scope +package br.com.zup.nimbus.core.scope -import com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.ServerDrivenState /** * A simple scope to group up server driven nodes with common states without having to create a new node. Used mostly by diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/DefaultIdManager.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/DefaultIdManager.kt similarity index 82% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/DefaultIdManager.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/DefaultIdManager.kt index 66948c2..76eb281 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/DefaultIdManager.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/DefaultIdManager.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.tree +package br.com.zup.nimbus.core.tree class DefaultIdManager : IdManager { private val prefix = "nimbus" diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/IdManager.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/IdManager.kt similarity index 57% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/IdManager.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/IdManager.kt index 37d6e7b..da99709 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/IdManager.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/IdManager.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.tree +package br.com.zup.nimbus.core.tree interface IdManager { fun next(): String diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenAction.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenAction.kt similarity index 91% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenAction.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenAction.kt index 46db834..038a5ab 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenAction.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenAction.kt @@ -1,7 +1,7 @@ -package com.zup.nimbus.core.tree +package br.com.zup.nimbus.core.tree -import com.zup.nimbus.core.ActionHandler -import com.zup.nimbus.core.dependency.Dependent +import br.com.zup.nimbus.core.ActionHandler +import br.com.zup.nimbus.core.dependency.Dependent /** * Represents an action of the original json, i.e. an instruction to execute a function. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenEvent.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenEvent.kt similarity index 91% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenEvent.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenEvent.kt index b07f8cb..d660641 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenEvent.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenEvent.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.tree +package br.com.zup.nimbus.core.tree -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenView -import com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenView +import br.com.zup.nimbus.core.scope.Scope /** * ServerDrivenEvents represent a list of actions in the original json. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenNode.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenNode.kt similarity index 89% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenNode.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenNode.kt index 1e0ebeb..adcfc4d 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/ServerDrivenNode.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/ServerDrivenNode.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.tree +package br.com.zup.nimbus.core.tree -import com.zup.nimbus.core.dependency.Dependency -import com.zup.nimbus.core.dependency.Dependent -import com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.dependency.Dependency +import br.com.zup.nimbus.core.dependency.Dependent +import br.com.zup.nimbus.core.scope.Scope /** * Represents a component (node) of the original json. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/DynamicAction.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/DynamicAction.kt similarity index 75% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/DynamicAction.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/DynamicAction.kt index f9f5661..d83f7f2 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/DynamicAction.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/DynamicAction.kt @@ -1,15 +1,15 @@ -package com.zup.nimbus.core.tree.dynamic +package br.com.zup.nimbus.core.tree.dynamic -import com.zup.nimbus.core.ActionHandler -import com.zup.nimbus.core.ActionInitializationHandler -import com.zup.nimbus.core.ActionInitializedEvent -import com.zup.nimbus.core.scope.CloneAfterInitializationError -import com.zup.nimbus.core.scope.DoubleInitializationError -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.tree.ServerDrivenAction -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.tree.dynamic.container.PropertyContainer +import br.com.zup.nimbus.core.ActionHandler +import br.com.zup.nimbus.core.ActionInitializationHandler +import br.com.zup.nimbus.core.ActionInitializedEvent +import br.com.zup.nimbus.core.scope.CloneAfterInitializationError +import br.com.zup.nimbus.core.scope.DoubleInitializationError +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.tree.ServerDrivenAction +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.tree.dynamic.container.PropertyContainer /** * DynamicActions are a type of ServerDrivenAction that can change its properties during its lifecycle. These changes diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/DynamicEvent.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/DynamicEvent.kt similarity index 67% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/DynamicEvent.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/DynamicEvent.kt index 60af308..04b39c5 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/DynamicEvent.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/DynamicEvent.kt @@ -1,21 +1,21 @@ -package com.zup.nimbus.core.tree.dynamic +package br.com.zup.nimbus.core.tree.dynamic -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.ActionTriggeredEvent -import com.zup.nimbus.core.scope.CloneAfterInitializationError -import com.zup.nimbus.core.scope.DoubleInitializationError -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.ServerDrivenView -import com.zup.nimbus.core.dependency.Dependency -import com.zup.nimbus.core.dependency.DependencyUpdateManager -import com.zup.nimbus.core.dependency.UpdateError -import com.zup.nimbus.core.scope.CommonScope -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.scope.closestScopeWithType -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.ActionTriggeredEvent +import br.com.zup.nimbus.core.scope.CloneAfterInitializationError +import br.com.zup.nimbus.core.scope.DoubleInitializationError +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.ServerDrivenView +import br.com.zup.nimbus.core.dependency.Dependency +import br.com.zup.nimbus.core.dependency.DependencyUpdateManager +import br.com.zup.nimbus.core.dependency.UpdateError +import br.com.zup.nimbus.core.scope.CommonScope +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.scope.closestScopeWithType +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.tree.ServerDrivenNode /** * DynamicEvents are a type of ServerDrivenEvent that can run DynamicActions. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/ActionBuilder.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/ActionBuilder.kt similarity index 84% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/ActionBuilder.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/ActionBuilder.kt index b808927..c0ef3c1 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/ActionBuilder.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/ActionBuilder.kt @@ -1,10 +1,10 @@ -package com.zup.nimbus.core.tree.dynamic.builder +package br.com.zup.nimbus.core.tree.dynamic.builder -import com.zup.nimbus.core.ActionHandler -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.tree.dynamic.DynamicAction -import com.zup.nimbus.core.tree.dynamic.container.PropertyContainer -import com.zup.nimbus.core.utils.valueOfKey +import br.com.zup.nimbus.core.ActionHandler +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.tree.dynamic.DynamicAction +import br.com.zup.nimbus.core.tree.dynamic.container.PropertyContainer +import br.com.zup.nimbus.core.utils.valueOfKey /** * Builds DynamicActions from JSON sources. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/EventBuilder.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/EventBuilder.kt similarity index 82% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/EventBuilder.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/EventBuilder.kt index c08c07e..9e858f5 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/EventBuilder.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/EventBuilder.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.tree.dynamic.builder +package br.com.zup.nimbus.core.tree.dynamic.builder -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.tree.dynamic.DynamicEvent -import com.zup.nimbus.core.utils.UnexpectedDataTypeError +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.tree.dynamic.DynamicEvent +import br.com.zup.nimbus.core.utils.UnexpectedDataTypeError /** * Builds DynamicEvents from JSON sources. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/NodeBuilder.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/NodeBuilder.kt similarity index 81% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/NodeBuilder.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/NodeBuilder.kt index 05bb3fa..22a96ce 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/NodeBuilder.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/NodeBuilder.kt @@ -1,16 +1,16 @@ -package com.zup.nimbus.core.tree.dynamic.builder +package br.com.zup.nimbus.core.tree.dynamic.builder -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.tree.dynamic.container.NodeContainer -import com.zup.nimbus.core.tree.dynamic.container.PropertyContainer -import com.zup.nimbus.core.tree.dynamic.node.DynamicNode -import com.zup.nimbus.core.tree.dynamic.node.ForEachNode -import com.zup.nimbus.core.tree.dynamic.node.IfNode -import com.zup.nimbus.core.tree.dynamic.node.RootNode -import com.zup.nimbus.core.utils.UnexpectedDataTypeError -import com.zup.nimbus.core.utils.transformJsonObjectToMap -import com.zup.nimbus.core.utils.valueOfKey +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.tree.dynamic.container.NodeContainer +import br.com.zup.nimbus.core.tree.dynamic.container.PropertyContainer +import br.com.zup.nimbus.core.tree.dynamic.node.DynamicNode +import br.com.zup.nimbus.core.tree.dynamic.node.ForEachNode +import br.com.zup.nimbus.core.tree.dynamic.node.IfNode +import br.com.zup.nimbus.core.tree.dynamic.node.RootNode +import br.com.zup.nimbus.core.utils.UnexpectedDataTypeError +import br.com.zup.nimbus.core.utils.transformJsonObjectToMap +import br.com.zup.nimbus.core.utils.valueOfKey import kotlinx.serialization.json.Json import kotlinx.serialization.json.JsonObject import kotlinx.serialization.decodeFromString diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/error.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/error.kt similarity index 92% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/error.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/error.kt index 2d8a798..73cdb28 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/builder/error.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/builder/error.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.tree.dynamic.builder +package br.com.zup.nimbus.core.tree.dynamic.builder open class MalformedJsonError(override val message: String): Error("$message Please check your json string.") diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/NodeContainer.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/NodeContainer.kt similarity index 82% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/NodeContainer.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/NodeContainer.kt index 64325ea..4dec233 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/NodeContainer.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/NodeContainer.kt @@ -1,12 +1,12 @@ -package com.zup.nimbus.core.tree.dynamic.container +package br.com.zup.nimbus.core.tree.dynamic.container -import com.zup.nimbus.core.scope.CloneAfterInitializationError -import com.zup.nimbus.core.scope.DoubleInitializationError -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.dependency.Dependent -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.tree.dynamic.node.DynamicNode +import br.com.zup.nimbus.core.scope.CloneAfterInitializationError +import br.com.zup.nimbus.core.scope.DoubleInitializationError +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.dependency.Dependent +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.tree.dynamic.node.DynamicNode /** * Manages a dynamic collection of nodes, updating the values returned by `read()` whenever they update. A DynamicNode diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/PropertyContainer.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/PropertyContainer.kt similarity index 89% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/PropertyContainer.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/PropertyContainer.kt index 23bbc75..68c35a0 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/PropertyContainer.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/PropertyContainer.kt @@ -1,14 +1,14 @@ -package com.zup.nimbus.core.tree.dynamic.container - -import com.zup.nimbus.core.scope.CloneAfterInitializationError -import com.zup.nimbus.core.scope.DoubleInitializationError -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.expression.Expression -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.dependency.Dependent -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.tree.dynamic.DynamicEvent +package br.com.zup.nimbus.core.tree.dynamic.container + +import br.com.zup.nimbus.core.scope.CloneAfterInitializationError +import br.com.zup.nimbus.core.scope.DoubleInitializationError +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.expression.Expression +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.dependency.Dependent +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.tree.dynamic.DynamicEvent /** * Manages a dynamic property map, where a value can change depending on the current evaluation of an expression. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/PropertyCopying.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/PropertyCopying.kt similarity index 90% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/PropertyCopying.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/PropertyCopying.kt index b138962..d077cde 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/container/PropertyCopying.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/container/PropertyCopying.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.tree.dynamic.container +package br.com.zup.nimbus.core.tree.dynamic.container -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.expression.Expression -import com.zup.nimbus.core.expression.Literal -import com.zup.nimbus.core.tree.dynamic.DynamicEvent +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.expression.Expression +import br.com.zup.nimbus.core.expression.Literal +import br.com.zup.nimbus.core.tree.dynamic.DynamicEvent /** * This is a helper for the PropertyContainer class. Its objective is to help cloning the parsed properties into a new diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/DynamicNode.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/DynamicNode.kt similarity index 82% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/DynamicNode.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/DynamicNode.kt index 562d5bd..40cac6c 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/DynamicNode.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/DynamicNode.kt @@ -1,15 +1,15 @@ -package com.zup.nimbus.core.tree.dynamic.node +package br.com.zup.nimbus.core.tree.dynamic.node -import com.zup.nimbus.core.scope.CloneAfterInitializationError -import com.zup.nimbus.core.scope.DoubleInitializationError -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.scope.CommonScope -import com.zup.nimbus.core.scope.LazilyScoped -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.tree.ServerDrivenNode -import com.zup.nimbus.core.tree.dynamic.container.NodeContainer -import com.zup.nimbus.core.tree.dynamic.container.PropertyContainer +import br.com.zup.nimbus.core.scope.CloneAfterInitializationError +import br.com.zup.nimbus.core.scope.DoubleInitializationError +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.scope.CommonScope +import br.com.zup.nimbus.core.scope.LazilyScoped +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.tree.dynamic.container.NodeContainer +import br.com.zup.nimbus.core.tree.dynamic.container.PropertyContainer /** * DynamicNodes are a type of ServerDrivenNode that can change its properties and children during its lifecycle. These diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/ForEachNode.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/ForEachNode.kt similarity index 93% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/ForEachNode.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/ForEachNode.kt index 72663d3..fbba480 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/ForEachNode.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/ForEachNode.kt @@ -1,13 +1,13 @@ -package com.zup.nimbus.core.tree.dynamic.node +package br.com.zup.nimbus.core.tree.dynamic.node -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.scope.StateOnlyScope -import com.zup.nimbus.core.scope.closestScopeWithType -import com.zup.nimbus.core.scope.getPathToScope -import com.zup.nimbus.core.tree.dynamic.container.NodeContainer +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.scope.StateOnlyScope +import br.com.zup.nimbus.core.scope.closestScopeWithType +import br.com.zup.nimbus.core.scope.getPathToScope +import br.com.zup.nimbus.core.tree.dynamic.container.NodeContainer /** * A rendered list that can change must somehow identify each of its item. This encapsulates an item with an object diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/IfNode.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/IfNode.kt similarity index 90% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/IfNode.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/IfNode.kt index 63ff2a2..6e77d3d 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/IfNode.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/IfNode.kt @@ -1,10 +1,10 @@ -package com.zup.nimbus.core.tree.dynamic.node +package br.com.zup.nimbus.core.tree.dynamic.node -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.scope.closestScopeWithType -import com.zup.nimbus.core.utils.UnexpectedDataTypeError -import com.zup.nimbus.core.utils.valueOfKey +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.scope.closestScopeWithType +import br.com.zup.nimbus.core.utils.UnexpectedDataTypeError +import br.com.zup.nimbus.core.utils.valueOfKey // fixme(1): normally, in UI frameworks, if-else blocks completely remove the other branch from the tree and rebuilds it // when the condition changes. This is not being done here. On the positive side, states will never be lost when diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/RootNode.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/RootNode.kt similarity index 91% rename from src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/RootNode.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/RootNode.kt index de13ca3..7fc955b 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/tree/dynamic/node/RootNode.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/tree/dynamic/node/RootNode.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.tree.dynamic.node +package br.com.zup.nimbus.core.tree.dynamic.node -import com.zup.nimbus.core.ServerDrivenView +import br.com.zup.nimbus.core.ServerDrivenView /** * A RootNode for a UI Tree. Used to wrap every tree yielded by a NodeBuilder. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/types.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/types.kt similarity index 86% rename from src/commonMain/kotlin/com/zup/nimbus/core/types.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/types.kt index 69e9647..15cffaa 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/types.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/types.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core typealias ActionHandler = (event: ActionTriggeredEvent) -> Unit typealias ActionInitializationHandler = (event: ActionInitializedEvent) -> Unit diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/UILibrary.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/UILibrary.kt similarity index 91% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/UILibrary.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/UILibrary.kt index 3f7db10..3dd4fb8 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/UILibrary.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/UILibrary.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.ui +package br.com.zup.nimbus.core.ui -import com.zup.nimbus.core.ActionHandler -import com.zup.nimbus.core.ActionInitializationHandler -import com.zup.nimbus.core.OperationHandler +import br.com.zup.nimbus.core.ActionHandler +import br.com.zup.nimbus.core.ActionInitializationHandler +import br.com.zup.nimbus.core.OperationHandler /** * Represents the UI extensions that can be made by a third-party application. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/UILibraryManager.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/UILibraryManager.kt similarity index 89% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/UILibraryManager.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/UILibraryManager.kt index 4113b63..dd5f453 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/UILibraryManager.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/UILibraryManager.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.ui +package br.com.zup.nimbus.core.ui -import com.zup.nimbus.core.ActionHandler -import com.zup.nimbus.core.ActionInitializationHandler -import com.zup.nimbus.core.OperationHandler -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.ActionHandler +import br.com.zup.nimbus.core.ActionInitializationHandler +import br.com.zup.nimbus.core.OperationHandler +import br.com.zup.nimbus.core.regex.toFastRegex private val identifierRegex = "(?:(\\w+):)?(\\w+)".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/condition.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/condition.kt similarity index 64% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/action/condition.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/condition.kt index a59589d..7bf8ffb 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/condition.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/condition.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.ui.action +package br.com.zup.nimbus.core.ui.action -import com.zup.nimbus.core.ActionTriggeredEvent -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.ui.action.error.ActionDeserializationError +import br.com.zup.nimbus.core.ActionTriggeredEvent +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.ui.action.error.ActionDeserializationError internal fun condition(event: ActionTriggeredEvent) { val properties = AnyServerDrivenData(event.action.properties) diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/error/ActionDeserializationError.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/error/ActionDeserializationError.kt similarity index 59% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/action/error/ActionDeserializationError.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/error/ActionDeserializationError.kt index 9f68232..613b707 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/error/ActionDeserializationError.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/error/ActionDeserializationError.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.ui.action.error +package br.com.zup.nimbus.core.ui.action.error -import com.zup.nimbus.core.ActionEvent -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.scope.getPathToScope +import br.com.zup.nimbus.core.ActionEvent +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.scope.getPathToScope class ActionDeserializationError(event: ActionEvent, properties: AnyServerDrivenData): IllegalArgumentException() { override val message = "Error while deserializing properties for the action \"${event.action.name}\".\nAt: " + diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/error/ActionExecutionError.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/error/ActionExecutionError.kt similarity index 67% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/action/error/ActionExecutionError.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/error/ActionExecutionError.kt index 1c56cc8..0843ad3 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/error/ActionExecutionError.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/error/ActionExecutionError.kt @@ -1,7 +1,7 @@ -package com.zup.nimbus.core.ui.action.error +package br.com.zup.nimbus.core.ui.action.error -import com.zup.nimbus.core.ActionEvent -import com.zup.nimbus.core.scope.getPathToScope +import br.com.zup.nimbus.core.ActionEvent +import br.com.zup.nimbus.core.scope.getPathToScope class ActionExecutionError(event: ActionEvent, override val cause: Throwable): Error() { override val message: String = "Error while running the action \"${event.action.name}\".\nAt: " + diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/log.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/log.kt similarity index 59% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/action/log.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/log.kt index 13a9f49..083ff7d 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/log.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/log.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.ui.action +package br.com.zup.nimbus.core.ui.action -import com.zup.nimbus.core.log.LogLevel -import com.zup.nimbus.core.ActionTriggeredEvent -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.ui.action.error.ActionDeserializationError +import br.com.zup.nimbus.core.log.LogLevel +import br.com.zup.nimbus.core.ActionTriggeredEvent +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.ui.action.error.ActionDeserializationError internal fun log(event: ActionTriggeredEvent) { val logger = event.scope.nimbus.logger diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/navigation.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/navigation.kt similarity index 79% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/action/navigation.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/navigation.kt index 4861359..bdde8be 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/navigation.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/navigation.kt @@ -1,14 +1,14 @@ -package com.zup.nimbus.core.ui.action - -import com.zup.nimbus.core.ActionEvent -import com.zup.nimbus.core.ActionInitializedEvent -import com.zup.nimbus.core.network.ServerDrivenHttpMethod -import com.zup.nimbus.core.network.ViewRequest -import com.zup.nimbus.core.ActionTriggeredEvent -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.deserialization.SerializationError -import com.zup.nimbus.core.ui.action.error.ActionExecutionError -import com.zup.nimbus.core.ui.action.error.ActionDeserializationError +package br.com.zup.nimbus.core.ui.action + +import br.com.zup.nimbus.core.ActionEvent +import br.com.zup.nimbus.core.ActionInitializedEvent +import br.com.zup.nimbus.core.network.ServerDrivenHttpMethod +import br.com.zup.nimbus.core.network.ViewRequest +import br.com.zup.nimbus.core.ActionTriggeredEvent +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.SerializationError +import br.com.zup.nimbus.core.ui.action.error.ActionExecutionError +import br.com.zup.nimbus.core.ui.action.error.ActionDeserializationError private inline fun getNavigator(event: ActionEvent) = event.scope.view.navigator diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/sendRequest.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/sendRequest.kt similarity index 80% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/action/sendRequest.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/sendRequest.kt index fbbe973..499ab85 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/sendRequest.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/sendRequest.kt @@ -1,14 +1,14 @@ -package com.zup.nimbus.core.ui.action +package br.com.zup.nimbus.core.ui.action -import com.zup.nimbus.core.network.FIRST_BAD_STATUS -import com.zup.nimbus.core.network.ServerDrivenHttpMethod -import com.zup.nimbus.core.network.ServerDrivenRequest -import com.zup.nimbus.core.ActionTriggeredEvent -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.deserialization.SerializationError -import com.zup.nimbus.core.ui.action.error.ActionDeserializationError -import com.zup.nimbus.core.ui.action.error.ActionExecutionError -import com.zup.nimbus.core.utils.transformJsonElementToKotlinType +import br.com.zup.nimbus.core.network.FIRST_BAD_STATUS +import br.com.zup.nimbus.core.network.ServerDrivenHttpMethod +import br.com.zup.nimbus.core.network.ServerDrivenRequest +import br.com.zup.nimbus.core.ActionTriggeredEvent +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.SerializationError +import br.com.zup.nimbus.core.ui.action.error.ActionDeserializationError +import br.com.zup.nimbus.core.ui.action.error.ActionExecutionError +import br.com.zup.nimbus.core.utils.transformJsonElementToKotlinType import io.ktor.http.HttpStatusCode import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/setState.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/setState.kt similarity index 70% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/action/setState.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/setState.kt index 4e1c00b..0945109 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/setState.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/setState.kt @@ -1,10 +1,10 @@ -package com.zup.nimbus.core.ui.action +package br.com.zup.nimbus.core.ui.action -import com.zup.nimbus.core.regex.toFastRegex -import com.zup.nimbus.core.ActionTriggeredEvent -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.scope.closestState -import com.zup.nimbus.core.ui.action.error.ActionExecutionError +import br.com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.ActionTriggeredEvent +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.scope.closestState +import br.com.zup.nimbus.core.ui.action.error.ActionExecutionError private val statePathRegex = """^(\w+)((?:\.\w+)*)${'$'}""".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/utils.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/utils.kt similarity index 52% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/action/utils.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/utils.kt index 8d4ee24..9a366de 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/action/utils.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/action/utils.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.ui.action +package br.com.zup.nimbus.core.ui.action -import com.zup.nimbus.core.ActionEvent -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.deserialization.SerializationError -import com.zup.nimbus.core.ui.action.error.ActionExecutionError +import br.com.zup.nimbus.core.ActionEvent +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.SerializationError +import br.com.zup.nimbus.core.ui.action.error.ActionExecutionError /** * Utility for attempting a json serialization from within an action handler. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/coreUILibrary.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/coreUILibrary.kt similarity index 50% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/coreUILibrary.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/coreUILibrary.kt index b17dbe8..76622d7 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/coreUILibrary.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/coreUILibrary.kt @@ -1,20 +1,20 @@ -package com.zup.nimbus.core.ui +package br.com.zup.nimbus.core.ui -import com.zup.nimbus.core.ui.action.condition -import com.zup.nimbus.core.ui.action.dismiss -import com.zup.nimbus.core.ui.action.log -import com.zup.nimbus.core.ui.action.onPushOrPresentInitialized -import com.zup.nimbus.core.ui.action.pop -import com.zup.nimbus.core.ui.action.popTo -import com.zup.nimbus.core.ui.action.present -import com.zup.nimbus.core.ui.action.push -import com.zup.nimbus.core.ui.action.sendRequest -import com.zup.nimbus.core.ui.action.setState -import com.zup.nimbus.core.ui.operations.registerArrayOperations -import com.zup.nimbus.core.ui.operations.registerLogicOperations -import com.zup.nimbus.core.ui.operations.registerNumberOperations -import com.zup.nimbus.core.ui.operations.registerOtherOperations -import com.zup.nimbus.core.ui.operations.registerStringOperations +import br.com.zup.nimbus.core.ui.action.condition +import br.com.zup.nimbus.core.ui.action.dismiss +import br.com.zup.nimbus.core.ui.action.log +import br.com.zup.nimbus.core.ui.action.onPushOrPresentInitialized +import br.com.zup.nimbus.core.ui.action.pop +import br.com.zup.nimbus.core.ui.action.popTo +import br.com.zup.nimbus.core.ui.action.present +import br.com.zup.nimbus.core.ui.action.push +import br.com.zup.nimbus.core.ui.action.sendRequest +import br.com.zup.nimbus.core.ui.action.setState +import br.com.zup.nimbus.core.ui.operations.registerArrayOperations +import br.com.zup.nimbus.core.ui.operations.registerLogicOperations +import br.com.zup.nimbus.core.ui.operations.registerNumberOperations +import br.com.zup.nimbus.core.ui.operations.registerOtherOperations +import br.com.zup.nimbus.core.ui.operations.registerStringOperations /** * The action handlers, action initializers, action observers and operations of the core Nimbus library. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/array.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/array.kt similarity index 89% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/array.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/array.kt index b3a96e0..42645e8 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/array.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/array.kt @@ -1,7 +1,7 @@ -package com.zup.nimbus.core.ui.operations +package br.com.zup.nimbus.core.ui.operations -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.ui.UILibrary +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.ui.UILibrary internal fun registerArrayOperations(library: UILibrary) { library diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/logic.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/logic.kt similarity index 82% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/logic.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/logic.kt index 485a210..8a08979 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/logic.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/logic.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.ui.operations +package br.com.zup.nimbus.core.ui.operations -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.ui.UILibrary -import com.zup.nimbus.core.utils.then +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.ui.UILibrary +import br.com.zup.nimbus.core.utils.then private fun toBooleanList(values: List): List { return values.filterIsInstance() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/number.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/number.kt similarity index 81% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/number.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/number.kt index 1f384e7..c78e98c 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/number.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/number.kt @@ -1,12 +1,12 @@ -package com.zup.nimbus.core.ui.operations +package br.com.zup.nimbus.core.ui.operations -import com.zup.nimbus.core.ui.UILibrary -import com.zup.nimbus.core.utils.compareTo -import com.zup.nimbus.core.utils.div -import com.zup.nimbus.core.utils.minus -import com.zup.nimbus.core.utils.plus -import com.zup.nimbus.core.utils.times -import com.zup.nimbus.core.utils.toNumberOrNull +import br.com.zup.nimbus.core.ui.UILibrary +import br.com.zup.nimbus.core.utils.compareTo +import br.com.zup.nimbus.core.utils.div +import br.com.zup.nimbus.core.utils.minus +import br.com.zup.nimbus.core.utils.plus +import br.com.zup.nimbus.core.utils.times +import br.com.zup.nimbus.core.utils.toNumberOrNull private fun toNumberList(values: List) = values.map { toNumberOrNull(it) } diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/other.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/other.kt similarity index 89% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/other.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/other.kt index 357f908..f578772 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/other.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/other.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.ui.operations +package br.com.zup.nimbus.core.ui.operations -import com.zup.nimbus.core.ui.UILibrary -import com.zup.nimbus.core.utils.Null -import com.zup.nimbus.core.utils.compareTo -import com.zup.nimbus.core.utils.toNumberOrNull +import br.com.zup.nimbus.core.ui.UILibrary +import br.com.zup.nimbus.core.utils.Null +import br.com.zup.nimbus.core.utils.compareTo +import br.com.zup.nimbus.core.utils.toNumberOrNull private fun areNumbersEqual(left: Any?, right: Any?): Boolean { val leftNumber = toNumberOrNull(left) ?: return false diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/string.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/string.kt similarity index 85% rename from src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/string.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/string.kt index 46d210c..9107ed9 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/ui/operations/string.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/ui/operations/string.kt @@ -1,10 +1,10 @@ -package com.zup.nimbus.core.ui.operations +package br.com.zup.nimbus.core.ui.operations -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.ui.UILibrary -import com.zup.nimbus.core.regex.replace -import com.zup.nimbus.core.regex.matches -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.ui.UILibrary +import br.com.zup.nimbus.core.regex.replace +import br.com.zup.nimbus.core.regex.matches +import br.com.zup.nimbus.core.regex.toFastRegex private fun getSingleArgument(argumentList: List): String { val arguments = AnyServerDrivenData(argumentList) diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/utils/Null.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt similarity index 91% rename from src/commonMain/kotlin/com/zup/nimbus/core/utils/Null.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt index cca5b4f..425bd00 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/utils/Null.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils expect object Null { /** diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/utils/any.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/any.kt similarity index 99% rename from src/commonMain/kotlin/com/zup/nimbus/core/utils/any.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/utils/any.kt index 88f0eb8..c3f87b1 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/utils/any.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/any.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.regex.toFastRegex import kotlin.reflect.KClass private val dataPathRegex = """(?:^[^\.\[\]]+)|(?:\.[^\.\[\]]+)|\[\d+\]""".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/utils/boolean.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/boolean.kt similarity index 65% rename from src/commonMain/kotlin/com/zup/nimbus/core/utils/boolean.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/utils/boolean.kt index 8990e1d..bfcbda8 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/utils/boolean.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/boolean.kt @@ -1,3 +1,3 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils infix fun Boolean.then(param: T): T? = if (this) param else null diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/utils/json.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/json.kt similarity index 98% rename from src/commonMain/kotlin/com/zup/nimbus/core/utils/json.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/utils/json.kt index 18ade14..38725d5 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/utils/json.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/json.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils import kotlinx.serialization.json.JsonArray import kotlinx.serialization.json.JsonElement diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/utils/list.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/list.kt similarity index 94% rename from src/commonMain/kotlin/com/zup/nimbus/core/utils/list.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/utils/list.kt index 0514f44..f921f8b 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/utils/list.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/list.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils /** * Equivalent to the map operation of a List, but instead of creating a List as a result, it creates a MutableList. diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/utils/map.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/map.kt similarity index 95% rename from src/commonMain/kotlin/com/zup/nimbus/core/utils/map.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/utils/map.kt index ac88ed6..5e0532c 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/utils/map.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/map.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.regex.toFastRegex private val mapAccessPathRegex = """(\w+)(?:\.(.+))?""".toFastRegex() diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/utils/number.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/number.kt similarity index 99% rename from src/commonMain/kotlin/com/zup/nimbus/core/utils/number.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/utils/number.kt index 57afed4..4277ff2 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/utils/number.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/number.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils private enum class NumberType { Short, Int, Long, Float, Double } diff --git a/src/commonMain/kotlin/com/zup/nimbus/core/utils/string.kt b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/string.kt similarity index 96% rename from src/commonMain/kotlin/com/zup/nimbus/core/utils/string.kt rename to src/commonMain/kotlin/br/com/zup/nimbus/core/utils/string.kt index 14b0f7d..8b9d65b 100644 --- a/src/commonMain/kotlin/com/zup/nimbus/core/utils/string.kt +++ b/src/commonMain/kotlin/br/com/zup/nimbus/core/utils/string.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils /** * Removes a prefix from the string. diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/AsyncUtils.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/AsyncUtils.kt similarity index 97% rename from src/commonTest/kotlin/com.zup.nimbus.core/AsyncUtils.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/AsyncUtils.kt index 9b7d1cc..18991b4 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/AsyncUtils.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/AsyncUtils.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/EmptyHttpClient.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/EmptyHttpClient.kt similarity index 54% rename from src/commonTest/kotlin/com.zup.nimbus.core/EmptyHttpClient.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/EmptyHttpClient.kt index 962d0de..c84a80f 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/EmptyHttpClient.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/EmptyHttpClient.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.network.HttpClient -import com.zup.nimbus.core.network.ServerDrivenRequest -import com.zup.nimbus.core.network.ServerDrivenResponse +import br.com.zup.nimbus.core.network.HttpClient +import br.com.zup.nimbus.core.network.ServerDrivenRequest +import br.com.zup.nimbus.core.network.ServerDrivenResponse object EmptyHttpClient: HttpClient { override suspend fun sendRequest(request: ServerDrivenRequest): ServerDrivenResponse { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/JsonLoader.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt similarity index 77% rename from src/commonTest/kotlin/com.zup.nimbus.core/JsonLoader.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt index 6b59e47..a21ca89 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/JsonLoader.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core @Suppress("NO_ACTUAL_FOR_EXPECT") expect object JsonLoader { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/NodeUtils.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/NodeUtils.kt similarity index 76% rename from src/commonTest/kotlin/com.zup.nimbus.core/NodeUtils.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/NodeUtils.kt index 36c4f40..f9fb55a 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/NodeUtils.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/NodeUtils.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.tree.dynamic.node.RootNode -import com.zup.nimbus.core.tree.ServerDrivenNode -import com.zup.nimbus.core.tree.findNodeById +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.tree.dynamic.node.RootNode +import br.com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.tree.findNodeById object NodeUtils { fun triggerEvent(node: ServerDrivenNode?, eventName: String, implicitStateValue: Any? = null) { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/ObservableHttpClient.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableHttpClient.kt similarity index 84% rename from src/commonTest/kotlin/com.zup.nimbus.core/ObservableHttpClient.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableHttpClient.kt index da0dbe0..3f5e082 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/ObservableHttpClient.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableHttpClient.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.network.DefaultHttpClient -import com.zup.nimbus.core.network.HttpClient -import com.zup.nimbus.core.network.ServerDrivenRequest -import com.zup.nimbus.core.network.ServerDrivenResponse +import br.com.zup.nimbus.core.network.DefaultHttpClient +import br.com.zup.nimbus.core.network.HttpClient +import br.com.zup.nimbus.core.network.ServerDrivenRequest +import br.com.zup.nimbus.core.network.ServerDrivenResponse import kotlinx.coroutines.* import kotlinx.coroutines.sync.Mutex import kotlinx.coroutines.sync.withLock diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/ObservableLogger.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableLogger.kt similarity index 83% rename from src/commonTest/kotlin/com.zup.nimbus.core/ObservableLogger.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableLogger.kt index 189ba9b..e3475cb 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/ObservableLogger.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableLogger.kt @@ -1,7 +1,7 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.log.LogLevel -import com.zup.nimbus.core.log.Logger +import br.com.zup.nimbus.core.log.LogLevel +import br.com.zup.nimbus.core.log.Logger data class LogEntry( val message: String, diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/ObservableNavigator.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableNavigator.kt similarity index 84% rename from src/commonTest/kotlin/com.zup.nimbus.core/ObservableNavigator.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableNavigator.kt index 1a040db..a452fab 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/ObservableNavigator.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/ObservableNavigator.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core -import com.zup.nimbus.core.network.NetworkError -import com.zup.nimbus.core.network.ViewRequest -import com.zup.nimbus.core.tree.dynamic.builder.MalformedComponentError -import com.zup.nimbus.core.tree.dynamic.node.RootNode +import br.com.zup.nimbus.core.network.NetworkError +import br.com.zup.nimbus.core.network.ViewRequest +import br.com.zup.nimbus.core.tree.dynamic.builder.MalformedComponentError +import br.com.zup.nimbus.core.tree.dynamic.node.RootNode import kotlinx.coroutines.* import kotlinx.coroutines.test.TestScope diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/ActionObserverTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ActionObserverTest.kt similarity index 88% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/ActionObserverTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ActionObserverTest.kt index bc49de1..3266955 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/ActionObserverTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ActionObserverTest.kt @@ -1,15 +1,15 @@ -package com.zup.nimbus.core.integration +package br.com.zup.nimbus.core.integration -import com.zup.nimbus.core.ActionTriggeredEvent -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.NodeUtils -import com.zup.nimbus.core.ObservableLogger -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.tree.ServerDrivenAction -import com.zup.nimbus.core.tree.ServerDrivenNode -import com.zup.nimbus.core.tree.findNodeById -import com.zup.nimbus.core.ui.UILibrary +import br.com.zup.nimbus.core.ActionTriggeredEvent +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.NodeUtils +import br.com.zup.nimbus.core.ObservableLogger +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.tree.ServerDrivenAction +import br.com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.tree.findNodeById +import br.com.zup.nimbus.core.ui.UILibrary import kotlin.test.BeforeTest import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/StateResolutionTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/StateResolutionTest.kt similarity index 83% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/StateResolutionTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/StateResolutionTest.kt index d351032..2fa96cb 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/StateResolutionTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/StateResolutionTest.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.integration +package br.com.zup.nimbus.core.integration -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.tree.findNodeById +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.tree.findNodeById import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/forEach/ForEachTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/forEach/ForEachTest.kt similarity index 97% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/forEach/ForEachTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/forEach/ForEachTest.kt index e6c5776..63d8ad6 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/forEach/ForEachTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/forEach/ForEachTest.kt @@ -1,11 +1,11 @@ -package com.zup.nimbus.core.integration.forEach +package br.com.zup.nimbus.core.integration.forEach -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.NodeUtils -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.tree.ServerDrivenNode -import com.zup.nimbus.core.tree.findNodeById +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.NodeUtils +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.tree.findNodeById import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/forEach/screens.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/forEach/screens.kt similarity index 99% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/forEach/screens.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/forEach/screens.kt index c81051d..ed2326b 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/forEach/screens.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/forEach/screens.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.integration.forEach +package br.com.zup.nimbus.core.integration.forEach const val GENERAL_FOR_EACH = """{ "_:component": "layout:column", diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/ifThenElse/IfTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ifThenElse/IfTest.kt similarity index 94% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/ifThenElse/IfTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ifThenElse/IfTest.kt index 1d71eda..08ad7e9 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/ifThenElse/IfTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ifThenElse/IfTest.kt @@ -1,11 +1,11 @@ -package com.zup.nimbus.core.integration.ifThenElse +package br.com.zup.nimbus.core.integration.ifThenElse -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.NodeUtils -import com.zup.nimbus.core.ObservableLogger -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.NodeUtils +import br.com.zup.nimbus.core.ObservableLogger +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.tree.ServerDrivenNode import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/ifThenElse/screens.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ifThenElse/screens.kt similarity index 98% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/ifThenElse/screens.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ifThenElse/screens.kt index 5693a41..2ddf132 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/ifThenElse/screens.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/ifThenElse/screens.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.integration.ifThenElse +package br.com.zup.nimbus.core.integration.ifThenElse fun createIfThenElseScreen( conditionValue: Boolean, diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/NavigationTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/NavigationTest.kt similarity index 91% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/NavigationTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/NavigationTest.kt index 7b5813f..b73f8d2 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/NavigationTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/NavigationTest.kt @@ -1,12 +1,12 @@ -package com.zup.nimbus.core.integration.navigation - -import com.zup.nimbus.core.* -import com.zup.nimbus.core.network.DefaultHttpClient -import com.zup.nimbus.core.network.ResponseError -import com.zup.nimbus.core.network.ViewRequest -import com.zup.nimbus.core.scope.closestScopeWithType -import com.zup.nimbus.core.tree.dynamic.node.RootNode -import com.zup.nimbus.core.tree.findNodeById +package br.com.zup.nimbus.core.integration.navigation + +import br.com.zup.nimbus.core.* +import br.com.zup.nimbus.core.network.DefaultHttpClient +import br.com.zup.nimbus.core.network.ResponseError +import br.com.zup.nimbus.core.network.ViewRequest +import br.com.zup.nimbus.core.scope.closestScopeWithType +import br.com.zup.nimbus.core.tree.dynamic.node.RootNode +import br.com.zup.nimbus.core.tree.findNodeById import io.ktor.http.HttpStatusCode import kotlinx.coroutines.CancellationException import kotlinx.coroutines.ExperimentalCoroutinesApi diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/PreFetchTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/PreFetchTest.kt similarity index 96% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/PreFetchTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/PreFetchTest.kt index d06d5ad..9db9a76 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/PreFetchTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/PreFetchTest.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.integration.navigation +package br.com.zup.nimbus.core.integration.navigation -import com.zup.nimbus.core.* -import com.zup.nimbus.core.network.DefaultHttpClient -import com.zup.nimbus.core.network.ViewRequest -import com.zup.nimbus.core.scope.closestState +import br.com.zup.nimbus.core.* +import br.com.zup.nimbus.core.network.DefaultHttpClient +import br.com.zup.nimbus.core.network.ViewRequest +import br.com.zup.nimbus.core.scope.closestState import kotlinx.coroutines.* import kotlinx.coroutines.test.TestScope import kotlinx.coroutines.test.runTest diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/screenAssertions.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/screenAssertions.kt similarity index 96% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/screenAssertions.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/screenAssertions.kt index 35acede..26000fa 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/screenAssertions.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/screenAssertions.kt @@ -1,7 +1,7 @@ -package com.zup.nimbus.core.integration.navigation +package br.com.zup.nimbus.core.integration.navigation -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.tree.ServerDrivenNode import kotlin.test.assertEquals fun verifyScreen1(tree: ServerDrivenNode?) { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/serverMock.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/serverMock.kt similarity index 99% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/serverMock.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/serverMock.kt index 0a85984..fcf430e 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/navigation/serverMock.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/navigation/serverMock.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.integration.navigation +package br.com.zup.nimbus.core.integration.navigation import io.ktor.client.engine.mock.* import io.ktor.http.* diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/operations/OperationsTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/operations/OperationsTest.kt similarity index 68% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/operations/OperationsTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/operations/OperationsTest.kt index b833082..2f9c1b1 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/operations/OperationsTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/operations/OperationsTest.kt @@ -1,12 +1,12 @@ -package com.zup.nimbus.core.integration.operations - -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.NodeUtils -import com.zup.nimbus.core.ObservableLogger -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.integration.sendRequest.BASE_URL -import com.zup.nimbus.core.network.DefaultHttpClient +package br.com.zup.nimbus.core.integration.operations + +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.NodeUtils +import br.com.zup.nimbus.core.ObservableLogger +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.integration.sendRequest.BASE_URL +import br.com.zup.nimbus.core.network.DefaultHttpClient import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/operations/serverMock.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/operations/serverMock.kt similarity index 86% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/operations/serverMock.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/operations/serverMock.kt index f4cb82d..95e8f42 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/operations/serverMock.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/operations/serverMock.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.integration.operations +package br.com.zup.nimbus.core.integration.operations -import com.zup.nimbus.core.integration.sendRequest.BASE_URL +import br.com.zup.nimbus.core.integration.sendRequest.BASE_URL import io.ktor.client.engine.mock.MockEngine import io.ktor.client.engine.mock.respond import io.ktor.http.HttpHeaders diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/sendRequest/SendRequestTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/sendRequest/SendRequestTest.kt similarity index 91% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/sendRequest/SendRequestTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/sendRequest/SendRequestTest.kt index c887189..bf4cc83 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/sendRequest/SendRequestTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/sendRequest/SendRequestTest.kt @@ -1,12 +1,12 @@ -package com.zup.nimbus.core.integration.sendRequest - -import com.zup.nimbus.core.AsyncUtils -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.NodeUtils -import com.zup.nimbus.core.ObservableLogger -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.log.LogLevel -import com.zup.nimbus.core.network.DefaultHttpClient +package br.com.zup.nimbus.core.integration.sendRequest + +import br.com.zup.nimbus.core.AsyncUtils +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.NodeUtils +import br.com.zup.nimbus.core.ObservableLogger +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.log.LogLevel +import br.com.zup.nimbus.core.network.DefaultHttpClient import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.test.TestScope import kotlinx.coroutines.test.runTest diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/sendRequest/serverMock.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/sendRequest/serverMock.kt similarity index 98% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/sendRequest/serverMock.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/sendRequest/serverMock.kt index 8015f58..3c2d459 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/sendRequest/serverMock.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/sendRequest/serverMock.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.integration.sendRequest +package br.com.zup.nimbus.core.integration.sendRequest import io.ktor.client.engine.mock.* import io.ktor.http.* diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/setState/SetStateTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/setState/SetStateTest.kt similarity index 95% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/setState/SetStateTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/setState/SetStateTest.kt index 39123b5..da0e905 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/setState/SetStateTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/setState/SetStateTest.kt @@ -1,12 +1,12 @@ -package com.zup.nimbus.core.integration.setState - -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.NodeUtils -import com.zup.nimbus.core.ObservableLogger -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.log.LogLevel -import com.zup.nimbus.core.tree.ServerDrivenNode +package br.com.zup.nimbus.core.integration.setState + +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.NodeUtils +import br.com.zup.nimbus.core.ObservableLogger +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.log.LogLevel +import br.com.zup.nimbus.core.tree.ServerDrivenNode import kotlin.test.BeforeTest import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/integration/setState/screens.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/setState/screens.kt similarity index 99% rename from src/commonTest/kotlin/com.zup.nimbus.core/integration/setState/screens.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/integration/setState/screens.kt index 13e6474..5c26747 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/integration/setState/screens.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/integration/setState/screens.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.integration.setState +package br.com.zup.nimbus.core.integration.setState const val GENERAL_SET_STATE = """{ "_:component": "layout:column", diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/performance/PerformanceTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/performance/PerformanceTest.kt similarity index 88% rename from src/commonTest/kotlin/com.zup.nimbus.core/performance/PerformanceTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/performance/PerformanceTest.kt index bac0abe..db372e5 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/performance/PerformanceTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/performance/PerformanceTest.kt @@ -1,13 +1,13 @@ -package com.zup.nimbus.core.performance +package br.com.zup.nimbus.core.performance -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.JsonLoader -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.NodeUtils -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.tree.ServerDrivenNode -import com.zup.nimbus.core.tree.findNodeById -import com.zup.nimbus.core.ui.UILibrary +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.JsonLoader +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.NodeUtils +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.tree.findNodeById +import br.com.zup.nimbus.core.ui.UILibrary import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.test.TestScope import kotlinx.coroutines.test.runTest diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/FastRegexTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/FastRegexTest.kt similarity index 97% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/FastRegexTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/FastRegexTest.kt index 40375a8..a721657 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/FastRegexTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/FastRegexTest.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.unity +package br.com.zup.nimbus.core.unity -import com.zup.nimbus.core.regex.FastRegex -import com.zup.nimbus.core.regex.replace -import com.zup.nimbus.core.regex.toFastRegex +import br.com.zup.nimbus.core.regex.FastRegex +import br.com.zup.nimbus.core.regex.replace +import br.com.zup.nimbus.core.regex.toFastRegex import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/ServerDrivenState.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/ServerDrivenState.kt similarity index 96% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/ServerDrivenState.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/ServerDrivenState.kt index 88591ce..a1eeeab 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/ServerDrivenState.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/ServerDrivenState.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity +package br.com.zup.nimbus.core.unity -import com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.ServerDrivenState import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/SimpleAction.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/SimpleAction.kt similarity index 61% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/SimpleAction.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/SimpleAction.kt index 9461f3e..e65d2b5 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/SimpleAction.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/SimpleAction.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.unity +package br.com.zup.nimbus.core.unity -import com.zup.nimbus.core.ActionHandler -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.tree.ServerDrivenAction +import br.com.zup.nimbus.core.ActionHandler +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.tree.ServerDrivenAction class SimpleAction( override val name: String, diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/SimpleEvent.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/SimpleEvent.kt similarity index 59% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/SimpleEvent.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/SimpleEvent.kt index 7990283..b572f06 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/SimpleEvent.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/SimpleEvent.kt @@ -1,15 +1,15 @@ -package com.zup.nimbus.core.unity +package br.com.zup.nimbus.core.unity -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.ServerDrivenView -import com.zup.nimbus.core.dependency.CommonDependency -import com.zup.nimbus.core.scope.CommonScope -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.scope.closestScopeWithType -import com.zup.nimbus.core.tree.ServerDrivenAction -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.tree.ServerDrivenNode +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.ServerDrivenView +import br.com.zup.nimbus.core.dependency.CommonDependency +import br.com.zup.nimbus.core.scope.CommonScope +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.scope.closestScopeWithType +import br.com.zup.nimbus.core.tree.ServerDrivenAction +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.tree.ServerDrivenNode class SimpleEvent( override val name: String = "mock", diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/action/ConditionTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/action/ConditionTest.kt similarity index 77% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/action/ConditionTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/action/ConditionTest.kt index 9f684e5..bb1e918 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/action/ConditionTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/action/ConditionTest.kt @@ -1,17 +1,17 @@ -package com.zup.nimbus.core.unity.action +package br.com.zup.nimbus.core.unity.action -import com.zup.nimbus.core.ActionTriggeredEvent -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ObservableLogger -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.log.LogLevel -import com.zup.nimbus.core.scope.Scope -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.ui.action.condition -import com.zup.nimbus.core.ui.action.error.ActionDeserializationError -import com.zup.nimbus.core.unity.SimpleAction -import com.zup.nimbus.core.unity.SimpleEvent +import br.com.zup.nimbus.core.ActionTriggeredEvent +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ObservableLogger +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.log.LogLevel +import br.com.zup.nimbus.core.scope.Scope +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.ui.action.condition +import br.com.zup.nimbus.core.ui.action.error.ActionDeserializationError +import br.com.zup.nimbus.core.unity.SimpleAction +import br.com.zup.nimbus.core.unity.SimpleEvent import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/AnyServerDrivenDataTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/AnyServerDrivenDataTest.kt similarity index 96% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/AnyServerDrivenDataTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/AnyServerDrivenDataTest.kt index a61a4fa..5dc9247 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/AnyServerDrivenDataTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/AnyServerDrivenDataTest.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData -import com.zup.nimbus.core.tree.ServerDrivenEvent -import com.zup.nimbus.core.unity.SimpleEvent +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.tree.ServerDrivenEvent +import br.com.zup.nimbus.core.unity.SimpleEvent import kotlin.reflect.KClass import kotlin.test.BeforeTest import kotlin.test.assertContains diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/AnyTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/AnyTest.kt similarity index 89% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/AnyTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/AnyTest.kt index 784c074..fd61c9d 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/AnyTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/AnyTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.test.Test class AnyTest: AnyServerDrivenDataTest() { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/BooleanTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/BooleanTest.kt similarity index 94% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/BooleanTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/BooleanTest.kt index 2c679e1..b201a35 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/BooleanTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/BooleanTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.test.Test class BooleanTest: AnyServerDrivenDataTest() { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/DoubleTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/DoubleTest.kt similarity index 95% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/DoubleTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/DoubleTest.kt index d72c4ff..681cde1 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/DoubleTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/DoubleTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.math.exp import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/EnumTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/EnumTest.kt similarity index 92% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/EnumTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/EnumTest.kt index 90eb505..f4eefe0 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/EnumTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/EnumTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.test.Test class EnumTest: AnyServerDrivenDataTest() { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/EventTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/EventTest.kt similarity index 93% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/EventTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/EventTest.kt index dd44442..9520458 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/EventTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/EventTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.test.Test class EventTest: AnyServerDrivenDataTest() { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/FloatTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/FloatTest.kt similarity index 95% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/FloatTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/FloatTest.kt index 1d557ed..04c568a 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/FloatTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/FloatTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.math.exp import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/IntTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/IntTest.kt similarity index 96% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/IntTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/IntTest.kt index d7aae8f..e230609 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/IntTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/IntTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.math.exp import kotlin.test.Test import kotlin.test.assertContains diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/ListTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/ListTest.kt similarity index 97% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/ListTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/ListTest.kt index 5138714..635f167 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/ListTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/ListTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/LongTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/LongTest.kt similarity index 95% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/LongTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/LongTest.kt index 75579f8..5c4fda2 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/LongTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/LongTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.math.exp import kotlin.test.Test import kotlin.test.assertContains diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/MapTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/MapTest.kt similarity index 97% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/MapTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/MapTest.kt index 77d4684..c8f21a0 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/MapTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/MapTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/StringTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/StringTest.kt similarity index 91% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/StringTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/StringTest.kt index a718cde..b0e97ec 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/deserialization/StringTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/deserialization/StringTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.deserialization +package br.com.zup.nimbus.core.unity.deserialization -import com.zup.nimbus.core.deserialization.AnyServerDrivenData +import br.com.zup.nimbus.core.deserialization.AnyServerDrivenData import kotlin.test.Test class StringTest: AnyServerDrivenDataTest() { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/expression/expression.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/expression/expression.kt similarity index 96% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/expression/expression.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/expression/expression.kt index 229614a..925968e 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/expression/expression.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/expression/expression.kt @@ -1,14 +1,14 @@ -package com.zup.nimbus.core.unity.expression - -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.ServerDrivenState -import com.zup.nimbus.core.expression.Operation -import com.zup.nimbus.core.expression.StateReference -import com.zup.nimbus.core.expression.StringTemplate -import com.zup.nimbus.core.expression.parser.ExpressionParser -import com.zup.nimbus.core.scope.StateOnlyScope +package br.com.zup.nimbus.core.unity.expression + +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.ServerDrivenState +import br.com.zup.nimbus.core.expression.Operation +import br.com.zup.nimbus.core.expression.StateReference +import br.com.zup.nimbus.core.expression.StringTemplate +import br.com.zup.nimbus.core.expression.parser.ExpressionParser +import br.com.zup.nimbus.core.scope.StateOnlyScope import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/DefaultHttpClient.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/DefaultHttpClient.kt similarity index 82% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/network/DefaultHttpClient.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/DefaultHttpClient.kt index 0571ac5..5b5d47f 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/DefaultHttpClient.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/DefaultHttpClient.kt @@ -1,12 +1,12 @@ -package com.zup.nimbus.core.unity.network +package br.com.zup.nimbus.core.unity.network -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.network.DefaultHttpClient -import com.zup.nimbus.core.network.ServerDrivenHttpMethod -import com.zup.nimbus.core.network.ServerDrivenRequest -import com.zup.nimbus.core.unity.network.mocks.TestCustomHttpClient -import com.zup.nimbus.core.unity.network.mocks.httpEngineMock +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.network.DefaultHttpClient +import br.com.zup.nimbus.core.network.ServerDrivenHttpMethod +import br.com.zup.nimbus.core.network.ServerDrivenRequest +import br.com.zup.nimbus.core.unity.network.mocks.TestCustomHttpClient +import br.com.zup.nimbus.core.unity.network.mocks.httpEngineMock import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/UrlBuilder.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/UrlBuilder.kt similarity index 77% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/network/UrlBuilder.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/UrlBuilder.kt index fab3cc1..a03a3f6 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/UrlBuilder.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/UrlBuilder.kt @@ -1,10 +1,10 @@ -package com.zup.nimbus.core.unity.network +package br.com.zup.nimbus.core.unity.network -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.network.DefaultUrlBuilder -import com.zup.nimbus.core.unity.network.mocks.CustomUrlBuilderTest +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.network.DefaultUrlBuilder +import br.com.zup.nimbus.core.unity.network.mocks.CustomUrlBuilderTest import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNotEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/customHttpClient.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/customHttpClient.kt similarity index 68% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/customHttpClient.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/customHttpClient.kt index b505585..ddb0534 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/customHttpClient.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/customHttpClient.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.unity.network.mocks +package br.com.zup.nimbus.core.unity.network.mocks -import com.zup.nimbus.core.network.HttpClient -import com.zup.nimbus.core.network.ServerDrivenRequest -import com.zup.nimbus.core.network.ServerDrivenResponse +import br.com.zup.nimbus.core.network.HttpClient +import br.com.zup.nimbus.core.network.ServerDrivenRequest +import br.com.zup.nimbus.core.network.ServerDrivenResponse class TestCustomHttpClient: HttpClient { companion object Factory { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/customUrlBuilder.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/customUrlBuilder.kt similarity index 56% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/customUrlBuilder.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/customUrlBuilder.kt index 5c84320..864f971 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/customUrlBuilder.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/customUrlBuilder.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.network.mocks +package br.com.zup.nimbus.core.unity.network.mocks -import com.zup.nimbus.core.network.UrlBuilder +import br.com.zup.nimbus.core.network.UrlBuilder class CustomUrlBuilderTest: UrlBuilder { override fun build(path: String): String { diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/httpEngineMock.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/httpEngineMock.kt similarity index 92% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/httpEngineMock.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/httpEngineMock.kt index e380678..6767e01 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/network/mocks/httpEngineMock.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/network/mocks/httpEngineMock.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.unity.network.mocks +package br.com.zup.nimbus.core.unity.network.mocks import io.ktor.client.engine.mock.MockEngine import io.ktor.client.engine.mock.respond diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/and.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/and.kt similarity index 88% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/and.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/and.kt index 99977cf..76cb2ab 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/and.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/and.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/capitalize.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/capitalize.kt similarity index 84% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/capitalize.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/capitalize.kt index 3e671d7..21326a4 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/capitalize.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/capitalize.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/concat.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/concat.kt similarity index 90% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/concat.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/concat.kt index 0856214..da6a25e 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/concat.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/concat.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/condition.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/condition.kt similarity index 85% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/condition.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/condition.kt index 21eb52d..4200643 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/condition.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/condition.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/contains.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/contains.kt similarity index 93% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/contains.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/contains.kt index 7194558..539ef94 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/contains.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/contains.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/divide.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/divide.kt similarity index 92% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/divide.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/divide.kt index 4373c57..b857795 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/divide.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/divide.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/eq.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/eq.kt similarity index 94% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/eq.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/eq.kt index 7b7ac68..72f483b 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/eq.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/eq.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/gt.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/gt.kt similarity index 92% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/gt.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/gt.kt index 844b696..16e8375 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/gt.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/gt.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/gte.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/gte.kt similarity index 93% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/gte.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/gte.kt index 1fdf25f..f793a61 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/gte.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/gte.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/insert.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/insert.kt similarity index 88% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/insert.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/insert.kt index 71d0d8e..db2177e 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/insert.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/insert.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/isEmpty.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/isEmpty.kt similarity index 93% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/isEmpty.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/isEmpty.kt index 2e8b00b..b0b1dd7 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/isEmpty.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/isEmpty.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/isNull.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/isNull.kt similarity index 81% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/isNull.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/isNull.kt index 1b761c7..06a1b61 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/isNull.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/isNull.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/length.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/length.kt similarity index 93% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/length.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/length.kt index 80ebabc..079c945 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/length.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/length.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lowercase.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lowercase.kt similarity index 76% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lowercase.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lowercase.kt index 575d4bf..090f028 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lowercase.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lowercase.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lt.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lt.kt similarity index 92% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lt.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lt.kt index 1d675b2..032eceb 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lt.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lt.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lte.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lte.kt similarity index 93% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lte.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lte.kt index d8f604a..7c1c77a 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/lte.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/lte.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/match.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/match.kt similarity index 80% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/match.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/match.kt index c961dda..4538a05 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/match.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/match.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/multiply.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/multiply.kt similarity index 92% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/multiply.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/multiply.kt index c7afd71..561e315 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/multiply.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/multiply.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/not.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/not.kt similarity index 79% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/not.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/not.kt index a83572c..540e999 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/not.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/not.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/or.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/or.kt similarity index 83% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/or.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/or.kt index 37a6e8d..008ca65 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/or.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/or.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/remove.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/remove.kt similarity index 89% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/remove.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/remove.kt index 30ab6e1..aa9d842 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/remove.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/remove.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/removeIndex.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/removeIndex.kt similarity index 89% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/removeIndex.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/removeIndex.kt index 8e9ffb8..ee82985 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/removeIndex.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/removeIndex.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/replace.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/replace.kt similarity index 79% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/replace.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/replace.kt index 1e932a2..0af30da 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/replace.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/replace.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/substr.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/substr.kt similarity index 76% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/substr.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/substr.kt index 6f8807f..406b2c1 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/substr.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/substr.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/subtract.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/subtract.kt similarity index 92% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/subtract.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/subtract.kt index 4487429..8986a7f 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/subtract.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/subtract.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/sum.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/sum.kt similarity index 91% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/sum.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/sum.kt index e7a6085..12a827d 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/sum.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/sum.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/uppercase.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/uppercase.kt similarity index 76% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/uppercase.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/uppercase.kt index f483c24..204235f 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/operations/uppercase.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/operations/uppercase.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.operations +package br.com.zup.nimbus.core.unity.operations -import com.zup.nimbus.core.ui.coreUILibrary +import br.com.zup.nimbus.core.ui.coreUILibrary import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/tree/NodeBuilder.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/tree/NodeBuilder.kt similarity index 64% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/tree/NodeBuilder.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/tree/NodeBuilder.kt index 4d19f97..04973a9 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/tree/NodeBuilder.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/tree/NodeBuilder.kt @@ -1,9 +1,9 @@ -package com.zup.nimbus.core.unity.tree +package br.com.zup.nimbus.core.unity.tree -import com.zup.nimbus.core.EmptyHttpClient -import com.zup.nimbus.core.Nimbus -import com.zup.nimbus.core.ServerDrivenConfig -import com.zup.nimbus.core.tree.dynamic.builder.MalformedJsonError +import br.com.zup.nimbus.core.EmptyHttpClient +import br.com.zup.nimbus.core.Nimbus +import br.com.zup.nimbus.core.ServerDrivenConfig +import br.com.zup.nimbus.core.tree.dynamic.builder.MalformedJsonError import kotlin.test.Test import kotlin.test.assertTrue diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/AnyTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/AnyTest.kt similarity index 97% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/AnyTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/AnyTest.kt index 3e4f44a..720749c 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/AnyTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/AnyTest.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.unity.utils +package br.com.zup.nimbus.core.unity.utils -import com.zup.nimbus.core.utils.UnexpectedDataTypeError -import com.zup.nimbus.core.utils.transformJsonObjectToMap -import com.zup.nimbus.core.utils.valueOfPath +import br.com.zup.nimbus.core.utils.UnexpectedDataTypeError +import br.com.zup.nimbus.core.utils.transformJsonObjectToMap +import br.com.zup.nimbus.core.utils.valueOfPath import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json import kotlinx.serialization.json.JsonObject diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/BooleanTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/BooleanTest.kt similarity index 84% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/BooleanTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/BooleanTest.kt index b8ea849..eb5e490 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/BooleanTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/BooleanTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.utils +package br.com.zup.nimbus.core.unity.utils -import com.zup.nimbus.core.utils.then +import br.com.zup.nimbus.core.utils.then import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/JsonTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/JsonTest.kt similarity index 94% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/JsonTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/JsonTest.kt index f652303..3162e29 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/JsonTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/JsonTest.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.unity.utils +package br.com.zup.nimbus.core.unity.utils -import com.zup.nimbus.core.utils.transformJsonArrayToList -import com.zup.nimbus.core.utils.transformJsonObjectToMap -import com.zup.nimbus.core.utils.transformJsonPrimitiveToPrimitive +import br.com.zup.nimbus.core.utils.transformJsonArrayToList +import br.com.zup.nimbus.core.utils.transformJsonObjectToMap +import br.com.zup.nimbus.core.utils.transformJsonPrimitiveToPrimitive import kotlin.test.Test import kotlin.test.assertContains import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/ListTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/ListTest.kt similarity index 86% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/ListTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/ListTest.kt index a9ee9be..ee6f17d 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/ListTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/ListTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.utils +package br.com.zup.nimbus.core.unity.utils -import com.zup.nimbus.core.utils.mapValuesToMutableList +import br.com.zup.nimbus.core.utils.mapValuesToMutableList import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/MapTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/MapTest.kt similarity index 90% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/MapTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/MapTest.kt index a4ccef5..8556dad 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/MapTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/MapTest.kt @@ -1,6 +1,6 @@ -package com.zup.nimbus.core.unity.utils +package br.com.zup.nimbus.core.unity.utils -import com.zup.nimbus.core.utils.mapValuesToMutableMap +import br.com.zup.nimbus.core.utils.mapValuesToMutableMap import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/StringTest.kt b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/StringTest.kt similarity index 81% rename from src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/StringTest.kt rename to src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/StringTest.kt index 89c2ab9..70763bd 100644 --- a/src/commonTest/kotlin/com.zup.nimbus.core/unity/utils/StringTest.kt +++ b/src/commonTest/kotlin/br/com/zup/nimbus/core/unity/utils/StringTest.kt @@ -1,8 +1,8 @@ -package com.zup.nimbus.core.unity.utils +package br.com.zup.nimbus.core.unity.utils -import com.zup.nimbus.core.utils.addPrefix -import com.zup.nimbus.core.utils.removePrefix -import com.zup.nimbus.core.utils.removeSuffix +import br.com.zup.nimbus.core.utils.addPrefix +import br.com.zup.nimbus.core.utils.removePrefix +import br.com.zup.nimbus.core.utils.removeSuffix import kotlin.test.Test import kotlin.test.assertEquals diff --git a/src/iosMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt b/src/iosMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt similarity index 99% rename from src/iosMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt rename to src/iosMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt index 9a05c4c..9dbac20 100644 --- a/src/iosMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt +++ b/src/iosMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.regex +package br.com.zup.nimbus.core.regex import kotlinx.cinterop.ObjCObjectVar import kotlinx.cinterop.alloc diff --git a/src/iosMain/kotlin/com/zup/nimbus/core/utils/Null.kt b/src/iosMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt similarity index 84% rename from src/iosMain/kotlin/com/zup/nimbus/core/utils/Null.kt rename to src/iosMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt index a0c25a2..90d5163 100644 --- a/src/iosMain/kotlin/com/zup/nimbus/core/utils/Null.kt +++ b/src/iosMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils import platform.Foundation.NSNull diff --git a/src/iosTest/kotlin/com/zup/nimbus/core/JsonLoader.kt b/src/iosTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt similarity index 97% rename from src/iosTest/kotlin/com/zup/nimbus/core/JsonLoader.kt rename to src/iosTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt index 0e8faa0..a4dc80e 100644 --- a/src/iosTest/kotlin/com/zup/nimbus/core/JsonLoader.kt +++ b/src/iosTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core import kotlinx.cinterop.ByteVar import kotlinx.cinterop.CPointer diff --git a/src/jvmMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt b/src/jvmMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt similarity index 97% rename from src/jvmMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt rename to src/jvmMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt index 60151cf..90aada5 100644 --- a/src/jvmMain/kotlin/com/zup/nimbus/core/regex/FastRegex.kt +++ b/src/jvmMain/kotlin/br/com/zup/nimbus/core/regex/FastRegex.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.regex +package br.com.zup.nimbus.core.regex actual class FastRegex actual constructor(actual val pattern: String) { private val regex = pattern.toRegex() diff --git a/src/jvmMain/kotlin/com/zup/nimbus/core/utils/Null.kt b/src/jvmMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt similarity index 80% rename from src/jvmMain/kotlin/com/zup/nimbus/core/utils/Null.kt rename to src/jvmMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt index 263ed04..2d06da6 100644 --- a/src/jvmMain/kotlin/com/zup/nimbus/core/utils/Null.kt +++ b/src/jvmMain/kotlin/br/com/zup/nimbus/core/utils/Null.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core.utils +package br.com.zup.nimbus.core.utils actual object Null { actual fun isNull(value: Any?) = value == null diff --git a/src/jvmTest/kotlin/com/zup/nimbus/core/JsonLoader.kt b/src/jvmTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt similarity index 93% rename from src/jvmTest/kotlin/com/zup/nimbus/core/JsonLoader.kt rename to src/jvmTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt index 587fac6..3c49b42 100644 --- a/src/jvmTest/kotlin/com/zup/nimbus/core/JsonLoader.kt +++ b/src/jvmTest/kotlin/br/com/zup/nimbus/core/JsonLoader.kt @@ -1,4 +1,4 @@ -package com.zup.nimbus.core +package br.com.zup.nimbus.core import java.io.File