Skip to content

Commit 8505425

Browse files
committed
cocoapods add macOS support
1 parent d52d9d7 commit 8505425

File tree

23 files changed

+311
-508
lines changed

23 files changed

+311
-508
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ local.properties
1111

1212
xcuserdata
1313
**.podspec
14+
**.xcodeproj
15+
**.xcworkspace
1416
Podfile.lock
1517
Pods
1618

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ Open the project (the repo root dir) in Android studio, and run the example.andr
117117

118118
```bash
119119
cd example/iosApp
120+
xcodegen
120121
pod install
121122
# open iosApp.xcworkspace in Xcode, and run it.
122123
```
@@ -150,11 +151,22 @@ Install deps: `zlib1g-dev`.
150151

151152
### macOS
152153

154+
Test in command line:
155+
153156
```bash
154157
./scripts/build_apple.sh
155158
./gradlew runKmp_xlogDebugExecutableMacosX64
156159
```
157160

161+
Test in GUI:
162+
163+
```bash
164+
cd example/macApp
165+
xcodegen
166+
pod install
167+
# open macApp.xcworkspace in Xcode, and run it.
168+
```
169+
158170
## Development
159171

160172
### Build MarsXLog

buildSrc/src/main/kotlin/Constants.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
object Consts {
22
const val releaseGroup = "com.piasy"
33
const val releaseName = "kmp-xlog"
4-
const val releaseVersion = "1.3.1"
4+
const val releaseVersion = "1.3.2"
55

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

0 commit comments

Comments
 (0)