Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
f384dede
Commit
f384dede
authored
Apr 18, 2019
by
朱璇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.wanmeizhensuo.com:gengmeiios/GMPhobos into zx/phobosTest
parents
784217a7
8863580c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
261 additions
and
22 deletions
+261
-22
project.pbxproj
Example/GMPhobos.xcodeproj/project.pbxproj
+0
-0
GMPhobos-Example.xcscheme
...codeproj/xcshareddata/xcschemes/GMPhobos-Example.xcscheme
+10
-2
GMPhobos_ExampleTests.m
Example/GMPhobos_ExampleTests/GMPhobos_ExampleTests.m
+37
-0
Info.plist
Example/GMPhobos_ExampleTests/Info.plist
+22
-0
GMPhotoTest.m
Example/Tests/GMPhotoTest.m
+177
-7
GMPhobos.podspec
GMPhobos.podspec
+1
-1
Phobos.m
GMPhobos/Classes/Phobos.m
+3
-1
report.xml
fastlane/report.xml
+11
-11
No files found.
Example/GMPhobos.xcodeproj/project.pbxproj
View file @
f384dede
This diff is collapsed.
Click to expand it.
Example/GMPhobos.xcodeproj/xcshareddata/xcschemes/GMPhobos-Example.xcscheme
View file @
f384dede
...
@@ -26,7 +26,6 @@
...
@@ -26,7 +26,6 @@
buildConfiguration =
"Debug"
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
shouldUseLaunchSchemeArgsEnv =
"YES"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
<Testables>
<TestableReference
<TestableReference
...
@@ -44,6 +43,16 @@
...
@@ -44,6 +43,16 @@
</Test>
</Test>
</SkippedTests>
</SkippedTests>
</TestableReference>
</TestableReference>
<TestableReference
skipped =
"NO"
>
<BuildableReference
BuildableIdentifier =
"primary"
BlueprintIdentifier =
"63EFAB0D22658352005EEAC6"
BuildableName =
"GMPhobos_ExampleTests.xctest"
BlueprintName =
"GMPhobos_ExampleTests"
ReferencedContainer =
"container:GMPhobos.xcodeproj"
>
</BuildableReference>
</TestableReference>
</Testables>
</Testables>
<MacroExpansion>
<MacroExpansion>
<BuildableReference
<BuildableReference
...
@@ -61,7 +70,6 @@
...
@@ -61,7 +70,6 @@
buildConfiguration =
"Debug"
buildConfiguration =
"Debug"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
language =
""
launchStyle =
"0"
launchStyle =
"0"
useCustomWorkingDirectory =
"NO"
useCustomWorkingDirectory =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
ignoresPersistentStateOnLaunch =
"NO"
...
...
Example/GMPhobos_ExampleTests/GMPhobos_ExampleTests.m
0 → 100644
View file @
f384dede
//
// GMPhobos_ExampleTests.m
// GMPhobos_ExampleTests
//
// Created by Jing on 2019/4/16.
// Copyright © 2019 licong. All rights reserved.
//
#import <XCTest/XCTest.h>
@interface
GMPhobos_ExampleTests
:
XCTestCase
@end
@implementation
GMPhobos_ExampleTests
-
(
void
)
setUp
{
// Put setup code here. This method is called before the invocation of each test method in the class.
}
-
(
void
)
tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
-
(
void
)
testExample
{
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
-
(
void
)
testPerformanceExample
{
// This is an example of a performance test case.
[
self
measureBlock
:
^
{
// Put the code you want to measure the time of here.
}];
}
@end
Example/GMPhobos_ExampleTests/Info.plist
0 → 100644
View file @
f384dede
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
CFBundleDevelopmentRegion
<
/k
e
y
>
<
string
>
$
(
DEVELOPMENT_LANGUAGE
)<
/string
>
<
k
e
y
>
CFBundleExecutable
<
/k
e
y
>
<
string
>
$
(
EXECUTABLE_NAME
)<
/string
>
<
k
e
y
>
CFBundleIdentifier
<
/k
e
y
>
<
string
>
$
(
PRODUCT_BUNDLE_IDENTIFIER
)<
/string
>
<
k
e
y
>
CFBundleInfoDictionaryVersion
<
/k
e
y
>
<
string
>
6.0
<
/string
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
$
(
PRODUCT_NAME
)<
/string
>
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
BNDL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1
<
/string
>
<
/
d
i
c
t
>
<
/plist
>
Example/Tests/GMPhotoTest.m
View file @
f384dede
...
@@ -27,13 +27,18 @@ NSString *const MockCityId = @"beijing";
...
@@ -27,13 +27,18 @@ NSString *const MockCityId = @"beijing";
-
(
void
)
setUp
{
-
(
void
)
setUp
{
[
super
setUp
];
[
super
setUp
];
_client
=
[
Phobos
clientWithAppName
:
MockAppName
channelId
:
MockChannelId
];
_client
=
[
Phobos
clientWithAppName
:
MockAppName
channelId
:
MockChannelId
];
_client
.
serverAPI
=
@"http://log.test.igengmei.com/log/collect"
;
[
_client
setLogEnabled
:
NO
];
// 调试打Log模式,看情况开启
_client
.
signingType
=
PhobosSigningTypeDebug
;
_client
.
userId
=
@""
;
[
Phobos
setSharedClient
:
_client
];
[
Phobos
setSharedClient
:
_client
];
}
}
-
(
void
)
tearDown
{
-
(
void
)
tearDown
{
// Put teardown code here. This method is called after the invocation of each test method in the class.
// Put teardown code here. This method is called after the invocation of each test method in the class.
[
super
tearDown
];
[
super
tearDown
];
[
GMCache
removeObjectAtDucmentPathWithkey
:
PhobosCacheKey
];
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosTempCacheKey
];
}
}
/**
/**
...
@@ -45,7 +50,7 @@ NSString *const MockCityId = @"beijing";
...
@@ -45,7 +50,7 @@ NSString *const MockCityId = @"beijing";
[
_client
setUserId
:
MockUserId
];
[
_client
setUserId
:
MockUserId
];
[
_client
setCurrentCityId
:
MockCityId
];
[
_client
setCurrentCityId
:
MockCityId
];
[
Phobos
track
:
MockEventId
];
[
Phobos
track
:
MockEventId
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
uc
mentPathWithkey
:
PhobosCacheKey
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
ocu
mentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
1
,
@"array is empty"
);
XCTAssertTrue
(
array
.
count
==
1
,
@"array is empty"
);
NSDictionary
*
dict
=
[
array
objectAtIndex
:
0
];
NSDictionary
*
dict
=
[
array
objectAtIndex
:
0
];
[
self
verfiyDict
:
dict
];
[
self
verfiyDict
:
dict
];
...
@@ -59,7 +64,7 @@ NSString *const MockCityId = @"beijing";
...
@@ -59,7 +64,7 @@ NSString *const MockCityId = @"beijing";
*/
*/
-
(
void
)
testTrackEventWithoutAttr
{
-
(
void
)
testTrackEventWithoutAttr
{
[
Phobos
track
:
MockEventId
];
[
Phobos
track
:
MockEventId
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
uc
mentPathWithkey
:
PhobosCacheKey
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
ocu
mentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
1
,
@"array is empty"
);
XCTAssertTrue
(
array
.
count
==
1
,
@"array is empty"
);
NSDictionary
*
dict
=
[
array
objectAtIndex
:
0
];
NSDictionary
*
dict
=
[
array
objectAtIndex
:
0
];
[
self
verfiyDict
:
dict
];
[
self
verfiyDict
:
dict
];
...
@@ -74,7 +79,7 @@ NSString *const MockCityId = @"beijing";
...
@@ -74,7 +79,7 @@ NSString *const MockCityId = @"beijing";
-
(
void
)
testTrackEventWithAttr
{
-
(
void
)
testTrackEventWithAttr
{
NSDictionary
*
attr
=
@{
@"attr"
:
@"track_attr"
};
NSDictionary
*
attr
=
@{
@"attr"
:
@"track_attr"
};
[
Phobos
track
:
MockEventId
attributes
:
attr
];
[
Phobos
track
:
MockEventId
attributes
:
attr
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
uc
mentPathWithkey
:
PhobosCacheKey
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
ocu
mentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
1
,
@"array is empty"
);
XCTAssertTrue
(
array
.
count
==
1
,
@"array is empty"
);
NSDictionary
*
dict
=
[
array
objectAtIndex
:
0
];
NSDictionary
*
dict
=
[
array
objectAtIndex
:
0
];
[
self
verfiyDict
:
dict
];
[
self
verfiyDict
:
dict
];
...
@@ -95,10 +100,175 @@ NSString *const MockCityId = @"beijing";
...
@@ -95,10 +100,175 @@ NSString *const MockCityId = @"beijing";
// When
// When
[
Phobos
track
:
MockEventId
attributes
:
attr
sendNow
:
YES
];
[
Phobos
track
:
MockEventId
attributes
:
attr
sendNow
:
YES
];
// Then
// Then
NSArray
*
array
=
[
GMCache
fetchObjectAtD
uc
mentPathWithkey
:
PhobosCacheKey
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
ocu
mentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
0
,
@"array should be empty"
);
XCTAssertTrue
(
array
.
count
==
0
,
@"array should be empty"
);
}
}
/**
* @brief 测试立即发送带参数事件成功,不应该清除不立即发送的埋点
*
* @since 1.1.4
*/
-
(
void
)
testTrackEventWithAttrAndSendNowDonotClearNormal
{
// Given
NSDictionary
*
attr
=
@{
@"attr"
:
@"track_attr"
};
NSDictionary
*
sendNowAttr
=
@{
@"attr"
:
@"track_attr_send_now"
};
// When
[
Phobos
track
:
MockEventId
attributes
:
attr
sendNow
:
NO
];
// When
[
Phobos
track
:
MockEventId
attributes
:
sendNowAttr
sendNow
:
YES
];
NSArray
*
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
!=
0
,
@"array shouldn't be empty"
);
}
/**
* @brief 测试二次立即发送带参数事件成功,不应该重复发送上一条
*
* @since 1.1.4
*/
-
(
void
)
testTrackEventWithDoubleAttrAndSendNow
{
NSDictionary
*
attr
=
@{
@"attr"
:
@"track_attr"
};
[
Phobos
track
:
MockEventId
attributes
:
attr
sendNow
:
YES
];
// 因为实时埋点是异步删除,所以这个位置暂时延时取数据,待优化 TODO
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
25
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
NSArray
*
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosTempCacheKey
];
XCTAssertTrue
(
array
.
count
==
0
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
attr
sendNow
:
YES
];
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
25
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
NSArray
*
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosTempCacheKey
];
XCTAssertTrue
(
array
.
count
==
0
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
attr
sendNow
:
YES
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
0
,
@"array shouldn't be empty"
);
});
});
}
/**
* @brief 测试不立即发送带参数事件成功后,数据会被清除
*
* @since 1.1.4
*/
-
(
void
)
testTrackEventWithDoubleAttrAndNoSendNow
{
NSDictionary
*
attr
=
@{
@"attr"
:
@"track_attr"
};
//
[
Phobos
track
:
MockEventId
attributes
:
attr
];
NSArray
*
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
1
,
@"array shouldn't be empty"
);
// PhobosCacheKey超过50条数据会自动上报,模拟此情况
for
(
int
i
=
0
;
i
<
50
;
i
++
)
{
[
Phobos
track
:
MockEventId
attributes
:
attr
];
}
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
0
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
attr
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
1
,
@"array shouldn't be empty"
);
}
/**
* @brief 测试不实时和实时穿插 1
*
* @since 1.1.4
*/
-
(
void
)
testTrackEventWithSendNowAndNoSendNowOne
{
NSDictionary
*
attr
=
@{
@"attr"
:
@"track_attr"
};
NSDictionary
*
sendNowAttr
=
@{
@"attr"
:
@"track_attr_send_now"
};
for
(
int
i
=
0
;
i
<
30
;
i
++
)
{
[
Phobos
track
:
MockEventId
attributes
:
attr
];
}
NSArray
*
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
30
,
@"array shouldn't be empty"
);
// PhobosCacheKey超过50条数据会自动上报,模拟此情况
[
Phobos
track
:
MockEventId
attributes
:
sendNowAttr
sendNow
:
YES
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
30
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
sendNowAttr
sendNow
:
YES
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
30
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
sendNowAttr
sendNow
:
YES
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
30
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
attr
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
31
,
@"array shouldn't be empty"
);
}
/**
* @brief 测试不实时和实时穿插 2
*
* @since 1.1.4
*/
-
(
void
)
testTrackEventWithSendNowAndNoSendNowTwo
{
NSDictionary
*
attr
=
@{
@"attr"
:
@"track_attr"
};
NSDictionary
*
sendNowAttr
=
@{
@"attr"
:
@"track_attr_send_now"
};
[
Phobos
track
:
MockEventId
attributes
:
sendNowAttr
sendNow
:
YES
];
NSArray
*
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
0
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
attr
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
1
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
attr
];
[
Phobos
track
:
MockEventId
attributes
:
sendNowAttr
sendNow
:
YES
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
2
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
sendNowAttr
sendNow
:
YES
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
2
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
attr
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
3
,
@"array shouldn't be empty"
);
}
/**
* @brief 测试不实时和实时穿插 3
*
* @since 1.1.4
*/
-
(
void
)
testTrackEventWithSendNowAndNoSendNowThree
{
NSDictionary
*
attr
=
@{
@"attr"
:
@"track_attr"
};
//
[
Phobos
track
:
MockEventId
attributes
:
attr
];
NSArray
*
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
1
,
@"array shouldn't be empty"
);
// PhobosCacheKey超过50条数据会自动上报,模拟此情况
for
(
int
i
=
0
;
i
<
50
;
i
++
)
{
[
Phobos
track
:
MockEventId
attributes
:
attr
];
}
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
0
,
@"array shouldn't be empty"
);
[
Phobos
track
:
MockEventId
attributes
:
attr
];
array
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
==
1
,
@"array shouldn't be empty"
);
}
-
(
void
)
verfiyDict
:
(
NSDictionary
*
)
dict
{
-
(
void
)
verfiyDict
:
(
NSDictionary
*
)
dict
{
NSArray
*
keys
=
[
dict
allKeys
];
NSArray
*
keys
=
[
dict
allKeys
];
XCTAssertTrue
([
keys
containsObject
:
@"type"
],
@"Missing type"
);
XCTAssertTrue
([
keys
containsObject
:
@"type"
],
@"Missing type"
);
...
@@ -139,7 +309,7 @@ NSString *const MockCityId = @"beijing";
...
@@ -139,7 +309,7 @@ NSString *const MockCityId = @"beijing";
[
controller
viewWillAppear
:
true
];
[
controller
viewWillAppear
:
true
];
[
controller
viewWillDisappear
:
true
];
[
controller
viewWillDisappear
:
true
];
[
self
paramUnNilCheck
];
[
self
paramUnNilCheck
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
uc
mentPathWithkey
:
PhobosCacheKey
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
ocu
mentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
!=
0
,
@"PhobosCacheKey 下面应该有数据"
);
XCTAssertTrue
(
array
.
count
!=
0
,
@"PhobosCacheKey 下面应该有数据"
);
NSDictionary
*
dic
=
array
[
0
][
@"params"
];
NSDictionary
*
dic
=
array
[
0
][
@"params"
];
...
@@ -153,7 +323,7 @@ NSString *const MockCityId = @"beijing";
...
@@ -153,7 +323,7 @@ NSString *const MockCityId = @"beijing";
}
}
-
(
void
)
paramUnNilCheck
{
-
(
void
)
paramUnNilCheck
{
NSArray
*
array
=
[
GMCache
fetchObjectAtD
uc
mentPathWithkey
:
PhobosCacheKey
];
NSArray
*
array
=
[
GMCache
fetchObjectAtD
ocu
mentPathWithkey
:
PhobosCacheKey
];
XCTAssertTrue
(
array
.
count
!=
0
,
@"PhobosCacheKey 下面应该有数据"
);
XCTAssertTrue
(
array
.
count
!=
0
,
@"PhobosCacheKey 下面应该有数据"
);
NSDictionary
*
dic
=
array
[
0
][
@"params"
];
NSDictionary
*
dic
=
array
[
0
][
@"params"
];
...
...
GMPhobos.podspec
View file @
f384dede
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
Pod
::
Spec
.
new
do
|
s
|
Pod
::
Spec
.
new
do
|
s
|
s
.
name
=
"
GMPhobos
"
s
.
name
=
"
GMPhobos
"
s
.
version
=
"1.1.
2
"
s
.
version
=
"1.1.
4
"
s
.
summary
=
"GM statistic data sdk"
s
.
summary
=
"GM statistic data sdk"
s
.
description
=
<<-
DESC
s
.
description
=
<<-
DESC
...
...
GMPhobos/Classes/Phobos.m
View file @
f384dede
...
@@ -569,7 +569,9 @@ static NSString *sdkVersion = @"110";
...
@@ -569,7 +569,9 @@ static NSString *sdkVersion = @"110";
//2.把缓存区的数据发送给服务器
//2.把缓存区的数据发送给服务器
[
self
sendArray
];
[
self
sendArray
];
//3.把原有的数据删除
//3.把原有的数据删除
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
if
(
clean
)
{
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
}
}
}
@catch
(
NSException
*
exception
)
{
@catch
(
NSException
*
exception
)
{
phobosLog
(
exception
);
phobosLog
(
exception
);
...
...
fastlane/report.xml
View file @
f384dede
...
@@ -5,57 +5,57 @@
...
@@ -5,57 +5,57 @@
<testcase
classname=
"fastlane.lanes"
name=
"00: Verifying fastlane version"
time=
"0.007
838
"
>
<testcase
classname=
"fastlane.lanes"
name=
"00: Verifying fastlane version"
time=
"0.007
052
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"01: default_platform"
time=
"0.001
584
"
>
<testcase
classname=
"fastlane.lanes"
name=
"01: default_platform"
time=
"0.001
408
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"02: git_pull"
time=
"1.0
0925
"
>
<testcase
classname=
"fastlane.lanes"
name=
"02: git_pull"
time=
"1.0
21717
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"03: pod_repo_update"
time=
"1.
0747
85"
>
<testcase
classname=
"fastlane.lanes"
name=
"03: pod_repo_update"
time=
"1.
1550
85"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"04: pod_lib_lint"
time=
"
8.891135
"
>
<testcase
classname=
"fastlane.lanes"
name=
"04: pod_lib_lint"
time=
"
39.406002
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"05: version_bump_podspec"
time=
"0.0030
0
2"
>
<testcase
classname=
"fastlane.lanes"
name=
"05: version_bump_podspec"
time=
"0.0030
6
2"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"06: git_commit_all"
time=
"0.0209
52
"
>
<testcase
classname=
"fastlane.lanes"
name=
"06: git_commit_all"
time=
"0.0209
85
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"07: add_git_tag"
time=
"0.01
2407
"
>
<testcase
classname=
"fastlane.lanes"
name=
"07: add_git_tag"
time=
"0.01
3462
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"08: push_to_git_remote"
time=
"0.
891278
"
>
<testcase
classname=
"fastlane.lanes"
name=
"08: push_to_git_remote"
time=
"0.
912066
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"09: pod_push"
time=
"
9.80237
"
>
<testcase
classname=
"fastlane.lanes"
name=
"09: pod_push"
time=
"
10.151093
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"10: pod_repo_update"
time=
"0.9
5132
"
>
<testcase
classname=
"fastlane.lanes"
name=
"10: pod_repo_update"
time=
"0.9
38345
"
>
</testcase>
</testcase>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment