| 12345678910111213141516 |
- import { ANDROID, IOS } from "cc/env";
- import { GoogleImpl } from "./GoogleImpl";
- import { GoogleNativeImpl } from "./GoogleNativeImpl";
- import { GoogleH5Impl } from "./GoogleH5Impl";
- function getGoogleImpl(): GoogleImpl {
- if (ANDROID || IOS) {
- return new GoogleNativeImpl();
- }
- return new GoogleH5Impl();
- }
- const google = getGoogleImpl();
- export default google;
|