Skip to content

Commit f995b49

Browse files
committed
delete release files,and countly analytics
1 parent 0b132f7 commit f995b49

File tree

34 files changed

+958
-325
lines changed

34 files changed

+958
-325
lines changed

SQLCipherManager.xcodeproj/project.pbxproj

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@
2525
8BAC2ECC1866EA8E00C85A4C /* libsqlcipher.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8B2138531866DC0300BEB00D /* libsqlcipher.a */; };
2626
8BAC2ED01866EDE600C85A4C /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BAC2ECF1866EDE600C85A4C /* Security.framework */; };
2727
8BAC2ED11866EDEE00C85A4C /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E7551AD178D321A004DF8FC /* Foundation.framework */; };
28+
8BAC2EDF1867038200C85A4C /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BAC2EDE1867038200C85A4C /* CFNetwork.framework */; };
29+
8BAC2EE11867038A00C85A4C /* CoreLocation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BAC2EE01867038A00C85A4C /* CoreLocation.framework */; };
30+
8BAC2EE31867039100C85A4C /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BAC2EE21867039100C85A4C /* libz.dylib */; };
31+
8BAC2EE51867039800C85A4C /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BAC2EE41867039800C85A4C /* QuartzCore.framework */; };
32+
8BAC2EE7186703A600C85A4C /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BAC2EE6186703A600C85A4C /* SystemConfiguration.framework */; };
33+
8BAC2F0318672A7B00C85A4C /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0E7551AB178D321A004DF8FC /* AppKit.framework */; };
34+
8BAC2F0918672B7500C85A4C /* .gitignore in Resources */ = {isa = PBXBuildFile; fileRef = 8BAC2F0518672B7500C85A4C /* .gitignore */; };
35+
8BAC2F0A18672B7500C85A4C /* Countly.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BAC2F0718672B7500C85A4C /* Countly.m */; };
36+
8BAC2F0B18672B7500C85A4C /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 8BAC2F0818672B7500C85A4C /* README.md */; };
37+
8BAC2F1218672FB800C85A4C /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BAC2F1118672FB800C85A4C /* CoreServices.framework */; };
2838
/* End PBXBuildFile section */
2939

3040
/* Begin PBXContainerItemProxy section */
@@ -58,6 +68,18 @@
5868
};
5969
/* End PBXContainerItemProxy section */
6070

71+
/* Begin PBXCopyFilesBuildPhase section */
72+
8BAC2EDA1867033500C85A4C /* CopyFiles */ = {
73+
isa = PBXCopyFilesBuildPhase;
74+
buildActionMask = 2147483647;
75+
dstPath = "";
76+
dstSubfolderSpec = 10;
77+
files = (
78+
);
79+
runOnlyForDeploymentPostprocessing = 0;
80+
};
81+
/* End PBXCopyFilesBuildPhase section */
82+
6183
/* Begin PBXFileReference section */
6284
0E12A6BA183DAFEB00192C6B /* Utility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Utility.h; sourceTree = "<group>"; };
6385
0E12A6BB183DAFEB00192C6B /* Utility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Utility.m; sourceTree = "<group>"; };
@@ -88,13 +110,34 @@
88110
8B21384D1866DC0300BEB00D /* sqlcipher.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = sqlcipher.xcodeproj; path = sqlcipher/sqlcipher.xcodeproj; sourceTree = "<group>"; };
89111
8BAC2ECF1866EDE600C85A4C /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
90112
8BAC2ED21866EDF900C85A4C /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
113+
8BAC2EDC1867037700C85A4C /* ApplicationServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ApplicationServices.framework; path = System/Library/Frameworks/ApplicationServices.framework; sourceTree = SDKROOT; };
114+
8BAC2EDE1867038200C85A4C /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
115+
8BAC2EE01867038A00C85A4C /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
116+
8BAC2EE21867039100C85A4C /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; };
117+
8BAC2EE41867039800C85A4C /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
118+
8BAC2EE6186703A600C85A4C /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
119+
8BAC2F0118672A6C00C85A4C /* libcommonCrypto.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcommonCrypto.dylib; path = usr/lib/system/libcommonCrypto.dylib; sourceTree = SDKROOT; };
120+
8BAC2F0518672B7500C85A4C /* .gitignore */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .gitignore; sourceTree = "<group>"; };
121+
8BAC2F0618672B7500C85A4C /* Countly.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Countly.h; sourceTree = "<group>"; };
122+
8BAC2F0718672B7500C85A4C /* Countly.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Countly.m; sourceTree = "<group>"; };
123+
8BAC2F0818672B7500C85A4C /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README.md; sourceTree = "<group>"; };
124+
8BAC2F0D18672F6200C85A4C /* libSystem.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libSystem.dylib; path = usr/lib/libSystem.dylib; sourceTree = SDKROOT; };
125+
8BAC2F0F18672F8300C85A4C /* libcrypto.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcrypto.dylib; path = usr/lib/libcrypto.dylib; sourceTree = SDKROOT; };
126+
8BAC2F1118672FB800C85A4C /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = System/Library/Frameworks/CoreServices.framework; sourceTree = SDKROOT; };
91127
/* End PBXFileReference section */
92128

93129
/* Begin PBXFrameworksBuildPhase section */
94130
0E7551A2178D3219004DF8FC /* Frameworks */ = {
95131
isa = PBXFrameworksBuildPhase;
96132
buildActionMask = 2147483647;
97133
files = (
134+
8BAC2F1218672FB800C85A4C /* CoreServices.framework in Frameworks */,
135+
8BAC2EDF1867038200C85A4C /* CFNetwork.framework in Frameworks */,
136+
8BAC2F0318672A7B00C85A4C /* AppKit.framework in Frameworks */,
137+
8BAC2EE7186703A600C85A4C /* SystemConfiguration.framework in Frameworks */,
138+
8BAC2EE51867039800C85A4C /* QuartzCore.framework in Frameworks */,
139+
8BAC2EE31867039100C85A4C /* libz.dylib in Frameworks */,
140+
8BAC2EE11867038A00C85A4C /* CoreLocation.framework in Frameworks */,
98141
8BAC2ED11866EDEE00C85A4C /* Foundation.framework in Frameworks */,
99142
8BAC2ED01866EDE600C85A4C /* Security.framework in Frameworks */,
100143
8BAC2ECC1866EA8E00C85A4C /* libsqlcipher.a in Frameworks */,
@@ -118,6 +161,7 @@
118161
0E129EA1183DADC300192C6B /* lib */ = {
119162
isa = PBXGroup;
120163
children = (
164+
8BAC2F0418672B7500C85A4C /* countly-sdk-cocoa */,
121165
8B21384D1866DC0300BEB00D /* sqlcipher.xcodeproj */,
122166
);
123167
path = lib;
@@ -147,6 +191,16 @@
147191
0E7551A7178D3219004DF8FC /* Frameworks */ = {
148192
isa = PBXGroup;
149193
children = (
194+
8BAC2F1118672FB800C85A4C /* CoreServices.framework */,
195+
8BAC2F0F18672F8300C85A4C /* libcrypto.dylib */,
196+
8BAC2F0D18672F6200C85A4C /* libSystem.dylib */,
197+
8BAC2F0118672A6C00C85A4C /* libcommonCrypto.dylib */,
198+
8BAC2EE6186703A600C85A4C /* SystemConfiguration.framework */,
199+
8BAC2EE41867039800C85A4C /* QuartzCore.framework */,
200+
8BAC2EE21867039100C85A4C /* libz.dylib */,
201+
8BAC2EE01867038A00C85A4C /* CoreLocation.framework */,
202+
8BAC2EDE1867038200C85A4C /* CFNetwork.framework */,
203+
8BAC2EDC1867037700C85A4C /* ApplicationServices.framework */,
150204
8BAC2ED21866EDF900C85A4C /* CoreGraphics.framework */,
151205
8BAC2ECF1866EDE600C85A4C /* Security.framework */,
152206
0EB01ECC178E9AC300752D12 /* libsqlite3.dylib */,
@@ -222,6 +276,17 @@
222276
name = Products;
223277
sourceTree = "<group>";
224278
};
279+
8BAC2F0418672B7500C85A4C /* countly-sdk-cocoa */ = {
280+
isa = PBXGroup;
281+
children = (
282+
8BAC2F0518672B7500C85A4C /* .gitignore */,
283+
8BAC2F0618672B7500C85A4C /* Countly.h */,
284+
8BAC2F0718672B7500C85A4C /* Countly.m */,
285+
8BAC2F0818672B7500C85A4C /* README.md */,
286+
);
287+
path = "countly-sdk-cocoa";
288+
sourceTree = "<group>";
289+
};
225290
/* End PBXGroup section */
226291

227292
/* Begin PBXNativeTarget section */
@@ -232,6 +297,7 @@
232297
0E7551A1178D3219004DF8FC /* Sources */,
233298
0E7551A2178D3219004DF8FC /* Frameworks */,
234299
0E7551A3178D3219004DF8FC /* Resources */,
300+
8BAC2EDA1867033500C85A4C /* CopyFiles */,
235301
);
236302
buildRules = (
237303
);
@@ -314,7 +380,9 @@
314380
0E7551B3178D321A004DF8FC /* InfoPlist.strings in Resources */,
315381
0E7551B9178D321A004DF8FC /* Credits.rtf in Resources */,
316382
0E7551BF178D321A004DF8FC /* MainMenu.xib in Resources */,
383+
8BAC2F0B18672B7500C85A4C /* README.md in Resources */,
317384
0E7BEA8B17979BDD00444DFB /* app.icns in Resources */,
385+
8BAC2F0918672B7500C85A4C /* .gitignore in Resources */,
318386
0E59C12A17B4E7FB00124089 /* SQLExcuteWindow.xib in Resources */,
319387
);
320388
runOnlyForDeploymentPostprocessing = 0;
@@ -350,6 +418,7 @@
350418
isa = PBXSourcesBuildPhase;
351419
buildActionMask = 2147483647;
352420
files = (
421+
8BAC2F0A18672B7500C85A4C /* Countly.m in Sources */,
353422
0E12A6BC183DAFEB00192C6B /* Utility.m in Sources */,
354423
0E7551B5178D321A004DF8FC /* main.m in Sources */,
355424
0E7551BC178D321A004DF8FC /* AppDelegate.m in Sources */,
@@ -485,12 +554,20 @@
485554
0E7551D7178D321B004DF8FC /* Debug */ = {
486555
isa = XCBuildConfiguration;
487556
buildSettings = {
557+
CLANG_ENABLE_OBJC_ARC = YES;
488558
COMBINE_HIDPI_IMAGES = YES;
559+
FRAMEWORK_SEARCH_PATHS = (
560+
"$(inherited)",
561+
/Users/welsonla/Code/Mac/SQLCipherExport/lib,
562+
);
489563
GCC_PRECOMPILE_PREFIX_HEADER = YES;
490564
GCC_PREFIX_HEADER = "SQLCipherManager/SQLCipherManager-Prefix.pch";
491565
HEADER_SEARCH_PATHS = "$(SRCROOT)/lib/sqlcipher";
492566
INFOPLIST_FILE = "SQLCipherManager/SQLCipherManager-Info.plist";
493-
LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)\"";
567+
LIBRARY_SEARCH_PATHS = (
568+
"$(SRCROOT)",
569+
"$(SDKROOT)/usr/lib/system",
570+
);
494571
MACOSX_DEPLOYMENT_TARGET = 10.7;
495572
OTHER_CFLAGS = "";
496573
OTHER_LDFLAGS = (
@@ -505,12 +582,20 @@
505582
0E7551D8178D321B004DF8FC /* Release */ = {
506583
isa = XCBuildConfiguration;
507584
buildSettings = {
585+
CLANG_ENABLE_OBJC_ARC = YES;
508586
COMBINE_HIDPI_IMAGES = YES;
587+
FRAMEWORK_SEARCH_PATHS = (
588+
"$(inherited)",
589+
/Users/welsonla/Code/Mac/SQLCipherExport/lib,
590+
);
509591
GCC_PRECOMPILE_PREFIX_HEADER = YES;
510592
GCC_PREFIX_HEADER = "SQLCipherManager/SQLCipherManager-Prefix.pch";
511593
HEADER_SEARCH_PATHS = "$(SRCROOT)/lib/sqlcipher";
512594
INFOPLIST_FILE = "SQLCipherManager/SQLCipherManager-Info.plist";
513-
LIBRARY_SEARCH_PATHS = "\"$(SRCROOT)\"";
595+
LIBRARY_SEARCH_PATHS = (
596+
"$(SRCROOT)",
597+
"$(SDKROOT)/usr/lib/system",
598+
);
514599
MACOSX_DEPLOYMENT_TARGET = 10.7;
515600
OTHER_CFLAGS = "";
516601
OTHER_LDFLAGS = (
@@ -526,6 +611,7 @@
526611
isa = XCBuildConfiguration;
527612
buildSettings = {
528613
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SQLCipherManager.app/Contents/MacOS/SQLCipherManager";
614+
CLANG_ENABLE_OBJC_ARC = YES;
529615
COMBINE_HIDPI_IMAGES = YES;
530616
FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
531617
GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -547,6 +633,7 @@
547633
isa = XCBuildConfiguration;
548634
buildSettings = {
549635
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SQLCipherManager.app/Contents/MacOS/SQLCipherManager";
636+
CLANG_ENABLE_OBJC_ARC = YES;
550637
COMBINE_HIDPI_IMAGES = YES;
551638
FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
552639
GCC_PRECOMPILE_PREFIX_HEADER = YES;

SQLCipherManager.xcodeproj/project.xcworkspace/xcshareddata/SQLCipherManager.xccheckout

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<string>SQLCipherManager</string>
1111
<key>IDESourceControlProjectOriginsDictionary</key>
1212
<dict>
13+
<key>1755696B-6CCD-43D4-A339-BAABDE9DA5D9</key>
14+
<string>ssh://github.com/benoitsan/countly-sdk-cocoa.git</string>
1315
<key>CAD8B9FC-7380-45C4-83E5-0D8BD478AC9F</key>
1416
<string>https://github.com/sqlcipher/openssl-xcode.git</string>
1517
<key>D3718B8F-6D4E-4695-97A3-4F48BEC884AE</key>
@@ -19,19 +21,29 @@
1921
<string>SQLCipherManager.xcodeproj/project.xcworkspace</string>
2022
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
2123
<dict>
24+
<key>1755696B-6CCD-43D4-A339-BAABDE9DA5D9</key>
25+
<string>../../lib/countly-sdk-cocoa</string>
2226
<key>CAD8B9FC-7380-45C4-83E5-0D8BD478AC9F</key>
2327
<string>../../lib/openssl-xcode</string>
2428
<key>D3718B8F-6D4E-4695-97A3-4F48BEC884AE</key>
2529
<string>../..</string>
2630
</dict>
2731
<key>IDESourceControlProjectURL</key>
28-
<string>ssh://github.com/welsonla/SQLCipherExport.git</string>
32+
<string>file:///Users/welsonla/Code/Mac/SQLCipherExport/SQLCipherManager.xcodeproj/project.xcworkspace/</string>
2933
<key>IDESourceControlProjectVersion</key>
3034
<integer>110</integer>
3135
<key>IDESourceControlProjectWCCIdentifier</key>
3236
<string>D3718B8F-6D4E-4695-97A3-4F48BEC884AE</string>
3337
<key>IDESourceControlProjectWCConfigurations</key>
3438
<array>
39+
<dict>
40+
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
41+
<string>public.vcs.git</string>
42+
<key>IDESourceControlWCCIdentifierKey</key>
43+
<string>1755696B-6CCD-43D4-A339-BAABDE9DA5D9</string>
44+
<key>IDESourceControlWCCName</key>
45+
<string>countly-sdk-cocoa</string>
46+
</dict>
3547
<dict>
3648
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
3749
<string>public.vcs.git</string>

SQLCipherManager/AppDelegate.m

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#import "AppDelegate.h"
1010
#import <sqlite3.h>
11+
#import "Countly.h"
1112

1213
@implementation AppDelegate
1314

@@ -21,11 +22,16 @@ @implementation AppDelegate
2122

2223
- (void)dealloc
2324
{
24-
[super dealloc];
25+
// [super dealloc];
2526
}
2627

2728
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
2829
{
30+
[[Countly sharedInstance] startWithAttributes:
31+
@{
32+
CountlyAttributesAPIKey: @"f7ba3f4f36fe8d0546557983a7e366d237f6faf2",
33+
CountlyAttributesHost : @"http://cloud.count.ly"
34+
}];
2935

3036
NSApplication *thisApp = [NSApplication sharedApplication];
3137
[thisApp activateIgnoringOtherApps:YES];
@@ -37,7 +43,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
3743
[alert addButtonWithTitle:@"已阅"];
3844

3945

40-
statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength] retain];
46+
statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
4147
[statusItem setMenu:statusMenu];
4248
[statusItem setTitle:@"SQL"];
4349
[statusItem setHighlightMode:YES];

lib/countly-sdk-cocoa/.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Xcode
2+
.DS_Store
3+
build/
4+
*.pbxuser
5+
!default.pbxuser
6+
*.mode1v3
7+
!default.mode1v3
8+
*.mode2v3
9+
!default.mode2v3
10+
*.perspectivev3
11+
!default.perspectivev3
12+
!default.xcworkspace
13+
xcuserdata
14+
profile
15+
*.moved-aside
16+
DerivedData
17+
.idea/

lib/countly-sdk-cocoa/Countly.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
// Countly.h
3+
//
4+
// This code is provided under the MIT License.
5+
//
6+
// Please visit www.count.ly for more information.
7+
8+
#import <Foundation/Foundation.h>
9+
10+
extern NSString * const CountlyAttributesAPIKey;
11+
extern NSString * const CountlyAttributesHost;
12+
extern NSString * const CountlyAttributesSessionDurationTrackingEnabled; // optional, default is YES
13+
extern NSString * const CountlyAttributesEventsSendingViaWWANEnabled; // optional, default is YES
14+
extern NSString * const CountlyAttributesSessionDurationUpdateInterval; // optional, default is 120 sec
15+
16+
extern NSString * const CountlyUserDefaultsUUID;
17+
18+
@interface Countly : NSObject
19+
20+
+ (instancetype)sharedInstance;
21+
22+
- (void)startWithAttributes:(NSDictionary *)attributes;
23+
24+
- (void)recordEvent:(NSString *)key count:(NSUInteger)count;
25+
- (void)recordEvent:(NSString *)key count:(NSUInteger)count sum:(CGFloat)sum;
26+
- (void)recordEvent:(NSString *)key segmentation:(NSDictionary *)segmentation count:(NSUInteger)count;
27+
- (void)recordEvent:(NSString *)key segmentation:(NSDictionary *)segmentation count:(NSUInteger)count sum:(CGFloat)sum;
28+
29+
@end

0 commit comments

Comments
 (0)