Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
ZxAd_Unity
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
王雪伟
ZxAd_Unity
Commits
b8f68e31
Commit
b8f68e31
authored
Jun 07, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改iOS配置
parent
13c658dd
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
64 additions
and
34 deletions
+64
-34
UnionPlatform.meta
Assets/AdSDK/AD/CSJ/UnionPlatform.meta
+8
-0
Plugins.meta
Assets/AdSDK/AD/CSJ/UnionPlatform/Plugins.meta
+8
-0
Scripts.meta
Assets/AdSDK/AD/CSJ/UnionPlatform/Scripts.meta
+8
-0
BridageManager.h
Assets/Plugins/iOS/Bridage/BridageManager.h
+3
-0
BridageManager.m
Assets/Plugins/iOS/Bridage/BridageManager.m
+15
-15
KeychainItemManager.m
Assets/Plugins/iOS/KeyChain/KeychainItemManager.m
+3
-0
.DS_Store
Assets/Plugins/iOS/umeng_common/.DS_Store
+0
-0
packages-lock.json
Packages/packages-lock.json
+16
-16
PackageManagerSettings.asset
ProjectSettings/PackageManagerSettings.asset
+1
-1
ProjectVersion.txt
ProjectSettings/ProjectVersion.txt
+2
-2
No files found.
Assets/AdSDK/AD/CSJ/UnionPlatform.meta
0 → 100644
View file @
b8f68e31
fileFormatVersion: 2
guid: 6915fe3cccc9344909d4516bf2cd6714
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/AdSDK/AD/CSJ/UnionPlatform/Plugins.meta
0 → 100644
View file @
b8f68e31
fileFormatVersion: 2
guid: 390fc920191800446ac0ea22e38b6f1e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/AdSDK/AD/CSJ/UnionPlatform/Scripts.meta
0 → 100644
View file @
b8f68e31
fileFormatVersion: 2
guid: cc3f54bf649c642c892c9ea1b422cb2f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Plugins/iOS/Bridage/BridageManager.h
View file @
b8f68e31
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
NS_ASSUME_NONNULL_BEGIN
NS_ASSUME_NONNULL_BEGIN
@interface
BridageManager
:
UIResponder
<
UIApplicationDelegate
,
WXApiDelegate
>
@interface
BridageManager
:
UIResponder
<
UIApplicationDelegate
,
WXApiDelegate
>
@property
(
nonatomic
,
strong
)
NSString
*
udid
;
@property
(
nonatomic
,
strong
)
NSString
*
idfaString
;
+
(
instancetype
)
shareManager
;
+
(
instancetype
)
shareManager
;
-
(
void
)
bridage
;
-
(
void
)
bridage
;
...
...
Assets/Plugins/iOS/Bridage/BridageManager.m
View file @
b8f68e31
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
#import "BridageManager.h"
#import "BridageManager.h"
#import "UserData.h"
#import "UserData.h"
#import "BGKeychainTool.h"
#import "BGKeychainTool.h"
//
#import <BUAdSDK/BUAdSDK.h>
#import <BUAdSDK/BUAdSDK.h>
//
#import <UMCommon/UMCommon.h>
#import <UMCommon/UMCommon.h>
@interface
BridageManager
()
@interface
BridageManager
()
...
@@ -86,11 +86,11 @@ char* MakeStringCopy(const char* string){
...
@@ -86,11 +86,11 @@ char* MakeStringCopy(const char* string){
//信息提示
//信息提示
void
OnShowMessage
(
const
char
*
msg
)
void
OnShowMessage
(
const
char
*
msg
)
{
{
// UnitySendMessage("WxLogin","LoginCallBack",
MakeStringCopy(msg));
UnitySendMessage
(
"LoginView"
,
"LoginCallBack"
,
MakeStringCopy
(
msg
));
}
}
void
OnShareShowMessage
(
const
char
*
msg
)
void
OnShareShowMessage
(
const
char
*
msg
)
{
{
//
UnitySendMessage("MainPanel","ShareCallBack",MakeStringCopy(msg));
//
UnitySendMessage("MainPanel","ShareCallBack",MakeStringCopy(msg));
}
}
-
(
void
)
bridage
-
(
void
)
bridage
...
@@ -99,13 +99,13 @@ void OnShareShowMessage(const char* msg)
...
@@ -99,13 +99,13 @@ void OnShareShowMessage(const char* msg)
NSDictionary
*
userDic
=
[
data
readPlist
];
NSDictionary
*
userDic
=
[
data
readPlist
];
if
([
BGKeychainTool
getDeviceIDInKeychain
].
length
>
0
)
{
if
([
BGKeychainTool
getDeviceIDInKeychain
].
length
>
0
)
{
NSString
*
udid
=
[
BGKeychainTool
getDeviceIDInKeychain
];
_
udid
=
[
BGKeychainTool
getDeviceIDInKeychain
];
}
}
if
(
userDic
[
@"idfa"
])
{
if
(
userDic
[
@"idfa"
])
{
NSString
*
idfaString
=
[
NSString
stringWithFormat
:
@"%@"
,
userDic
[
@"idfa"
]];
_
idfaString
=
[
NSString
stringWithFormat
:
@"%@"
,
userDic
[
@"idfa"
]];
}
}
...
@@ -125,12 +125,12 @@ extern "C" {
...
@@ -125,12 +125,12 @@ extern "C" {
NSLog
(
@"穿山甲appid:%@"
,
[
NSString
stringWithUTF8String
:
appId
]);
NSLog
(
@"穿山甲appid:%@"
,
[
NSString
stringWithUTF8String
:
appId
]);
//穿山甲
//穿山甲
//
[BUAdSDKManager setAppID:[NSString stringWithUTF8String:appId]];
[
BUAdSDKManager
setAppID
:[
NSString
stringWithUTF8String
:
appId
]];
//
//
[BUAdSDKManager setAppID:@"5000546"];
// [BUAdSDKManager setAppID:@"5000546"];
//
[BUAdSDKManager setGDPR:0];
[
BUAdSDKManager
setGDPR
:
0
];
//
[BUAdSDKManager setCoppa:0];
[
BUAdSDKManager
setCoppa
:
0
];
//
[BUAdSDKManager setIsPaidApp:NO];
[
BUAdSDKManager
setIsPaidApp
:
NO
];
//
[BUAdSDKManager setLoglevel:BUAdSDKLogLevelDebug];
[
BUAdSDKManager
setLoglevel
:
BUAdSDKLogLevelDebug
];
}
}
// 初始化友盟SDK
// 初始化友盟SDK
...
@@ -138,14 +138,14 @@ extern "C" {
...
@@ -138,14 +138,14 @@ extern "C" {
{
{
NSLog
(
@"unity传值:%@"
,
[
NSString
stringWithUTF8String
:
appKey
]);
NSLog
(
@"unity传值:%@"
,
[
NSString
stringWithUTF8String
:
appKey
]);
//
[UMConfigure initWithAppkey:[NSString stringWithUTF8String:appKey] channel:@"App Store"];
[
UMConfigure
initWithAppkey
:[
NSString
stringWithUTF8String
:
appKey
]
channel
:
@"App Store"
];
//
[UMConfigure setLogEnabled: NO];
[
UMConfigure
setLogEnabled
:
NO
];
}
}
typedef
void
(
*
ResultHandler
)
(
const
char
*
device
,
const
char
*
idfa
);
typedef
void
(
*
ResultHandler
)
(
const
char
*
device
,
const
char
*
idfa
);
void
BridageDeviceAndIDFA
(
ResultHandler
resultHandler
)
void
BridageDeviceAndIDFA
(
ResultHandler
resultHandler
)
{
{
resultHandler
(
@"非托管方法交互成功1"
.
UTF8String
,
@"非托管方法交互成功2"
.
UTF8String
);
resultHandler
(
[
BridageManager
shareManager
].
udid
.
UTF8String
,
[
BridageManager
shareManager
].
idfaString
.
UTF8String
);
}
}
...
...
Assets/Plugins/iOS/KeyChain/KeychainItemManager.m
View file @
b8f68e31
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#import <AppTrackingTransparency/AppTrackingTransparency.h>
#import <AppTrackingTransparency/AppTrackingTransparency.h>
#import "KeychainItemWrapper.h"
#import "KeychainItemWrapper.h"
#import "UserData.h"
#import "UserData.h"
#import "BridageManager.h"
NSString
*
const
FCLogin
=
@"SKLogin"
;
NSString
*
const
FCLogin
=
@"SKLogin"
;
NSString
*
const
FCIdentifier
=
@"SKIdentifier"
;
NSString
*
const
FCIdentifier
=
@"SKIdentifier"
;
...
@@ -36,6 +37,8 @@ NSString * const FCIdentifier = @"SKIdentifier";
...
@@ -36,6 +37,8 @@ NSString * const FCIdentifier = @"SKIdentifier";
NSString
*
idfa
=
[[[
ASIdentifierManager
sharedManager
]
advertisingIdentifier
]
UUIDString
];
NSString
*
idfa
=
[[[
ASIdentifierManager
sharedManager
]
advertisingIdentifier
]
UUIDString
];
if
(
idfa
.
length
)
{
if
(
idfa
.
length
)
{
[
data
writeValue
:
idfa
Key
:
@"idfa"
];
[
data
writeValue
:
idfa
Key
:
@"idfa"
];
[[
BridageManager
shareManager
]
bridage
];
}
}
}
}
}];
}];
...
...
Assets/Plugins/iOS/umeng_common/.DS_Store
deleted
100644 → 0
View file @
13c658dd
File deleted
Packages/packages-lock.json
View file @
b8f68e31
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
"com.unity.modules.animation"
:
"1.0.0"
,
"com.unity.modules.animation"
:
"1.0.0"
,
"com.unity.modules.uielements"
:
"1.0.0"
"com.unity.modules.uielements"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.2d.common"
:
{
"com.unity.2d.common"
:
{
"version"
:
"2.1.0"
,
"version"
:
"2.1.0"
,
...
@@ -21,21 +21,21 @@
...
@@ -21,21 +21,21 @@
"com.unity.2d.sprite"
:
"1.0.0"
,
"com.unity.2d.sprite"
:
"1.0.0"
,
"com.unity.modules.uielements"
:
"1.0.0"
"com.unity.modules.uielements"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.2d.path"
:
{
"com.unity.2d.path"
:
{
"version"
:
"2.1.0"
,
"version"
:
"2.1.0"
,
"depth"
:
1
,
"depth"
:
1
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.2d.pixel-perfect"
:
{
"com.unity.2d.pixel-perfect"
:
{
"version"
:
"2.1.0"
,
"version"
:
"2.1.0"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.2d.psdimporter"
:
{
"com.unity.2d.psdimporter"
:
{
"version"
:
"2.1.6"
,
"version"
:
"2.1.6"
,
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
"com.unity.2d.animation"
:
"3.2.5"
,
"com.unity.2d.animation"
:
"3.2.5"
,
"com.unity.2d.sprite"
:
"1.0.0"
"com.unity.2d.sprite"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.2d.sprite"
:
{
"com.unity.2d.sprite"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
"com.unity.2d.common"
:
"2.0.2"
,
"com.unity.2d.common"
:
"2.0.2"
,
"com.unity.2d.path"
:
"2.0.6"
"com.unity.2d.path"
:
"2.0.6"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.2d.tilemap"
:
{
"com.unity.2d.tilemap"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
@@ -76,14 +76,14 @@
...
@@ -76,14 +76,14 @@
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ext.nunit"
:
{
"com.unity.ext.nunit"
:
{
"version"
:
"1.0.6"
,
"version"
:
"1.0.6"
,
"depth"
:
1
,
"depth"
:
1
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ide.rider"
:
{
"com.unity.ide.rider"
:
{
"version"
:
"1.1.4"
,
"version"
:
"1.1.4"
,
...
@@ -92,28 +92,28 @@
...
@@ -92,28 +92,28 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.test-framework"
:
"1.1.1"
"com.unity.test-framework"
:
"1.1.1"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ide.vscode"
:
{
"com.unity.ide.vscode"
:
{
"version"
:
"1.2.3"
,
"version"
:
"1.2.3"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.mathematics"
:
{
"com.unity.mathematics"
:
{
"version"
:
"1.1.0"
,
"version"
:
"1.1.0"
,
"depth"
:
1
,
"depth"
:
1
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.mobile.android-logcat"
:
{
"com.unity.mobile.android-logcat"
:
{
"version"
:
"1.2.1"
,
"version"
:
"1.2.1"
,
"depth"
:
0
,
"depth"
:
0
,
"source"
:
"registry"
,
"source"
:
"registry"
,
"dependencies"
:
{},
"dependencies"
:
{},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.mobile.notifications"
:
{
"com.unity.mobile.notifications"
:
{
"version"
:
"1.3.2"
,
"version"
:
"1.3.2"
,
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.modules.androidjni"
:
"1.0.0"
"com.unity.modules.androidjni"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.test-framework"
:
{
"com.unity.test-framework"
:
{
"version"
:
"1.1.22"
,
"version"
:
"1.1.22"
,
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
"com.unity.modules.imgui"
:
"1.0.0"
,
"com.unity.modules.imgui"
:
"1.0.0"
,
"com.unity.modules.jsonserialize"
:
"1.0.0"
"com.unity.modules.jsonserialize"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.textmeshpro"
:
{
"com.unity.textmeshpro"
:
{
"version"
:
"2.1.3"
,
"version"
:
"2.1.3"
,
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
"dependencies"
:
{
"dependencies"
:
{
"com.unity.ugui"
:
"1.0.0"
"com.unity.ugui"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.timeline"
:
{
"com.unity.timeline"
:
{
"version"
:
"1.2.18"
,
"version"
:
"1.2.18"
,
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
"com.unity.modules.audio"
:
"1.0.0"
,
"com.unity.modules.audio"
:
"1.0.0"
,
"com.unity.modules.particlesystem"
:
"1.0.0"
"com.unity.modules.particlesystem"
:
"1.0.0"
},
},
"url"
:
"https://packages.unity.c
n
"
"url"
:
"https://packages.unity.c
om
"
},
},
"com.unity.ugui"
:
{
"com.unity.ugui"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
...
ProjectSettings/PackageManagerSettings.asset
View file @
b8f68e31
...
@@ -17,7 +17,7 @@ MonoBehaviour:
...
@@ -17,7 +17,7 @@ MonoBehaviour:
m_Registries
:
m_Registries
:
-
m_Id
:
main
-
m_Id
:
main
m_Name
:
m_Name
:
m_Url
:
https://packages.unity.c
n
m_Url
:
https://packages.unity.c
om
m_Scopes
:
[]
m_Scopes
:
[]
m_IsDefault
:
1
m_IsDefault
:
1
m_UserSelectedRegistryName
:
m_UserSelectedRegistryName
:
...
...
ProjectSettings/ProjectVersion.txt
View file @
b8f68e31
m_EditorVersion: 2019.4.19f1
c1
m_EditorVersion: 2019.4.19f1
m_EditorVersionWithRevision: 2019.4.19f1
c1 (e27b4ba3cbee
)
m_EditorVersionWithRevision: 2019.4.19f1
(ca5b14067cec
)
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