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