UNPKG

mx-jpush-expo

Version:

Expo 集成极光推送(JPush)一体化解决方案,支持 iOS/Android 厂商通道

29 lines 1.06 kB
/** * Android gradle.properties 配置 * 处理 Gradle 8.0 版本兼容性问题 */ import { ExpoConfig } from 'expo/config'; import { ResolvedJPushPluginProps, VendorChannelConfig } from '../types'; type GradleProperty = { type: 'comment'; value: string; } | { type: 'empty'; } | { type: 'property'; key: string; value: string; }; export declare function applyAndroidGradleProperties(properties: GradleProperty[], vendorChannels?: VendorChannelConfig): GradleProperty[]; /** * 配置 Android gradle.properties * * 说明: * - 如果使用 Gradle 8.0 版本,且集成华为 AGC 插件版本低于 1.9.1.300, * 需要添加 apmsInstrumentationEnabled=false 来禁用 APMS 插件 * - 当前使用的 AGC 版本为 1.9.1.301,理论上不需要此配置 * - 但为了兼容性和避免潜在问题,仍然添加此配置 */ export declare function withAndroidGradleProperties(config: ExpoConfig, props: Pick<ResolvedJPushPluginProps, 'vendorChannels'>): ExpoConfig; export {}; //# sourceMappingURL=gradleProperties.d.ts.map