Skip to content

Commit 1efd26b

Browse files
author
stephen.boyle
committed
2.3.0-release
0 parents  commit 1efd26b

File tree

164 files changed

+7468
-0
lines changed

Some content is hidden

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

164 files changed

+7468
-0
lines changed

.git-blame-ignore-revs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
521d5fafba95abc8493629e9fe33e1f11d17606b
2+
40e79186fb6367a1c6c63ea0e7d5493af00710f8
3+
bb844fab16b7208f3cc936298292a55c38a96128
4+
5edcf8d6f16ea22b6d4456ea4812e9e40e499293
5+
1d6dbf7336e25ec06b049e582d0f1fa79428fa31

.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# OS X
2+
.DS_Store
3+
4+
# Xcode
5+
build/
6+
*.pbxuser
7+
!default.pbxuser
8+
*.mode1v3
9+
!default.mode1v3
10+
*.mode2v3
11+
!default.mode2v3
12+
*.perspectivev3
13+
!default.perspectivev3
14+
xcuserdata/
15+
*.xccheckout
16+
profile
17+
*.moved-aside
18+
DerivedData
19+
*.hmap
20+
*.ipa
21+
*.xcodeproj/
22+
*.pbxproj
23+
*.swiftpm/
24+
# Bundler
25+
.bundle
26+
27+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
28+
# Carthage/Checkouts
29+
30+
Carthage/Build
31+
32+
# Cocoapods
33+
Pods/
34+
35+
# We recommend against adding the Pods directory to your .gitignore. However
36+
# you should judge for yourself, the pros and cons are mentioned at:
37+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
38+
#
39+
# Note: if you ignore the Pods directory, make sure to uncomment
40+
# `pod install` in .travis.yml
41+
#
42+
# Pods/
43+
*/Podfile.lock
44+
45+
(Baymax-Autogen)*
46+
Example/Gemfile.lock
47+
Gemfile.lock
48+

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# references:
2+
# * https://www.objc.io/issues/6-build-tools/travis-ci/
3+
# * https://github.com/supermarin/xcpretty#usage
4+
5+
osx_image: xcode7.3
6+
language: objective-c
7+
# cache: cocoapods
8+
# podfile: Example/Podfile
9+
# before_install:
10+
# - gem install cocoapods # Since Travis is not always on latest version
11+
# - pod install --project-directory=Example
12+
script:
13+
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/TikTokOpenPlatformSDK.xcworkspace -scheme TikTokOpenPlatformSDK-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14+
- pod lib lint

.uncrustify.cfg

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
input_tab_size = 4
2+
output_tab_size = 4
3+
indent_with_tabs = 0
4+
indent_columns = 4
5+
nl_if_brace = remove
6+
nl_brace_else = remove
7+
nl_elseif_brace = remove
8+
nl_else_brace = remove
9+
nl_else_if = remove
10+
nl_for_brace = remove
11+
nl_while_brace = remove
12+
nl_oc_mdef_brace = force
13+
nl_oc_before_interface = force
14+
nl_oc_before_implementation = force
15+
nl_oc_interface_brace = force
16+
nl_oc_implementation_brace = force
17+
nl_fdef_brace = force
18+
nl_after_brace_open = true
19+
nl_after_for = force
20+
nl_after_if = force
21+
sp_do_brace_open = force
22+
sp_brace_close_while = force
23+
sp_while_paren_open = force
24+
sp_assign = force
25+
sp_enum_paren = remove
26+
sp_bool = force
27+
sp_compare = force
28+
sp_paren_paren = remove
29+
sp_before_ptr_star = force
30+
sp_after_ptr_block_caret = remove
31+
sp_after_ptr_star_func = remove
32+
sp_before_ellipsis = force
33+
sp_before_sparen = force
34+
sp_inside_square_oc_array = remove
35+
sp_after_comma = force
36+
sp_inside_braces_oc_dict = remove
37+
sp_inside_braces = add
38+
sp_inside_paren_cast = remove
39+
sp_inside_paren = remove
40+
sp_inside_tparen = remove
41+
sp_inside_braces_struct = add
42+
sp_before_oc_proto_list = force
43+
sp_oc_classname_paren = force
44+
sp_after_oc_colon = remove
45+
sp_after_oc_dict_colon = force
46+
sp_before_oc_dict_colon = force
47+
sp_after_send_oc_colon = remove
48+
sp_before_send_oc_colon = remove
49+
sp_after_oc_type = remove
50+
sp_after_oc_return_type = remove
51+
sp_after_oc_scope = force
52+
sp_before_oc_block_caret = ignore
53+
sp_after_oc_at_sel = remove
54+
sp_after_oc_block_caret = remove
55+
sp_inside_oc_at_sel_parens = remove
56+
sp_after_oc_property = force
57+
indent_oc_inside_msg_sel = true
58+
indent_oc_block = true
59+
indent_oc_block_msg = 0
60+
indent_oc_msg_prioritize_first_colon = true
61+
indent_oc_block_msg_xcode_style = true
62+
indent_switch_case = 4
63+
indent_switch_break_with_case = false
64+
nl_oc_before_end = force
65+
nl_oc_implementation_brace = force
66+
align_oc_decl_colon = true
67+
align_oc_msg_colon_first = true
68+
align_func_params = true
69+
align_oc_msg_colon_span = 20
70+
align_oc_msg_spec_span = 0
71+
mod_sort_oc_properties = true
72+
mod_sort_oc_property_thread_safe_weight = 10
73+
mod_sort_oc_property_readwrite_weight = 8
74+
mod_sort_oc_property_reference_weight = 9
75+
mod_sort_oc_property_nullability_weight = 2
76+
mod_sort_import = true
77+
mod_sort_include = true
78+
mod_sort_incl_import_prioritize_angle_over_quotes = true
79+
mod_sort_incl_import_grouping_enabled = true
80+
mod_move_case_break = false
81+
sp_after_ptr_star = remove
82+
sp_before_unnamed_ptr_star = force
83+
sp_after_byref = remove
84+
sp_inside_fparen = remove
85+
sp_func_def_paren_empty = remove
86+
sp_func_def_paren = remove
87+
sp_func_call_paren = remove
88+
sp_func_proto_paren = remove
89+
sp_after_cast = remove
90+
nl_end_of_file = remove
91+
nl_before_class = 1
92+
mod_enum_last_comma = force
93+
eat_blanks_after_open_brace = true
94+
eat_blanks_before_close_brace = true
95+
mod_full_brace_if = force
96+
mod_full_brace_while = force
97+
mod_full_brace_for = force
98+
mod_full_brace_do = force
99+
sp_sizeof_paren = remove
100+
sp_inside_sparen = remove
101+
sp_else_brace = force
102+
sp_brace_else = force
103+
sp_template_angle = remove
104+
sp_before_angle = remove
105+
sp_inside_sparen_close = remove
106+
sp_inside_sparen_open = remove

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Changelog
2+
3+
## 2.3.0
4+
---
5+
Upgraded minimum iOS support version to 12.0
6+
### ShareKit
7+
#### Added
8+
* Launch app store if TikTok is not installed
9+
10+
### LoginKit
11+
#### Added
12+
* Use ASWebAuthenticationSession for web authorization
13+
14+
## 2.2.0
15+
---
16+
Add @objc tags to PKCE class.
17+
18+
## 2.1.0
19+
---
20+
Support Swift Package Manager and Cocoapods. Updated demo app to be a SPM demo. Refactored and optimized code.
21+
22+
## 2.0.0
23+
---
24+
The first open-source version of ShareKit and LoginKit
25+
26+
### ShareKit
27+
#### Added
28+
* Sharing service for 3rd party apps to share one or more videos or one or more images to TikTok
29+
30+
### LoginKit
31+
#### Added
32+
* Basic TikTok authorization
33+
34+
35+

Gemfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright 2022 TikTok Pte. Ltd.
3+
#
4+
# This source code is licensed under the license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
#
7+
8+
source "https://rubygems.org"
9+
10+
gem "cocoapods"
11+
gem "cocoapods-xcframework"

LICENSE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Copyright (c) 2022 TikTok Pte. Ltd. All rights reserved.
2+
3+
You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4+
copy, modify, and distribute this software in source code or binary form for use
5+
in connection with the web services and APIs provided by TikTok.
6+
7+
As with any software that integrates with the TikTok platform, your use of
8+
this software is subject to the TikTok Platform Policy
9+
[https://www.tiktok.com/legal/tik-tok-developer-terms-of-service]. This copyright notice shall be
10+
included in all copies or substantial portions of the software.
11+
12+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)