Skip to content

Commit

Permalink
Renamed project from presentation to cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
chRyNaN committed Apr 14, 2023
1 parent 75a7b39 commit 18d3c3c
Show file tree
Hide file tree
Showing 47 changed files with 68 additions and 68 deletions.
Binary file modified assets/branding_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import com.chrynan.presentation.buildSrc.LibraryConstants
import com.chrynan.cycle.buildSrc.LibraryConstants

group = LibraryConstants.group
version = LibraryConstants.versionName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.chrynan.presentation.buildSrc
package com.chrynan.cycle.buildSrc

object LibraryConstants {

const val group = "com.chrynan.presentation"
const val group = "com.chrynan.cycle"
const val owner = "chrynan"
const val repoName = "presentation"
const val repoName = "cycle"
const val versionName = "0.10.0"
const val versionCode = 22
const val versionDescription = "Release $versionName ($versionCode)"
const val license = "Apache-2.0"
const val vcsUrl = "https://github.com/chRyNaN/presentation.git"
const val vcsUrl = "https://github.com/chRyNaN/cycle.git"

object Android {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.chrynan.presentation.buildSrc
package com.chrynan.cycle.buildSrc

import java.lang.System

Expand Down
3 changes: 3 additions & 0 deletions cycle-compose/Module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Module cycle-compose

Jetpack Compose cycle presentation components.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import com.chrynan.presentation.buildSrc.LibraryConstants
import com.chrynan.presentation.buildSrc.isBuildingOnOSX
import com.chrynan.cycle.buildSrc.LibraryConstants
import com.chrynan.cycle.buildSrc.isBuildingOnOSX
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down Expand Up @@ -35,7 +35,7 @@ kotlin {
}
val commonMain by getting {
dependencies {
api(project(":presentation-core"))
api(project(":cycle-core"))

implementation(compose.runtime)
implementation(compose.foundation)
Expand Down
1 change: 1 addition & 0 deletions cycle-compose/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<manifest package="com.chrynan.cycle.compose"/>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.lifecycle.viewmodel.CreationExtras
import androidx.lifecycle.viewmodel.compose.viewModel
import com.chrynan.presentation.*
import com.chrynan.cycle.*
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlin.reflect.KClass
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import android.os.Bundle
import android.view.LayoutInflater
Expand All @@ -9,7 +9,7 @@ import android.view.ViewGroup
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.ComposeView
import androidx.compose.ui.platform.ViewCompositionStrategy
import com.chrynan.presentation.PresentationFragment
import com.chrynan.cycle.PresentationFragment
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview

Expand All @@ -36,7 +36,7 @@ import kotlinx.coroutines.FlowPreview
@FlowPreview
abstract class ComposeFragment<State, Change> :
PresentationFragment<State, Change>(),
com.chrynan.presentation.View<State, Change> {
com.chrynan.cycle.View<State, Change> {

/**
* Display the UI content. Remember to subscribe to the state changes using the [stateChanges] function within this
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@file:Suppress("unused")

package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import androidx.compose.runtime.*
import com.chrynan.presentation.ViewModel
import com.chrynan.cycle.ViewModel
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlin.coroutines.CoroutineContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@file:Suppress("unused")

package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import com.chrynan.presentation.View
import com.chrynan.cycle.View
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlin.coroutines.CoroutineContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@file:Suppress("unused")

package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import androidx.compose.runtime.*
import com.chrynan.presentation.*
import com.chrynan.cycle.*
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@file:Suppress("unused")

package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import androidx.compose.runtime.Composable
import androidx.compose.runtime.ProvidableCompositionLocal
import androidx.compose.runtime.staticCompositionLocalOf
import com.chrynan.presentation.*
import com.chrynan.cycle.*
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview

Expand Down Expand Up @@ -45,4 +45,4 @@ internal expect inline fun <State, Change, reified V : ViewModel<State, Change>>
@Composable
inline fun <State, Change, reified V : ViewModel<State, Change>> rememberViewModel(
key: Any? = null
): V = internalRememberViewModel(key = key)
): V = com.chrynan.cycle.compose.internalRememberViewModel(key = key)
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import com.chrynan.presentation.ViewModel
import com.chrynan.presentation.ExperimentalPresentationApi
import com.chrynan.cycle.ViewModel
import com.chrynan.cycle.ExperimentalPresentationApi
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import com.chrynan.presentation.ExperimentalPresentationApi
import com.chrynan.presentation.ViewModel
import com.chrynan.cycle.ExperimentalPresentationApi
import com.chrynan.cycle.ViewModel
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.chrynan.presentation.compose
package com.chrynan.cycle.compose

import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import com.chrynan.presentation.ExperimentalPresentationApi
import com.chrynan.presentation.ViewModel
import com.chrynan.cycle.ExperimentalPresentationApi
import com.chrynan.cycle.ViewModel
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview

Expand Down
3 changes: 3 additions & 0 deletions cycle-core/Module.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Module cycle-core

Core components for the cycle presentation library.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import com.chrynan.presentation.buildSrc.LibraryConstants
import com.chrynan.presentation.buildSrc.isBuildingOnOSX
import com.chrynan.cycle.buildSrc.LibraryConstants
import com.chrynan.cycle.buildSrc.isBuildingOnOSX
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down
1 change: 1 addition & 0 deletions cycle-core/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<manifest package="com.chrynan.cycle.android"/>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import kotlin.time.Duration
import kotlin.time.Duration.Companion.milliseconds
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.chrynan.presentation
package com.chrynan.cycle

actual abstract class PlatformViewModel internal actual constructor() : androidx.lifecycle.ViewModel()
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import android.os.Bundle
import androidx.fragment.app.Fragment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import kotlinx.coroutines.flow.Flow

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.chrynan.presentation
package com.chrynan.cycle

/**
* An interface for a component that can be bound to another component, typically which has a
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.chrynan.presentation
package com.chrynan.cycle

import kotlin.time.Duration
import kotlin.time.ExperimentalTime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.chrynan.presentation
package com.chrynan.cycle

/**
* The annotated component represents an experimental presentation API and may change or be removed in the future.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import com.chrynan.dispatchers.CoroutineDispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.chrynan.presentation
package com.chrynan.cycle

/**
* The base class that a [ViewModel] inherits from. This allows each supported platform to have a platform-specific
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.chrynan.presentation
package com.chrynan.cycle

/**
* A [Reducer] is responsible for determining the State that is displayed in the UI. A [Reducer] is a function that
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import com.chrynan.dispatchers.CoroutineDispatchers
import kotlinx.coroutines.CoroutineScope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.chrynan.presentation
package com.chrynan.cycle

import kotlin.time.Duration
import kotlin.time.ExperimentalTime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused", "MemberVisibilityCanBePrivate", "CanBeParameter")

package com.chrynan.presentation
package com.chrynan.cycle

import com.chrynan.dispatchers.CoroutineDispatchers
import kotlinx.coroutines.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import kotlin.system.getTimeMillis
import kotlin.time.Duration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.chrynan.presentation
package com.chrynan.cycle

actual abstract class PlatformViewModel internal actual constructor()
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.chrynan.presentation
package com.chrynan.cycle

import kotlin.js.Date
import kotlin.time.Duration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.chrynan.presentation
package com.chrynan.cycle

actual abstract class PlatformViewModel internal actual constructor()
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@file:Suppress("unused")

package com.chrynan.presentation
package com.chrynan.cycle

import kotlin.time.Duration
import kotlin.time.Duration.Companion.milliseconds
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.chrynan.presentation
package com.chrynan.cycle

actual abstract class PlatformViewModel internal actual constructor()
3 changes: 0 additions & 3 deletions presentation-compose/Module.md

This file was deleted.

1 change: 0 additions & 1 deletion presentation-compose/src/androidMain/AndroidManifest.xml

This file was deleted.

3 changes: 0 additions & 3 deletions presentation-core/Module.md

This file was deleted.

1 change: 0 additions & 1 deletion presentation-core/src/androidMain/AndroidManifest.xml

This file was deleted.

6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
// See build.gradle.kts file in root project folder for the rest of the plugins applied.
}

rootProject.name = "presentation"
rootProject.name = "cycle"

include(":presentation-core")
include(":presentation-compose")
include(":cycle-core")
include(":cycle-compose")

0 comments on commit 18d3c3c

Please sign in to comment.