diff --git a/docs/native/download/ios.md b/docs/native/download/ios.md index 3d1290ca2b7a20ca078dac4d29920dd3336542ca..7db7f218291fe49015e7ae0ffbe5651587433d26 100644 --- a/docs/native/download/ios.md +++ b/docs/native/download/ios.md @@ -12,12 +12,45 @@ ## alpha版 -### 4.28.2024092105-alpha - -[下载地址](https://web-ext-storage.dcloud.net.cn/uni-app-x/sdk/iOS/UniAppX-iOS%404.28.2024092105.zip) - -* 修复 tabBar 页面无法横屏显示 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=8185) -* 修复 4.25版本引发的 pages.json pageOrientation 值不为 auto 时运行在 iPad 竖屏切换横屏时页面没有自动适配 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=8991) +### 4.31.2024102414-alpha + +[下载地址](https://web-ext-storage.dcloud.net.cn/uni-app-x/sdk/iOS/UniAppX-iOS%404.31.zip) + +* 新增 vue 页面实例.options 及 onLoad 参数调整为 UTSJSONObject 类型 [文档](https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html) +* 新增 API `uni.openDialogPage`、`uni.closeDialogPage` 打开和关闭模态弹框页面 [文档](https://doc.dcloud.net.cn/uni-app-x/api/dialog-page.html) +* 调整 API getApp 返回值类型为 UniApp,新增若干方法,并支持在uts插件中使用 [文档](https://doc.dcloud.net.cn/uni-app-x/api/get-app.html) +* 调整 API getCurrentPages 返回值类型为 UniPage数组,新增UniPage对象若干方法,并支持在uts插件中使用 [文档](https://doc.dcloud.net.cn/uni-app-x/api/get-current-pages.html) +* 新增 API eventBus 支持通过 id 移除自定义事件监听器,并支持在uts插件中使用 [文档](https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html#on) +* 新增 编译器 优化uts类型推导 [文档](https://doc.dcloud.net.cn/uni-app-x/uts/#%E7%B1%BB%E5%9E%8B%E8%87%AA%E5%8A%A8%E6%8E%A8%E5%AF%BC) +* 新增 组件 native-view组件和UniNativeViewElement,支持vue规范开发原生组件 [文档](https://doc.dcloud.net.cn/uni-app-x/component/native-view.html) +* 新增 `标准模式`组件,即通过vue规范和native-view来开发原生组件 [文档](https://doc.dcloud.net.cn/uni-app-x/plugin/uts-component-vue.html) +* 新增 组件 button 支持open-type=agreePrivacyAuthorization 用于同意隐私政策 [文档](https://doc.dcloud.net.cn/uni-app-x/component/button.html) +* 新增 组件 map 地图 [文档](https://doc.dcloud.net.cn/uni-app-x/component/map.html) +* 新增 uni-ad 新增章鱼渠道 [文档](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html#uni-ad) +* 新增 组件 ad 信息流广告 [文档](https://doc.dcloud.net.cn/uni-app-x/component/ad.html) +* 新增 API 隐私信息授权相关API [文档](https://doc.dcloud.net.cn/uni-app-x/api/privacy.html) +* 新增 API uni.getAppBaseInfo 支持渠道包的channel渠道信息 [文档](https://doc.dcloud.net.cn/uni-app-x/api/get-app-base-info.html) +* 新增 API uni.createInterstitialAd 插屏广告 [文档](https://doc.dcloud.net.cn/uni-app-x/api/create-interstitial-ad.html) +* 新增 API uni.requestPayment 支付失败错误码 700607 和 700608 [文档](https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#irequestpaymentfail-values) +* 新增 API eventBus 支持在UTS插件中使用 [文档](https://doc.dcloud.net.cn/uni-app-x/api/event-bus.html) +* 优化 provider注册机制 [文档](https://doc.dcloud.net.cn/uni-app-x/api/provider.html) +* 修复 instanceof UniCloudError 的用法报错 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=7848) +* 修复 vue reactive参数传一个对象字面量时返回的结果并不是UTSJSONObject [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=9175) +* 修复 编译器 在 windows 系统上运行同步文件可能不正常 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=10570) +* 修复 4.19版本引发的 pages.json 下拉刷新loading的样式设置backgroundTextStyle属性无效 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=2537) +* 修复 组件 list-view 组件的@scroll事件参数deltaY数据异常 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=9121) +* 修复 3.99版本引发的 组件 picker-view,给picker-view动态设置indicator-style、mask-top-style、mask-bottom-style无效 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=6620) +* 修复 3.99版本引发的 CSS border 动态设置 boder/background 样式切换不生效 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=7236) +* 修复 4.2版本引发的 编译器 软链的插件编译报错 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=7397) +* 修复 组件 全局事件 onResize 回调参数缺少 size 数据 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=8186) +* 修复 组件 picker-view pickerview 上下蒙版颜色设置被覆盖 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=2600) +* 修复 组件 slider 设置滑块颜色不生效 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=9361) +* 修复 组件 canvas : Path2D 绘制原点与 Context 绘制原点不一致 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=8748) +* 修复 4.23版本引发的 API uni.setTabBarStyle 设置backgroundColor或backgroundImage时borderColor受影响 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=6567) +* 修复 4.25版本引发的 API uni.showActionSheet 适配横竖屏切换布局错乱 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=8542) +* 修复 API uni.showToast 显示位置不正常 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=8123) +* 修复 API uni.chooseVideo 选择苹果手机拍摄的延时视频报错 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=9886) +* 修复 4.25版本引发的 CSS border-radius 父视图添加圆角某些场景下无法裁剪子视图 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=10188) diff --git a/docs/native/modules/ios/modules.md b/docs/native/modules/ios/modules.md index f4e92d830fe515cb9dd2cf0860605afed204580c..de3694e6d089774247f7256faaf94478296b932f 100644 --- a/docs/native/modules/ios/modules.md +++ b/docs/native/modules/ios/modules.md @@ -49,6 +49,10 @@ | uni-ad | uni-ad-index.swift | DCUniAdFoundation.xcframework | | | uni-facialRecognitionVerify | uni-facialRecognitionVerify-index.swift | AliyunFaceAuthFacade.framework
AliyunMobileRPC.framework
AliyunOSSiOS.framework
APBToygerFacade.framework
APPSecuritySDK.framework
BioAuthAPI.framework
BioAuthEngine.framework
deviceiOS.framework
DTFIdentityManager.framework
DTFSensorServices.framework
DTFUIModule.framework
DTFUtility.framework
MPRemoteLogging.framework
ToygerNative.framework
ToygerService.framework | c++
z
resolv
c++.1
c++abi
z.1.2.8
Accelerate
AssetsLibrary
QuartzCore
CoreFoundation
CoreLocation
ImageIO
CoreMedia
CoreMotion
AVFoundation
WebKit
AudioToolbox
CFNetwork
MobileCoreServices
SystemConfiguration
CoreTelephony
QuartzCore
CoreGraphics、AdSupport | | uni-cloud-client | uni-websocket-index.swift
uni-network-index.swift
uni-media-index.swift| DCloudMediaPicker.xcframework |AssetsLibrary
Photos
AVFoundation
CoreServices
CoreFoundation
CoreGraphics
CoreImage
GLKit
MetalKit
MobileCoreServices
QuartzCore
ImageIO
MediaPlayer
CoreText| +| uni-crash | uni-crash-index.swift
uni-crash-UniCrashManager.swift | KSCrash.xcframework | | +| uni-privacy | uni-privacy-index.swift | | | +| uni-dialogPage | uni-dialogPage-index.swift
uni-dialogPage-native.swift | | | +| uni-event | uni-event-index.swift
uni-event-native.swift | | | ### 配置uts-config.json(可选) @@ -430,7 +434,7 @@ xcodebuild -create-xcframework -framework 真机路径/DCloudUTSExtAPI.framework ``` ![](https://web-ext-storage.dcloud.net.cn/native/doc/iOS/uniappx_app_info.png) -### 增强广告(可选) +### 增强广告-国内(可选) #### 添加依赖库以及资源文件 | 广告渠道 | 依赖库 | 资源文件 | 系统库 | |---|---|---|---| @@ -439,8 +443,24 @@ xcodebuild -create-xcframework -framework 真机路径/DCloudUTSExtAPI.framework | 快手 | DCUniAdKs.xcframework
DCloudPermissionIDFA.xcframework
KSAdSDK.xcframework`(Embed & Sign)` | | AppTrackingTransparency
AdSupport
MobileCoreServices
CoreGraphics
CoreData
CoreLocation
MediaPlayer
CoreMedia
WebKit
Accelerate
AVKit
MessageUI
QuickLook
AddressBook
CoreMotion
QuartzCore
SystemConfiguration
CoreTelephony
Security
StoreKit
AVFoundation
WebKit
z
resolv.9
sqlite3
c++
c++abi | | 百度 | DCUniAdBd.xcframework
DCloudPermissionIDFA.xcframework
BaiduMobAdSDK.framework | baidumobadsdk.bundle | AppTrackingTransparency
AdSupport
StoreKit
SafariServices
MessageUI
CoreMedia
CoreMotion
SystemConfiguration
CoreLocation
CoreTelephony
AVFoundation
Webkit
c++ | | sigmob | DCUniAdSgm.xcframework
DCloudPermissionIDFA.xcframework
WindSDK.xcframework
WindFoundation.xcframework | | AppTrackingTransparency
AdSupport
StoreKit
CFNetwork
CoreMedia
CoreGraphics
AVFoundation
CoreLocation
CoreTelephony
SafariServices
MobileCoreServices
WebKit
SystemConfiguration
ImageIO
z
sqlite3 | +| 章鱼 | OctUniAdSDK.xcframework
DCloudPermissionIDFA.xcframework
OctCore.xcframework
OctAdSDK.xcframework | OctAdSDK.bundle
OctCore.bundle | AppTrackingTransparency
AdSupport
c++| +### 增强广告-国际(可选) +#### 添加依赖库以及资源文件 +| 广告渠道 | 依赖库 | 资源文件 | 系统库 | +|---|---|---|---| +| Google AdMob | DCUniAdGg.xcframework
DCloudPermissionIDFA.xcframework
UserMessagingPlatform.xcframework | | | +| Pangle | PangleAdapter.xcframework
DCloudPermissionIDFA.xcframework
BURelyFoundation_Global.xcframework.xcframework
PAGAdSDK.xcframework | PAGAdSDK.bundle | StoreKit.framework
MobileCoreServices.framework
WebKit.framework
MediaPlayer.framework
CoreMedia.framework
CoreLocation.framework
AVFoundation.framework
CoreTelephony.framework
SystemConfiguration.framework
AdSupport.framework
CoreMotion.framework
JavaScriptCore.framework
DeviceCheck.framework
libresolv.9.tbd
libc++.tbd
libc++abi.tbd
libz.tbd
libsqlite3.tbd | +| InMobi | InMobiSDK.xcframework
DCloudPermissionIDFA.xcframework
InMobiAdapter.xcframework | | sqlite3.0
z
WebKit| +| IronSource | IronSource.xcframework
DCloudPermissionIDFA.xcframework
IronSourceAdapter.xcframework | | | +| Liftoff | VungleAdsSDK.xcframework
DCloudPermissionIDFA.xcframework
LiftoffMonetizeAdapter.xcframework | | AdSupport
AudioToolbox
AVFoundation
CFNetwork
CoreGraphics
CoreMedia
MediaPlayer
QuartzCore
StoreKit
SystemConfiguration
z | +| Mintegral | MintegralAdapter.xcframework
DCloudPermissionIDFA.xcframework
MTGSDK.xcframework
MTGSDKBanner.xcframework
MTGSDKBidding.xcframework
MTGSDKInterstitialVideo.xcframework
MTGSDKNativeAdvanced.xcframework
MTGSDKNewInterstitial.xcframework
MTGSDKReward.xcframework
MTGSDKSplash.xcframework | | | +| UnityAds | UnityAds.xcframework
DCloudPermissionIDFA.xcframework
UnityAdapter.xcframework | | | + +> 集成Pangle、InMobi、IronSource、Liftoff、Mingetral、UnityAds渠道必须集成Google AdMob +> 国际广告需要在[uni-AD后台](https://uniad.dcloud.net.cn/)后台审核通过之后才可以集成。审核通过之后可以连续客服获取国际广告SDK及配置。 + #### Info.plist 添加`IDFA权限描述(NSUserTrackingUsageDescription)` ``` @@ -449,6 +469,14 @@ xcodebuild -create-xcframework -framework 真机路径/DCloudUTSExtAPI.framework 获取标记权限向您提供更优质、安全的个性化服务及内容,未经同意我们不会用于其他目的;开启后,您也可以前往系统“设置-隐私 ”中随时关闭 ``` + +开通 `Google AdMob` 渠道必须添加以下 +``` + + GADApplicationIdentifier + 填写您的Google Admob 应用ID + +``` 开通 `快手、sigmob、百度` 渠道建议添加以下权限描述 ![](https://web-ext-storage.dcloud.net.cn/native/doc/iOS/location_permission.png) diff --git a/docs/native/use/ios.md b/docs/native/use/ios.md index 00fd5997d7110549b42fa7b7f6a6c6f63d1af438..0aa55dfee1fb088cabafb8abfe93f777dc8c40c2 100644 --- a/docs/native/use/ios.md +++ b/docs/native/use/ios.md @@ -59,6 +59,10 @@ SDK版本号 unionid 广告联盟id,如未开通uniad可不填 + channel + appstore + initPrivacyAuthorization + ```