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
aac2401b
Commit
aac2401b
authored
Oct 30, 2020
by
艾娇平
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jz/master' into 'master'
Jz/master See merge request
!75
parents
e13e607f
7aa2fec5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
25 deletions
+27
-25
GMPhobos.podspec
GMPhobos.podspec
+1
-1
PhobosDevice.m
GMPhobos/Classes/PhobosDevice.m
+17
-2
report.xml
fastlane/report.xml
+9
-22
No files found.
GMPhobos.podspec
View file @
aac2401b
...
@@ -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
=
"3.0.
3
"
s
.
version
=
"3.0.
4
"
s
.
summary
=
"GM statistic data sdk"
s
.
summary
=
"GM statistic data sdk"
s
.
description
=
<<-
DESC
s
.
description
=
<<-
DESC
...
...
GMPhobos/Classes/PhobosDevice.m
View file @
aac2401b
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
#import <AdSupport/ASIdentifierManager.h>
#import <AdSupport/ASIdentifierManager.h>
#import <SAMKeychain/SAMKeychain.h>
#import <SAMKeychain/SAMKeychain.h>
#import <GMCache/GMCache.h>
#import <GMCache/GMCache.h>
#import "PhobosUtil.h"
//#import <AppTrackingTransparency/AppTrackingTransparency.h>
//#import <AppTrackingTransparency/AppTrackingTransparency.h>
NSString
*
const
KprivatePolicyNotification
=
@"gm_popup_private_policy_notification"
;
NSString
*
const
KprivatePolicyNotification
=
@"gm_popup_private_policy_notification"
;
...
@@ -21,6 +22,9 @@ NSString *const IDFA = @"idfa";
...
@@ -21,6 +22,9 @@ NSString *const IDFA = @"idfa";
// 默认获取不到的idfa
// 默认获取不到的idfa
NSString
*
defaultIDFA
=
@"00000000-0000-0000-0000-000000000000"
;
NSString
*
defaultIDFA
=
@"00000000-0000-0000-0000-000000000000"
;
static
dispatch_queue_t
queue
;
@implementation
PhobosDevice
@implementation
PhobosDevice
#pragma mark - getIDFA
#pragma mark - getIDFA
...
@@ -139,8 +143,18 @@ NSString *defaultIDFA = @"00000000-0000-0000-0000-000000000000";
...
@@ -139,8 +143,18 @@ NSString *defaultIDFA = @"00000000-0000-0000-0000-000000000000";
#pragma mark - 钥匙串封装
#pragma mark - 钥匙串封装
+
(
void
)
saveKeyChainWithValue
:
(
NSString
*
)
value
service
:
(
NSString
*
)
service
account
:
(
NSString
*
)
account
{
+
(
void
)
saveKeyChainWithValue
:
(
NSString
*
)
value
service
:
(
NSString
*
)
service
account
:
(
NSString
*
)
account
{
[
SAMKeychain
setPassword
:
value
forService
:
service
account
:
account
];
//避免在重复相同的key 重复设置
[
SAMKeychain
setAccessibilityType
:
kSecAttrAccessibleAlwaysThisDeviceOnly
];
static
dispatch_once_t
onceToken
;
dispatch_once
(
&
onceToken
,
^
{
queue
=
dispatch_queue_create
(
"com.device.idfa.serial.queue"
,
DISPATCH_QUEUE_SERIAL
);
});
if
(
queue
&&
[
PhobosUtil
isNonEmpty
:
service
]
&&
!
[
self
checkIdfaIsNull
:
value
])
{
dispatch_sync
(
queue
,
^
{
[
SAMKeychain
setPassword
:
value
forService
:
service
account
:
account
];
[
SAMKeychain
setAccessibilityType
:
kSecAttrAccessibleAlwaysThisDeviceOnly
];
});
}
}
}
//根据 service 与账户keyChain 获取存储的值
//根据 service 与账户keyChain 获取存储的值
...
@@ -151,4 +165,5 @@ NSString *defaultIDFA = @"00000000-0000-0000-0000-000000000000";
...
@@ -151,4 +165,5 @@ NSString *defaultIDFA = @"00000000-0000-0000-0000-000000000000";
+
(
BOOL
)
showPrivatePolicy
{
+
(
BOOL
)
showPrivatePolicy
{
return
[
GMCache
fetchObjectAtDocumentPathWithkey
:
KprivatePolicyNotification
];
return
[
GMCache
fetchObjectAtDocumentPathWithkey
:
KprivatePolicyNotification
];
}
}
@end
@end
fastlane/report.xml
View file @
aac2401b
...
@@ -5,57 +5,44 @@
...
@@ -5,57 +5,44 @@
<testcase
classname=
"fastlane.lanes"
name=
"0
0: Verifying fastlane version"
time=
"0.031666
"
>
<testcase
classname=
"fastlane.lanes"
name=
"0
: Verifying fastlane version"
time=
"0.031043
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"
01: default_platform"
time=
"0.008788
"
>
<testcase
classname=
"fastlane.lanes"
name=
"
1: default_platform"
time=
"0.009155
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"
02: git_pull"
time=
"1.192475
"
>
<testcase
classname=
"fastlane.lanes"
name=
"
2: git_pull"
time=
"1.30613
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"
03: pod_repo_update"
time=
"2.756108
"
>
<testcase
classname=
"fastlane.lanes"
name=
"
3: pod_repo_update"
time=
"2.363665
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"
04: pod_lib_lint"
time=
"11.35025
"
>
<testcase
classname=
"fastlane.lanes"
name=
"
4: pod_lib_lint"
time=
"41.183058
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"
05: version_bump_podspec"
time=
"0.00651
"
>
<testcase
classname=
"fastlane.lanes"
name=
"
5: version_bump_podspec"
time=
"0.027194
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"
06: git_commit_all"
time=
"0.02439
"
>
<testcase
classname=
"fastlane.lanes"
name=
"
6: git_commit_all"
time=
"0.02455
"
>
</testcase>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"
07: add_git_tag"
time=
"0.015272
"
>
<testcase
classname=
"fastlane.lanes"
name=
"
7: add_git_tag"
time=
"0.01735
"
>
</testcase>
<failure
message=
"/Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/actions/actions_helper.rb:48:in `execute_action' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:229:in `chdir' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing' Fastfile:55:in `block (2 levels) in parsing_binding' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane.rb:33:in `call' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:45:in `chdir' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/runner.rb:45:in `execute' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:352:in `run' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off' /Users/gm/.rvm/rubies/ruby-2.6.0-preview2/lib/ruby/gems/2.6.0/gems/fastlane-2.160.0/bin/fastlane:23:in `<top (required)>' /Users/gm/.rvm/gems/ruby-2.6.0-preview2/bin/fastlane:23:in `load' /Users/gm/.rvm/gems/ruby-2.6.0-preview2/bin/fastlane:23:in `<main>' Exit status of command 'git tag -am 3.0.3\ \(fastlane\) 3.0.3' was 128 instead of 0. fatal: tag '3.0.3' already exists "
/>
<testcase
classname=
"fastlane.lanes"
name=
"08: push_to_git_remote"
time=
"0.700408"
>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"09: pod_push"
time=
"9.60056"
>
</testcase>
<testcase
classname=
"fastlane.lanes"
name=
"10: pod_repo_update"
time=
"1.755684"
>
</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