Skip to content

Commit 25ff69e

Browse files
committed
Add Use Cases factory class
1 parent afa96e2 commit 25ff69e

File tree

3 files changed

+53
-4
lines changed

3 files changed

+53
-4
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,28 @@
33
# Horns App - Kotlin Multiplatform
44
This is a Kotlin Multiplatform that will be import in Android and iOS projects.
55

6-
## How to create a new version
6+
## How to generate a Local Build
7+
8+
### iOS
9+
First, we would need to generate a podspec file just the first time. In order to do that we should run:
10+
```
11+
./gradlew podspec
12+
```
13+
14+
However, we already have created a file manually, so we will skip that line for now.
15+
16+
After that we need to run the next line each time we do a local change:
17+
```
18+
./gradlew buildReleaseXCFramework
19+
```
20+
21+
Finally, in the ios module we need to update the local module:
22+
```
23+
pod update
24+
pod install
25+
```
26+
27+
## How to create a new Release version
728

829
### Create a Tag
930
First, we have to create a new git tag
@@ -14,7 +35,7 @@ then push this tag into the Remote Repository
1435
```
1536
git push origin --tags
1637
```
17-
### [iOS] Push a new version in PodSpecs Repository
38+
### [iOS only] Push a new version in PodSpecs Repository
1839
As an optional step you could clean the cache, just in case
1940
```
2041
pod cache clean --all
@@ -38,6 +59,9 @@ This file will first execute a script in order to build a xcframework.
3859
The script folder contains the `prepare_command.script` that will be executed by HornsAppCore.podspec file,
3960
as a prepare command. This script contains pre-conditions that are necessary in order to publish our library.
4061

62+
### [Android only]
63+
Make sure to run the JitPack job that depends on the Github Tags.
64+
4165
## License
4266
```
4367
Copyright 2020 HornsApp Contributors
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
/* Copyright © 2025 HornsApp. All rights reserved. */
12
package com.yesferal.hornsapp.core
23

3-
class HornsAppCoreVersion {
4-
val version = "1.4.4"
4+
class HornsAppCoreConfig {
5+
/*
6+
Environment Section
7+
*/
8+
val hornsAppCoreLibVersion = "1.4.4"
9+
10+
/*
11+
Render Section
12+
*/
13+
val appRenderFileName = "app_render"
514
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Copyright © 2025 HornsApp. All rights reserved. */
2+
package com.yesferal.hornsapp.core.domain.di
3+
4+
import com.yesferal.hornsapp.core.domain.abstraction.RenderRepository
5+
import com.yesferal.hornsapp.core.domain.usecase.render.GetHomeRenderUseCase
6+
7+
/*
8+
Util class to handle Use Cases instance in iOS
9+
*/
10+
object UseCaseFactory {
11+
fun createGetHomeRenderUseCase(
12+
repository: RenderRepository
13+
): GetHomeRenderUseCase {
14+
return GetHomeRenderUseCase(repository)
15+
}
16+
}

0 commit comments

Comments
 (0)