Skip to content

Commit 07cdb01

Browse files
authored
Merge pull request #27 from luoxiu/refactor-project-structure
[big pr]: refactor project structure
2 parents 654d787 + a31f26b commit 07cdb01

File tree

95 files changed

+1673
-1132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+1673
-1132
lines changed

.travis.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
env:
2+
global:
3+
- PROJECT="KakaJSON.xcodeproj"
4+
- SCHEME="KakaJSON-Package"
5+
- SWIFT_VERSION=5.0
6+
7+
matrix:
8+
include:
9+
- os: osx
10+
language: swift
11+
osx_image: xcode10.2
12+
env:
13+
- SDK="iphonesimulator12.2"
14+
- DESTINATION="platform=iOS Simulator,name=iPhone 8,OS=12.2"
15+
- os: osx
16+
language: swift
17+
osx_image: xcode10.2
18+
env:
19+
- SDK="macosx10.14"
20+
- DESTINATION="arch=x86_64"
21+
- os: osx
22+
language: swift
23+
osx_image: xcode10.2
24+
env:
25+
- SDK="appletvsimulator12.0"
26+
- DESTINATION="OS=12.0,name=Apple TV 4K"
27+
# - os: linux
28+
# language: generic
29+
# dist: trusty
30+
# sudo: required
31+
32+
before_install:
33+
- echo $TRAVIS_OS_NAME
34+
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
35+
gem install xcpretty;
36+
fi
37+
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
38+
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
39+
fi
40+
41+
script:
42+
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
43+
xcodebuild clean build test -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -enableCodeCoverage YES | xcpretty;
44+
fi
45+
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
46+
swift test;
47+
fi

KakaJSON/DevGuidline.h renamed to DevGuideline.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// DevGuidline.h
2+
// DevGuideline.md
33
// KakaJSON
44
//
55
// Created by MJ Lee on 2019/8/14.
@@ -54,6 +54,6 @@
5454
- obj._memberName
5555
- e.g. "123"._numberCount, model._JSON()
5656

57-
Name of method or tpye must be `JSON`
57+
④ Name of method or type must be `JSON`
5858
- not `json`, not `Json`
5959
- name of variable can be `json`

KakaJSON.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ Pod::Spec.new do |s|
1515
s.tvos.deployment_target = "9.0"
1616

1717
s.source = { :git => "https://github.com/kakaopensource/KakaJSON.git", :tag => s.version }
18-
s.source_files = "KakaJSON/**/*.swift"
18+
s.source_files = "Sources/KakaJSON/**/*.swift"
1919
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>CFBundleDevelopmentRegion</key>
5+
<string>en</string>
6+
<key>CFBundleExecutable</key>
7+
<string>$(EXECUTABLE_NAME)</string>
8+
<key>CFBundleIdentifier</key>
9+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
10+
<key>CFBundleInfoDictionaryVersion</key>
11+
<string>6.0</string>
12+
<key>CFBundleName</key>
13+
<string>$(PRODUCT_NAME)</string>
14+
<key>CFBundlePackageType</key>
15+
<string>BNDL</string>
16+
<key>CFBundleShortVersionString</key>
17+
<string>1.0</string>
18+
<key>CFBundleSignature</key>
19+
<string>????</string>
20+
<key>CFBundleVersion</key>
21+
<string>$(CURRENT_PROJECT_VERSION)</string>
22+
<key>NSPrincipalClass</key>
23+
<string></string>
24+
</dict>
25+
</plist>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>CFBundleDevelopmentRegion</key>
5+
<string>en</string>
6+
<key>CFBundleExecutable</key>
7+
<string>$(EXECUTABLE_NAME)</string>
8+
<key>CFBundleIdentifier</key>
9+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
10+
<key>CFBundleInfoDictionaryVersion</key>
11+
<string>6.0</string>
12+
<key>CFBundleName</key>
13+
<string>$(PRODUCT_NAME)</string>
14+
<key>CFBundlePackageType</key>
15+
<string>FMWK</string>
16+
<key>CFBundleShortVersionString</key>
17+
<string>1.0</string>
18+
<key>CFBundleSignature</key>
19+
<string>????</string>
20+
<key>CFBundleVersion</key>
21+
<string>$(CURRENT_PROJECT_VERSION)</string>
22+
<key>NSPrincipalClass</key>
23+
<string></string>
24+
</dict>
25+
</plist>

KakaJSON.xcodeproj/project.pbxproj

Lines changed: 836 additions & 0 deletions
Large diffs are not rendered by default.

KakaJSONDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata renamed to KakaJSON.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
6+
<false/>
7+
</dict>
8+
</plist>

KakaJSONDemo.xcodeproj/xcshareddata/xcschemes/KakaJSON.xcscheme renamed to KakaJSON.xcodeproj/xcshareddata/xcschemes/KakaJSON-Package.xcscheme

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1030"
3+
LastUpgradeVersion = "9999"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -14,10 +14,10 @@
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "2D906833230F7B2A00243BB6"
17+
BlueprintIdentifier = "KakaJSON::KakaJSON"
1818
BuildableName = "KakaJSON.framework"
1919
BlueprintName = "KakaJSON"
20-
ReferencedContainer = "container:KakaJSONDemo.xcodeproj">
20+
ReferencedContainer = "container:KakaJSON.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
</BuildActionEntries>
@@ -28,6 +28,16 @@
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
3030
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "KakaJSON::KakaJSONTests"
36+
BuildableName = "KakaJSONTests.xctest"
37+
BlueprintName = "KakaJSONTests"
38+
ReferencedContainer = "container:KakaJSON.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
3141
</Testables>
3242
<AdditionalOptions>
3343
</AdditionalOptions>
@@ -45,10 +55,10 @@
4555
<MacroExpansion>
4656
<BuildableReference
4757
BuildableIdentifier = "primary"
48-
BlueprintIdentifier = "2D906833230F7B2A00243BB6"
58+
BlueprintIdentifier = "KakaJSON::KakaJSON"
4959
BuildableName = "KakaJSON.framework"
5060
BlueprintName = "KakaJSON"
51-
ReferencedContainer = "container:KakaJSONDemo.xcodeproj">
61+
ReferencedContainer = "container:KakaJSON.xcodeproj">
5262
</BuildableReference>
5363
</MacroExpansion>
5464
<AdditionalOptions>
@@ -60,15 +70,6 @@
6070
savedToolIdentifier = ""
6171
useCustomWorkingDirectory = "NO"
6272
debugDocumentVersioning = "YES">
63-
<MacroExpansion>
64-
<BuildableReference
65-
BuildableIdentifier = "primary"
66-
BlueprintIdentifier = "2D906833230F7B2A00243BB6"
67-
BuildableName = "KakaJSON.framework"
68-
BlueprintName = "KakaJSON"
69-
ReferencedContainer = "container:KakaJSONDemo.xcodeproj">
70-
</BuildableReference>
71-
</MacroExpansion>
7273
</ProfileAction>
7374
<AnalyzeAction
7475
buildConfiguration = "Debug">

0 commit comments

Comments
 (0)