Skip to content

Commit

Permalink
cocoapods add macOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
Piasy committed Feb 25, 2025
1 parent d52d9d7 commit 8505425
Show file tree
Hide file tree
Showing 23 changed files with 311 additions and 508 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ local.properties

xcuserdata
**.podspec
**.xcodeproj
**.xcworkspace
Podfile.lock
Pods

Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ Open the project (the repo root dir) in Android studio, and run the example.andr

```bash
cd example/iosApp
xcodegen
pod install
# open iosApp.xcworkspace in Xcode, and run it.
```
Expand Down Expand Up @@ -150,11 +151,22 @@ Install deps: `zlib1g-dev`.

### macOS

Test in command line:

```bash
./scripts/build_apple.sh
./gradlew runKmp_xlogDebugExecutableMacosX64
```

Test in GUI:

```bash
cd example/macApp
xcodegen
pod install
# open macApp.xcworkspace in Xcode, and run it.
```

## Development

### Build MarsXLog
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Constants.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object Consts {
const val releaseGroup = "com.piasy"
const val releaseName = "kmp-xlog"
const val releaseVersion = "1.3.1"
const val releaseVersion = "1.3.2"

val androidNS = "$releaseGroup.${releaseName.replace('-', '.')}"
}
Loading

0 comments on commit 8505425

Please sign in to comment.