Skip to content

Commit e2e90bb

Browse files
committed
Merge branch 'pre_v2.0.0'
2 parents 882c7f0 + ca97073 commit e2e90bb

File tree

2,215 files changed

+159979
-67907
lines changed

Some content is hidden

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

2,215 files changed

+159979
-67907
lines changed

.clang-format

+82-14
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,95 @@
11
---
22
BasedOnStyle: LLVM
3-
IndentWidth: 4
4-
TabWidth: 4
5-
AlwaysBreakTemplateDeclarations: true
6-
AllowShortFunctionsOnASingleLine: Inline
7-
BreakAfterJavaFieldAnnotations: true
8-
BreakBeforeBraces: Linux
9-
SpaceAfterCStyleCast: true
10-
IndentCaseLabels: true
113
AccessModifierOffset: -4
12-
BreakBeforeBraces: Custom
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: false
6+
AlignConsecutiveDeclarations: false
7+
AlignEscapedNewlines: Right
8+
AlignOperands: true
9+
AlignTrailingComments: true
10+
AllowAllParametersOfDeclarationOnNextLine: true
11+
AllowShortBlocksOnASingleLine: false
12+
AllowShortCaseLabelsOnASingleLine: false
13+
AllowShortFunctionsOnASingleLine: InlineOnly
14+
AllowShortIfStatementsOnASingleLine: true
15+
AllowShortLoopsOnASingleLine: true
16+
AlwaysBreakAfterReturnType: None
17+
AlwaysBreakBeforeMultilineStrings: true
18+
AlwaysBreakTemplateDeclarations: true
19+
BinPackArguments: false
20+
BinPackParameters: false
1321
BraceWrapping:
14-
AfterNamespace: false
1522
AfterClass: false
23+
AfterControlStatement: false
24+
AfterEnum: false
1625
AfterFunction: true
17-
18-
BreakConstructorInitializersBeforeComma: true
26+
AfterNamespace: false
27+
AfterObjCDeclaration: false
28+
AfterStruct: false
29+
AfterUnion: false
30+
AfterExternBlock: false
31+
BeforeCatch: false
32+
BeforeElse: false
33+
IndentBraces: false
34+
SplitEmptyFunction: true
35+
SplitEmptyRecord: true
36+
SplitEmptyNamespace: true
37+
BreakBeforeBinaryOperators: All
38+
BreakBeforeBraces: Custom
39+
BreakBeforeTernaryOperators: false
40+
BreakConstructorInitializers: BeforeComma
41+
BreakStringLiterals: false
42+
ColumnLimit: 0
43+
CompactNamespaces: false
1944
ConstructorInitializerAllOnOneLineOrOnePerLine: true
20-
BinPackParameters: false
45+
ConstructorInitializerIndentWidth: 0
46+
ContinuationIndentWidth: 0
47+
Cpp11BracedListStyle: false
48+
DerivePointerAlignment: true
49+
FixNamespaceComments: true
50+
IncludeBlocks: Preserve
51+
IndentCaseLabels: false
52+
IndentPPDirectives: None
53+
IndentWidth: 4
54+
IndentWrappedFunctionNames: false
55+
KeepEmptyLinesAtTheStartOfBlocks: false
56+
MaxEmptyLinesToKeep: 1
57+
NamespaceIndentation: None
58+
ObjCBinPackProtocolList: Auto
59+
ObjCBlockIndentWidth: 4
60+
ObjCSpaceAfterProperty: true
61+
ObjCSpaceBeforeProtocolList: true
62+
PenaltyBreakAssignment: 1
63+
PenaltyBreakBeforeFirstCallParameter: 1
64+
PenaltyBreakComment: 1
65+
PenaltyBreakFirstLessLess: 1
66+
PenaltyBreakString: 1
67+
PenaltyExcessCharacter: 1
68+
PenaltyReturnTypeOnItsOwnLine: 1
69+
PointerAlignment: Right
2170
ReflowComments: false
71+
SortIncludes: true
72+
SortUsingDeclarations: false
73+
SpaceAfterCStyleCast: true
74+
SpaceAfterTemplateKeyword: false
75+
SpaceBeforeAssignmentOperators: true
76+
SpaceBeforeCtorInitializerColon: true
77+
SpaceBeforeInheritanceColon: true
78+
SpaceBeforeParens: ControlStatements
79+
SpaceBeforeRangeBasedForLoopColon: true
80+
SpaceInEmptyParentheses: false
81+
SpacesBeforeTrailingComments: 1
82+
SpacesInAngles: false
83+
SpacesInCStyleCastParentheses: false
84+
SpacesInContainerLiterals: true
85+
SpacesInParentheses: false
86+
SpacesInSquareBrackets: false
87+
Standard: Auto
88+
TabWidth: 4
89+
UseTab: Never
2290
---
2391
Language: Cpp
2492
ColumnLimit: 80
2593
---
2694
Language: ObjC
27-
ColumnLimit: 0
95+
ColumnLimit: 0

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ xcuserdata
1717
xcuserdata/*
1818
*.xcworkspace/*
1919
*.xcworkspace
20+
DerivedData
21+
22+
# WCDB
23+
WCDB.framework

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "sqlcipher"]
22
path = sqlcipher
3-
url = https://github.com/Tencent/sqlcipher.git
3+
url = git@github.com:Tencent/sqlcipher.git
44
[submodule "openssl"]
55
path = openssl
66
url = https://github.com/openssl/openssl.git

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1
1+
1.1.0

WCDB.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Pod::Spec.new do |wcdb|
1414
wcdb.license = { :type => "BSD", :file => "LICENSE" }
1515
wcdb.author = { "sanhuazhang" => "[email protected]" }
1616
wcdb.module_name = "WCDB"
17-
wcdb.ios.deployment_target = "7.0"
17+
wcdb.ios.deployment_target = "8.0"
1818
wcdb.osx.deployment_target = "10.9"
1919
wcdb.watchos.deployment_target = "2.0"
2020
wcdb.tvos.deployment_target = "9.0"

WCDB.swift.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Pod::Spec.new do |wcdb|
1717
wcdb.osx.deployment_target = "10.9"
1818
wcdb.watchos.deployment_target = "2.0"
1919
wcdb.tvos.deployment_target = "9.0"
20-
wcdb.source = { :git => "https://github.com/Tencent/wcdb.git", :tag => "v1.1.0" }
20+
wcdb.source = { :git => "https://github.com/Tencent/wcdb.git", :tag => "v#{wcdb.version}" }
2121
wcdb.source_files = "swift/source/**/*.swift", "swift/source/**/**/*.swift", "swift/source/util/*.{h,c}"
2222
wcdb.module_name = "WCDBSwift"
2323
wcdb.requires_arc = true

WCDB.xcworkspace/contents.xcworkspacedata

-10
This file was deleted.

apple/WCDB.h

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
//
2+
// Created by qiuwenchen on 2022/9/22.
3+
//
4+
5+
/*
6+
* Tencent is pleased to support the open source community by making
7+
* WCDB available.
8+
*
9+
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
10+
* All rights reserved.
11+
*
12+
* Licensed under the BSD 3-Clause License (the "License"); you may not use
13+
* this file except in compliance with the License. You may obtain a copy of
14+
* the License at
15+
*
16+
* https://opensource.org/licenses/BSD-3-Clause
17+
*
18+
* Unless required by applicable law or agreed to in writing, software
19+
* distributed under the License is distributed on an "AS IS" BASIS,
20+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
* See the License for the specific language governing permissions and
22+
* limitations under the License.
23+
*/
24+
25+
#import <WCDB/WCDBCpp.h>
26+
#import <WCDB/WCDBObjc.h>

0 commit comments

Comments
 (0)