index.ts 902 Bytes
// @ts-nocheck



// #ifndef UNI-APP-X
// ✅ UVUE 类型导入:使用本地定义的类型
import type { ICrypto } from '../../types/lime-crypto-types.uts'
import { CryptoImpl } from './Crypto'
export function useCrypto():ICrypto {
	return new CryptoImpl()
}
// #endif

// #ifdef UNI-APP-X

// #ifndef APP-ANDROID || APP-HARMONY
// ✅ UVUE 类型导入:使用本地定义的类型
import type { ICrypto } from '../../types/lime-crypto-types.uts'
import { CryptoImpl } from './Crypto'
export function useCrypto():ICrypto {
	return new CryptoImpl()
}
// #endif

// #ifdef APP-ANDROID || APP-HARMONY
 // ✅ UVUE 类型导入:分离函数和类型导入,使用本地定义的类型
 import { useCrypto as useCrypto1 } from '../utssdk/app-android'
 import type { ICrypto } from '../../types/lime-crypto-types.uts'
export function useCrypto():ICrypto {
	return useCrypto1()
}
// #endif

// #endif