Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
L
LuckFarm
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
LuckFarm
Commits
1f08a141
Commit
1f08a141
authored
Oct 28, 2020
by
Mazy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
!
parent
5e50d4d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
xcschememanagement.plist
...rdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
+1
-1
AppDelegate.mm
GYDemo/GYDemo/AppDelegate.mm
+19
-19
UserInterfaceState.xcuserstate
...cuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
xcschememanagement.plist
...rdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
+2
-2
No files found.
GYDemo/GYDemo.xcodeproj/xcuserdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
1f08a141
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<
k
e
y
>
GYDemo.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
GYDemo.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
5
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
7
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
GYDemo/GYDemo/AppDelegate.mm
View file @
1f08a141
...
@@ -412,27 +412,27 @@ NSDictionary* appLaunchOpts;
...
@@ -412,27 +412,27 @@ NSDictionary* appLaunchOpts;
// 发送 udid 和 idfa
// 发送 udid 和 idfa
- (void) transferUdidAndIdfaAction {
- (void) transferUdidAndIdfaAction {
[self sendMsgToUnity];
//
[self sendMsgToUnity];
}
}
// 发送消息给 Unity
//
//
发送消息给 Unity
- (void)sendMsgToUnity {
//
- (void)sendMsgToUnity {
// [[self ufw] sendMessageToGOWithName: "Cube" functionName: "ChangeColor" message: "yellow"];
//
// [[self ufw] sendMessageToGOWithName: "Cube" functionName: "ChangeColor" message: "yellow"];
//
if ([self.payPageName isEqual:@"bj"]) {
//
if ([self.payPageName isEqual:@"bj"]) {
[[self ufw] sendMessageToGOWithName: "bj" functionName: "iosLoginAction" message: ""];
//
[[self ufw] sendMessageToGOWithName: "bj" functionName: "iosLoginAction" message: ""];
} else {
//
} else {
NSString *dateStr = [BGKeychainTool getDeviceIDInKeychain];
//
NSString *dateStr = [BGKeychainTool getDeviceIDInKeychain];
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "unityGetDeviceUDID" message: [dateStr UTF8String]];
//
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "unityGetDeviceUDID" message: [dateStr UTF8String]];
//
// idfa
//
// idfa
Data *data = [[Data alloc] init];
//
Data *data = [[Data alloc] init];
NSString *idfa = [[data Read] objectForKey:@"idfa"];
//
NSString *idfa = [[data Read] objectForKey:@"idfa"];
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "unityGetAdvertisingIdentifier" message: [idfa UTF8String]];
//
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "unityGetAdvertisingIdentifier" message: [idfa UTF8String]];
//
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "iosLoginAction" message: ""];
//
[[self ufw] sendMessageToGOWithName: "BgImage" functionName: "iosLoginAction" message: ""];
}
//
}
}
//
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
{
...
...
farm.xcworkspace/xcuserdata/mazy.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1f08a141
No preview for this file type
iOSFarm202008/Unity-iPhone.xcodeproj/xcuserdata/mazy.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
1f08a141
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<
k
e
y
>
Unity-iPhone.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
Unity-iPhone.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
6
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
5
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
k
e
y
>
UnityFramework.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
k
e
y
>
UnityFramework.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
7
<
/int
e
g
e
r
>
<
int
e
g
e
r
>
6
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
...
...
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