diff --git a/sqflite/ohos/.hvigor/cache/file-cache.json b/sqflite/ohos/.hvigor/cache/file-cache.json deleted file mode 100644 index 3d2de4dcff1f1f469080c96da308d9eed8e7ca86..0000000000000000000000000000000000000000 --- a/sqflite/ohos/.hvigor/cache/file-cache.json +++ /dev/null @@ -1 +0,0 @@ -{"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\AppScope\\app.json5":{"hashValue":"08fc0c1cb05d3261806ebb63e4714bac","name":"app.json5","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\AppScope\\app.json5","type":"file","isSymbolicLink":false,"fileMetaData":{"size":875,"lastModifiedTime":1706059631374}},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\module.json5":{"hashValue":"e1023c7c6717335313fe49e930dd5ae0","name":"module.json5","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\module.json5","type":"file","isSymbolicLink":false,"fileMetaData":{"size":785,"lastModifiedTime":1706059631524}},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\oh-package.json5":{"hashValue":"e16f6cf494828bc7c0aa74c69f614ca5","name":"oh-package.json5","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\oh-package.json5","type":"file","isSymbolicLink":false,"fileMetaData":{"size":922,"lastModifiedTime":1706059631522}},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\merge_profile\\default\\module.json":{"hashValue":"9ec0158bb31dc6e972a74673f5e99f40","name":"module.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\merge_profile\\default\\module.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":395,"lastModifiedTime":1706084761934}},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets":{"hashValue":"2b00464badb6d6c698553adbb3771ef9","name":"ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"e03c6dd526771fffbc93d2fd6bb77c6f","name":"io","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"80c7a8ae8aae48b4a2cf3276de9417d8","name":"flutter","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"02e58910ce276f959cb2e9ebb66eed09","name":"plugins","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"e435b76f2d4c81f6d8afcfca619c179f","name":"sqflite","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"14844d1b9ee1fe908bb826062bbd5746","name":"constant.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\constant.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":3688,"lastModifiedTime":1706063438578}},{"hashValue":"2914c1433d84cc9a790fffeff8456dab","name":"Messages.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\Messages.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":16458,"lastModifiedTime":1706059631523}},{"hashValue":"8a00cba3203155178fb63abb8859ebfe","name":"sqflite_helper.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\sqflite_helper.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":38720,"lastModifiedTime":1706084837870}},{"hashValue":"f125b24a36b06b8b146afe6a97113ffe","name":"SqflitePlugin.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\SqflitePlugin.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":18191,"lastModifiedTime":1706084156443}},{"hashValue":"8369f358c1b0e17eb29db65ba1d5c20d","name":"sql_helper.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\sql_helper.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":8232,"lastModifiedTime":1706084805952}},{"hashValue":"3dfa4d7122cd9ea5dc95e53abbde4606","name":"tools.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\tools.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":411,"lastModifiedTime":1706067315976}}]}]}]}]}]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\loader_out\\default\\ets":{"hashValue":"","name":"emptyroot","path":"","type":"unknown","isSymbolicLink":false,"children":[]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\process_profile\\default\\module.json":{"hashValue":"8708fae7f796bca08fd5263aea8bc401","name":"module.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\process_profile\\default\\module.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":480,"lastModifiedTime":1706084762749}},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\resConfig.json":{"hashValue":"c763be3e45afbcef276327a1204a3efc","name":"resConfig.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\resConfig.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":826,"lastModifiedTime":1706084762752}},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\libs":{"hashValue":"f5ba89696ccaa77b8b52cf0cbb5d0671","name":"libs","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\libs","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"56708f1c716704056554857e9821e096","name":"flutter_embedding.har","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\libs\\flutter_embedding.har","type":"file","isSymbolicLink":false,"fileMetaData":{"size":84259,"lastModifiedTime":1706059631521}}]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\libs\\default":{"hashValue":"","name":"default","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\libs\\default","type":"directory","isSymbolicLink":false,"children":[]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources":{"hashValue":"2a08f3fd80934e41ce42e4ae61c075a9","name":"resources","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"6d6db0f209385c8198b6c934ddb5e0e8","name":"base","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\base","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"1ab34f3e4c3d41f31f9334b422c0e388","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\base\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"078e1ff91516d2008fc8bb1e38b5406d","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\base\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631524}}]}]},{"hashValue":"4cd2a58a352a73bc35c607a310826569","name":"en_US","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\en_US","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"83e13a67bf37f25c7691c33c9d4cd0f0","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\en_US\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"884083f93b10f4498b79067c4f5fe057","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\en_US\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631525}}]}]},{"hashValue":"4cd2a58a352a73bc35c607a310826569","name":"zh_CN","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\zh_CN","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"83e13a67bf37f25c7691c33c9d4cd0f0","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\zh_CN\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"884083f93b10f4498b79067c4f5fe057","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\zh_CN\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631525}}]}]}]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default":{"hashValue":"1a917d0b6327f3a2b1d2e8d2f80bf2c0","name":"default","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"afeaa89fe450010f8b20538457432f92","name":"ids_map","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\ids_map","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"57bb4dc4efea8e9078570b14d8c28825","name":"id_defined.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\ids_map\\id_defined.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":148,"lastModifiedTime":1706084764868}}]},{"hashValue":"887ba34b1ac75ecc4d03e06492444b26","name":"module.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\module.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":641,"lastModifiedTime":1706084764867}},{"hashValue":"c763be3e45afbcef276327a1204a3efc","name":"resConfig.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\resConfig.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":826,"lastModifiedTime":1706084762752}},{"hashValue":"7b5b8d29037eb2bc91698b5742a59ce3","name":"resources.index","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\resources.index","type":"file","isSymbolicLink":false,"fileMetaData":{"size":396,"lastModifiedTime":1706084764868}},{"hashValue":"9b952ab620271ba35152dde2e2382a5f","name":"ResourceTable.txt","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\ResourceTable.txt","type":"file","isSymbolicLink":false,"fileMetaData":{"size":27,"lastModifiedTime":1706084764867}}]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\generated\\r\\default\\ResourceTable.h":{"hashValue":"50c6ac3d27fad616b62c9d0be15592ee","name":"ResourceTable.h","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\generated\\r\\default\\ResourceTable.h","type":"file","isSymbolicLink":false,"fileMetaData":{"size":750,"lastModifiedTime":1706084764866}},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\generated\\r\\default":{"hashValue":"bc8c85335f93baaad1b41ccf91b2c2ff","name":"default","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\generated\\r\\default","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"50c6ac3d27fad616b62c9d0be15592ee","name":"ResourceTable.h","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\generated\\r\\default\\ResourceTable.h","type":"file","isSymbolicLink":false,"fileMetaData":{"size":750,"lastModifiedTime":1706084764866}}]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\merge_profile\\default":{"hashValue":"d5c29615da1bf0bbf1b608f8dbc24289","name":"default","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\merge_profile\\default","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"9ec0158bb31dc6e972a74673f5e99f40","name":"module.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\merge_profile\\default\\module.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":395,"lastModifiedTime":1706084761934}}]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite":{"hashValue":"faa13fe2720afa4cd4c37f24bb69395d","name":"sqflite","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"442d6433a235efd06499a9e9262aab59","name":"hvigorfile.ts","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\hvigorfile.ts","type":"file","isSymbolicLink":false,"fileMetaData":{"size":160,"lastModifiedTime":1706059631520}},{"hashValue":"eeb6a76d4824c895309239615477c3e8","name":"index.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\index.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":769,"lastModifiedTime":1706059631521}},{"hashValue":"e16f6cf494828bc7c0aa74c69f614ca5","name":"oh-package.json5","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\oh-package.json5","type":"file","isSymbolicLink":false,"fileMetaData":{"size":922,"lastModifiedTime":1706059631522}},{"hashValue":"a2a27fb788a43a3962e1b63323ff0fe4","name":"src","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"c58a27dd04a7f0a3ebedef8fc90df4e2","name":"main","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"2b00464badb6d6c698553adbb3771ef9","name":"ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"e03c6dd526771fffbc93d2fd6bb77c6f","name":"io","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"80c7a8ae8aae48b4a2cf3276de9417d8","name":"flutter","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"02e58910ce276f959cb2e9ebb66eed09","name":"plugins","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"e435b76f2d4c81f6d8afcfca619c179f","name":"sqflite","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"14844d1b9ee1fe908bb826062bbd5746","name":"constant.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\constant.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":3688,"lastModifiedTime":1706063438578}},{"hashValue":"2914c1433d84cc9a790fffeff8456dab","name":"Messages.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\Messages.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":16458,"lastModifiedTime":1706059631523}},{"hashValue":"8a00cba3203155178fb63abb8859ebfe","name":"sqflite_helper.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\sqflite_helper.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":38720,"lastModifiedTime":1706084837870}},{"hashValue":"f125b24a36b06b8b146afe6a97113ffe","name":"SqflitePlugin.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\SqflitePlugin.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":18191,"lastModifiedTime":1706084156443}},{"hashValue":"8369f358c1b0e17eb29db65ba1d5c20d","name":"sql_helper.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\sql_helper.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":8232,"lastModifiedTime":1706084805952}},{"hashValue":"3dfa4d7122cd9ea5dc95e53abbde4606","name":"tools.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\tools.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":411,"lastModifiedTime":1706067315976}}]}]}]}]}]},{"hashValue":"e1023c7c6717335313fe49e930dd5ae0","name":"module.json5","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\module.json5","type":"file","isSymbolicLink":false,"fileMetaData":{"size":785,"lastModifiedTime":1706059631524}},{"hashValue":"2a08f3fd80934e41ce42e4ae61c075a9","name":"resources","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"6d6db0f209385c8198b6c934ddb5e0e8","name":"base","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\base","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"1ab34f3e4c3d41f31f9334b422c0e388","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\base\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"078e1ff91516d2008fc8bb1e38b5406d","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\base\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631524}}]}]},{"hashValue":"4cd2a58a352a73bc35c607a310826569","name":"en_US","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\en_US","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"83e13a67bf37f25c7691c33c9d4cd0f0","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\en_US\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"884083f93b10f4498b79067c4f5fe057","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\en_US\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631525}}]}]},{"hashValue":"4cd2a58a352a73bc35c607a310826569","name":"zh_CN","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\zh_CN","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"83e13a67bf37f25c7691c33c9d4cd0f0","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\zh_CN\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"884083f93b10f4498b79067c4f5fe057","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources\\zh_CN\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631525}}]}]}]}]},{"hashValue":"2737923ce501059afe068a9a2e38ae12","name":"test","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\test","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"baada0d2cca88b04416c72d11f322b89","name":"List.test.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\test\\List.test.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":762,"lastModifiedTime":1706059631526}},{"hashValue":"fbd6fef4ab95bd7a07e5e193f64e04db","name":"LocalUnit.test.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\test\\LocalUnit.test.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":2346,"lastModifiedTime":1706059631526}}]}]}]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\ResourceTable.txt":{"hashValue":"9b952ab620271ba35152dde2e2382a5f","name":"ResourceTable.txt","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\ResourceTable.txt","type":"file","isSymbolicLink":false,"fileMetaData":{"size":27,"lastModifiedTime":1706084764867}},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar":{"hashValue":"020b62e35af28e1319cf220224432027","name":"default@PackageHar","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"192a6b5475c10e53b54066829df5ccda","name":"build-profile.json5","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\build-profile.json5","type":"file","isSymbolicLink":false,"fileMetaData":{"size":773,"lastModifiedTime":1706059631520}},{"hashValue":"442d6433a235efd06499a9e9262aab59","name":"hvigorfile.ts","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\hvigorfile.ts","type":"file","isSymbolicLink":false,"fileMetaData":{"size":160,"lastModifiedTime":1706059631520}},{"hashValue":"eeb6a76d4824c895309239615477c3e8","name":"index.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\index.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":769,"lastModifiedTime":1706059631521}},{"hashValue":"","name":"libs","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\libs","type":"directory","isSymbolicLink":false,"children":[]},{"hashValue":"e16f6cf494828bc7c0aa74c69f614ca5","name":"oh-package.json5","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\oh-package.json5","type":"file","isSymbolicLink":false,"fileMetaData":{"size":922,"lastModifiedTime":1706059631522}},{"hashValue":"9b952ab620271ba35152dde2e2382a5f","name":"ResourceTable.txt","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\ResourceTable.txt","type":"file","isSymbolicLink":false,"fileMetaData":{"size":27,"lastModifiedTime":1706084764867}},{"hashValue":"66687ea8010a7bffb5f75ae64021f912","name":"src","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"ef32c299ba1ef7d53f87b00cd1dade9b","name":"main","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"2b00464badb6d6c698553adbb3771ef9","name":"ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"e03c6dd526771fffbc93d2fd6bb77c6f","name":"io","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"80c7a8ae8aae48b4a2cf3276de9417d8","name":"flutter","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"02e58910ce276f959cb2e9ebb66eed09","name":"plugins","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter\\plugins","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"e435b76f2d4c81f6d8afcfca619c179f","name":"sqflite","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter\\plugins\\sqflite","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"14844d1b9ee1fe908bb826062bbd5746","name":"constant.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\constant.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":3688,"lastModifiedTime":1706063438578}},{"hashValue":"2914c1433d84cc9a790fffeff8456dab","name":"Messages.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\Messages.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":16458,"lastModifiedTime":1706059631523}},{"hashValue":"8a00cba3203155178fb63abb8859ebfe","name":"sqflite_helper.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\sqflite_helper.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":38720,"lastModifiedTime":1706084837870}},{"hashValue":"f125b24a36b06b8b146afe6a97113ffe","name":"SqflitePlugin.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\SqflitePlugin.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":18191,"lastModifiedTime":1706084156443}},{"hashValue":"8369f358c1b0e17eb29db65ba1d5c20d","name":"sql_helper.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\sql_helper.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":8232,"lastModifiedTime":1706084805952}},{"hashValue":"3dfa4d7122cd9ea5dc95e53abbde4606","name":"tools.ets","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\ets\\io\\flutter\\plugins\\sqflite\\tools.ets","type":"file","isSymbolicLink":false,"fileMetaData":{"size":411,"lastModifiedTime":1706067315976}}]}]}]}]}]},{"hashValue":"9ec0158bb31dc6e972a74673f5e99f40","name":"module.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\module.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":395,"lastModifiedTime":1706084761934}},{"hashValue":"2a08f3fd80934e41ce42e4ae61c075a9","name":"resources","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"6d6db0f209385c8198b6c934ddb5e0e8","name":"base","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\base","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"1ab34f3e4c3d41f31f9334b422c0e388","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\base\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"078e1ff91516d2008fc8bb1e38b5406d","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\base\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631524}}]}]},{"hashValue":"4cd2a58a352a73bc35c607a310826569","name":"en_US","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\en_US","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"83e13a67bf37f25c7691c33c9d4cd0f0","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\en_US\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"884083f93b10f4498b79067c4f5fe057","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\en_US\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631525}}]}]},{"hashValue":"4cd2a58a352a73bc35c607a310826569","name":"zh_CN","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\zh_CN","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"83e13a67bf37f25c7691c33c9d4cd0f0","name":"element","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\zh_CN\\element","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"884083f93b10f4498b79067c4f5fe057","name":"string.json","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar\\src\\main\\resources\\zh_CN\\element\\string.json","type":"file","isSymbolicLink":false,"fileMetaData":{"size":108,"lastModifiedTime":1706059631525}}]}]}]}]}]}]},"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\outputs\\default":{"hashValue":"1549567cdb9e156e5ba529427fd190f3","name":"default","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\outputs\\default","type":"directory","isSymbolicLink":false,"children":[{"hashValue":"051e36df92cfb456fe3e46a57af49d89","name":"sqflite.har","path":"E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\outputs\\default\\sqflite.har","type":"file","isSymbolicLink":false,"fileMetaData":{"size":16671,"lastModifiedTime":1706084858103}}]}} \ No newline at end of file diff --git a/sqflite/ohos/.hvigor/cache/task-cache.json b/sqflite/ohos/.hvigor/cache/task-cache.json deleted file mode 100644 index 62e79eac5a7b9a8ebd8afd685e15087442aba0c7..0000000000000000000000000000000000000000 --- a/sqflite/ohos/.hvigor/cache/task-cache.json +++ /dev/null @@ -1 +0,0 @@ -{":ohos:sqflite:default@PreBuild":{"_inputs":[{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_COMMAND\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"0b5d05294fdf4e78e8482ef53eb64ac0\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_ENV\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"cdcdc2ec8062ca9ec1de46dbf2bbc053\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_TOOLCHAIN\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"e7f94a9422a8bc317a7d90b58efcb5f6\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"apiType\",\"_value\":\"stageMode\",\"_valueType\":\"string\",\"_hash\":\"699c7565645ea3ea8c88551a4926a3d5\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"codeType\",\"_value\":true,\"_valueType\":\"boolean\",\"_hash\":\"d6dcf21a9f078b661283507536e57ce8\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"compatibleApiVersion\",\"_value\":10,\"_valueType\":\"number\",\"_hash\":\"f08ac304243ae5663f2ea14e1973c253\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"compileApiVersion\",\"_value\":10,\"_valueType\":\"number\",\"_hash\":\"4fdb2d89c4c44dbf8c5dffe16d03220b\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"customTypes\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"970a2695bffac1c5a4fa283dc36050e3\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"deviceType\",\"_value\":[\"default\",\"tablet\"],\"_valueType\":\"object\",\"_hash\":\"3f44547af15457ff8e1ec09282ca9922\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"isSupportOhpmProj\",\"_value\":true,\"_valueType\":\"boolean\",\"_hash\":\"f3a249d7e3f751316e931b8a08b074b4\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"profileModuleName\",\"_value\":\"sqflite\",\"_valueType\":\"string\",\"_hash\":\"cc764aa319e2ba6b464ea7ceeb9f1bb6\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"sdkToolchainsComponentVersion\",\"_value\":\"4.0.0.40\",\"_valueType\":\"string\",\"_hash\":\"9822dc2efe3bc5434b273057d46ed8e2\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"targetStatusCode\",\"_value\":2,\"_valueType\":\"number\",\"_hash\":\"5a9255c0f4ee50904a9349ebafca8369\"}"}],"_successful":true,"_projectName":"ohos","_moduleName":"sqflite","_taskName":"default@PreBuild","_key":":ohos:sqflite:default@PreBuild","_executionId":":ohos:sqflite:default@PreBuild:1706084761836","_inputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\AppScope\\app.json5",{"isDirectory":false,"fileSnapShotHashValue":"08fc0c1cb05d3261806ebb63e4714bac"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\module.json5",{"isDirectory":false,"fileSnapShotHashValue":"e1023c7c6717335313fe49e930dd5ae0"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\oh-package.json5",{"fileSnapShotHashValue":"e16f6cf494828bc7c0aa74c69f614ca5"}]]},"_outputFiles":{"dataType":"Map","value":[]}},":ohos:sqflite:default@MergeProfile":{"_inputs":[{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_COMMAND\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"0b5d05294fdf4e78e8482ef53eb64ac0\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_ENV\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"cdcdc2ec8062ca9ec1de46dbf2bbc053\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_TOOLCHAIN\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"e7f94a9422a8bc317a7d90b58efcb5f6\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"asanEnable\",\"_value\":false,\"_valueType\":\"boolean\",\"_hash\":\"bc2129ba20a21b7e5234139ede1b4d7b\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"buildRoot\",\"_value\":\"build\",\"_valueType\":\"string\",\"_hash\":\"4c2dd7bb7507f74001ec27f2936db7f9\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"compatibleSdkVersion\",\"_value\":10,\"_valueType\":\"number\",\"_hash\":\"8ca3e69374439355c4f1b77ba4fb3435\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"isDebug\",\"_value\":true,\"_valueType\":\"boolean\",\"_hash\":\"edbf05a2d2be2c385e75d9565a48d419\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"isHarModule\",\"_value\":true,\"_valueType\":\"boolean\",\"_hash\":\"02f77a1e25718bf2a5689a57185f47f6\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"multiProjects\",\"_value\":false,\"_valueType\":\"boolean\",\"_hash\":\"555604752defc243b4e4c55d1549fc06\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"releaseType\",\"_value\":\"Release\",\"_valueType\":\"string\",\"_hash\":\"bbcabdda034e97584f8c36f85b3ec517\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"targetSdkVersion\",\"_value\":10,\"_valueType\":\"number\",\"_hash\":\"68a4d173dd33897f0e74ffeae724b180\"}"}],"_successful":true,"_projectName":"ohos","_moduleName":"sqflite","_taskName":"default@MergeProfile","_key":":ohos:sqflite:default@MergeProfile","_executionId":":ohos:sqflite:default@MergeProfile:1706084761929","_inputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\AppScope\\app.json5",{"fileSnapShotHashValue":"08fc0c1cb05d3261806ebb63e4714bac"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\module.json5",{"fileSnapShotHashValue":"e1023c7c6717335313fe49e930dd5ae0"}]]},"_outputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\merge_profile\\default\\module.json",{"fileSnapShotHashValue":"9ec0158bb31dc6e972a74673f5e99f40"}]]}},":ohos:sqflite:default@LintArkTS":{"_inputs":[{"dataType":"ValueEntry","value":"{\"_name\":\"customTypes\",\"_value\":\"\",\"_valueType\":\"string\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_COMMAND\",\"_value\":\"\",\"_valueType\":\"string\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_TOOLCHAIN\",\"_value\":\"\",\"_valueType\":\"string\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_ENV\",\"_value\":\"\",\"_valueType\":\"string\"}"}],"_successful":true,"_projectName":"ohos","_moduleName":"sqflite","_taskName":"default@LintArkTS","_key":":ohos:sqflite:default@LintArkTS","_executionId":":ohos:sqflite:default@LintArkTS:1706084843915","_inputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\ets",{"isDirectory":true,"fileSnapShotHashValue":"2b00464badb6d6c698553adbb3771ef9"}]]},"_outputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\loader_out\\default\\ets",{"isDirectory":true,"fileSnapShotHashValue":""}]]}},":ohos:sqflite:default@ProcessProfile":{"_inputs":[{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_COMMAND\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"0b5d05294fdf4e78e8482ef53eb64ac0\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_ENV\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"cdcdc2ec8062ca9ec1de46dbf2bbc053\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_TOOLCHAIN\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"e7f94a9422a8bc317a7d90b58efcb5f6\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"arkEnable\",\"_value\":true,\"_valueType\":\"boolean\",\"_hash\":\"750b4bda198545a67903dfb3f6a00a95\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"compileMode\",\"_value\":\"esmodule\",\"_valueType\":\"string\",\"_hash\":\"dacafc8e0b77a950178a0b4d142dc32c\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"dependency\",\"_value\":\"[]\",\"_valueType\":\"string\",\"_hash\":\"ac54f3d4ced2d4c1d666d40e4f7c454a\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"deviceTypes\",\"_value\":[\"default\",\"tablet\"],\"_valueType\":\"object\",\"_hash\":\"0342e19985c07130618d063695ce1f7c\"}"}],"_successful":true,"_projectName":"ohos","_moduleName":"sqflite","_taskName":"default@ProcessProfile","_key":":ohos:sqflite:default@ProcessProfile","_executionId":":ohos:sqflite:default@ProcessProfile:1706084761972","_inputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\merge_profile\\default\\module.json",{"fileSnapShotHashValue":"9ec0158bb31dc6e972a74673f5e99f40"}]]},"_outputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\process_profile\\default\\module.json",{"fileSnapShotHashValue":"8708fae7f796bca08fd5263aea8bc401"}]]}},":ohos:sqflite:default@ProcessResource":{"_inputs":[{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_COMMAND\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"0b5d05294fdf4e78e8482ef53eb64ac0\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_ENV\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"cdcdc2ec8062ca9ec1de46dbf2bbc053\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_TOOLCHAIN\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"e7f94a9422a8bc317a7d90b58efcb5f6\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"resConfigJsonContent\",\"_value\":\"{\\\"configPath\\\":\\\"E:\\\\\\\\work\\\\\\\\dev\\\\\\\\sqflite\\\\\\\\sqflite_ohos\\\\\\\\ohos\\\\\\\\sqflite\\\\\\\\build\\\\\\\\default\\\\\\\\intermediates\\\\\\\\process_profile\\\\\\\\default\\\\\\\\module.json\\\",\\\"packageName\\\":\\\"io.flutter.plugins.sqflite\\\",\\\"output\\\":\\\"E:\\\\\\\\work\\\\\\\\dev\\\\\\\\sqflite\\\\\\\\sqflite_ohos\\\\\\\\ohos\\\\\\\\sqflite\\\\\\\\build\\\\\\\\default\\\\\\\\intermediates\\\\\\\\res\\\\\\\\default\\\",\\\"moduleNames\\\":\\\"sqflite\\\",\\\"ResourceTable\\\":[\\\"E:\\\\\\\\work\\\\\\\\dev\\\\\\\\sqflite\\\\\\\\sqflite_ohos\\\\\\\\ohos\\\\\\\\sqflite\\\\\\\\build\\\\\\\\default\\\\\\\\generated\\\\\\\\r\\\\\\\\default\\\\\\\\ResourceTable.h\\\"],\\\"moduleResources\\\":[\\\"E:\\\\\\\\work\\\\\\\\dev\\\\\\\\sqflite\\\\\\\\sqflite_ohos\\\\\\\\ohos\\\\\\\\sqflite\\\\\\\\src\\\\\\\\main\\\\\\\\resources\\\"],\\\"dependencies\\\":[],\\\"iconCheck\\\":false,\\\"ids\\\":\\\"E:\\\\\\\\work\\\\\\\\dev\\\\\\\\sqflite\\\\\\\\sqflite_ohos\\\\\\\\ohos\\\\\\\\sqflite\\\\\\\\build\\\\\\\\default\\\\\\\\intermediates\\\\\\\\res\\\\\\\\default\\\\\\\\ids_map\\\",\\\"definedIds\\\":\\\"E:\\\\\\\\work\\\\\\\\dev\\\\\\\\sqflite\\\\\\\\sqflite_ohos\\\\\\\\ohos\\\\\\\\sqflite\\\\\\\\build\\\\\\\\default\\\\\\\\intermediates\\\\\\\\res\\\\\\\\default\\\\\\\\ids_map\\\\\\\\id_defined.json\\\"}\",\"_valueType\":\"string\",\"_hash\":\"3e08a541b1ae5877370094d990df2998\"}"}],"_successful":true,"_projectName":"ohos","_moduleName":"sqflite","_taskName":"default@ProcessResource","_key":":ohos:sqflite:default@ProcessResource","_executionId":":ohos:sqflite:default@ProcessResource:1706084762750","_inputFiles":{"dataType":"Map","value":[]},"_outputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\resConfig.json",{"isDirectory":false,"fileSnapShotHashValue":"c763be3e45afbcef276327a1204a3efc"}]]}},":ohos:sqflite:default@ProcessLibs":{"_inputs":[{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_COMMAND\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"0b5d05294fdf4e78e8482ef53eb64ac0\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_ENV\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"cdcdc2ec8062ca9ec1de46dbf2bbc053\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_TOOLCHAIN\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"e7f94a9422a8bc317a7d90b58efcb5f6\"}"}],"_successful":true,"_projectName":"ohos","_moduleName":"sqflite","_taskName":"default@ProcessLibs","_key":":ohos:sqflite:default@ProcessLibs","_executionId":":ohos:sqflite:default@ProcessLibs:1706084762752","_inputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\libs",{"isDirectory":true,"fileSnapShotHashValue":"f5ba89696ccaa77b8b52cf0cbb5d0671"}]]},"_outputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\libs\\default",{"isDirectory":true,"fileSnapShotHashValue":""}]]}},":ohos:sqflite:default@CompileResource":{"_inputs":[{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_COMMAND\",\"_value\":\"C:\\\\Users\\\\zblicq\\\\AppData\\\\Local\\\\Huawei\\\\Sdk\\\\openharmony\\\\10\\\\toolchains\\\\restool.exe,-l,E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\build\\\\default\\\\intermediates\\\\res\\\\default\\\\resConfig.json\",\"_valueType\":\"string\",\"_hash\":\"e7447aba3ccc014983986674fe0a441f\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_ENV\",\"_value\":\"\",\"_valueType\":\"string\",\"_hash\":\"cdcdc2ec8062ca9ec1de46dbf2bbc053\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_TOOLCHAIN\",\"_value\":\"C:\\\\Users\\\\zblicq\\\\AppData\\\\Local\\\\Huawei\\\\Sdk\\\\openharmony\\\\10\\\\toolchains\\\\restool.exe\",\"_valueType\":\"string\",\"_hash\":\"d7036cae244f45620e0792ecb179d0f8\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"TARGET_CONFIG\",\"_value\":\"{\\\"name\\\":\\\"default\\\"}\",\"_valueType\":\"string\",\"_hash\":\"ebe85c5c20c0e5d9e03bc5dc7135f953\"}"}],"_successful":true,"_projectName":"ohos","_moduleName":"sqflite","_taskName":"default@CompileResource","_key":":ohos:sqflite:default@CompileResource","_executionId":":ohos:sqflite:default@CompileResource:1706084762758","_inputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources",{"fileSnapShotHashValue":"2a08f3fd80934e41ce42e4ae61c075a9"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\process_profile\\default\\module.json",{"isDirectory":false,"fileSnapShotHashValue":"8708fae7f796bca08fd5263aea8bc401"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\resConfig.json",{"isDirectory":false,"fileSnapShotHashValue":"c763be3e45afbcef276327a1204a3efc"}]]},"_outputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default",{"isDirectory":true,"fileSnapShotHashValue":"1a917d0b6327f3a2b1d2e8d2f80bf2c0"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\generated\\r\\default\\ResourceTable.h",{"isDirectory":false,"fileSnapShotHashValue":"50c6ac3d27fad616b62c9d0be15592ee"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\generated\\r\\default",{"isDirectory":true,"fileSnapShotHashValue":"bc8c85335f93baaad1b41ccf91b2c2ff"}]]}},":ohos:sqflite:default@PackageHar":{"_inputs":[{"dataType":"ValueEntry","value":"{\"_name\":\"hasNativeOption\",\"_value\":false,\"_valueType\":\"boolean\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"needCppTypes\",\"_value\":false,\"_valueType\":\"boolean\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"harModuleJson\",\"_value\":\"E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\build\\\\default\\\\cache\\\\default\\\\default@PackageHar\\\\src\\\\main\\\\module.json5\",\"_valueType\":\"string\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"isOhpmProject\",\"_value\":true,\"_valueType\":\"boolean\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"artifactType\",\"_value\":\"original\",\"_valueType\":\"string\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_COMMAND\",\"_value\":\"C:\\\\Program Files\\\\nodejs\\\\npm.cmd,pack\",\"_valueType\":\"string\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_TOOLCHAIN\",\"_value\":\"\",\"_valueType\":\"string\"}"},{"dataType":"ValueEntry","value":"{\"_name\":\"BUILTIN_TASK_ENV\",\"_value\":\"cwd:E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\build\\\\default\\\\cache\\\\default\\\\default@PackageHar;\",\"_valueType\":\"string\"}"}],"_successful":true,"_projectName":"ohos","_moduleName":"sqflite","_taskName":"default@PackageHar","_key":":ohos:sqflite:default@PackageHar","_executionId":":ohos:sqflite:default@PackageHar:1706084858014","_inputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\merge_profile\\default",{"isDirectory":true,"fileSnapShotHashValue":"d5c29615da1bf0bbf1b608f8dbc24289"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite",{"isDirectory":true,"test":{"dataType":"RegExp","value":"^(?!E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\libs|E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\build|E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\node_modules|E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\oh_modules|E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\.cxx|E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\.previewer|E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\.hvigor|E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\.gitignore|E:\\\\work\\\\dev\\\\sqflite\\\\sqflite_ohos\\\\ohos\\\\sqflite\\\\.ohpmignore).*"},"fileSnapShotHashValue":"faa13fe2720afa4cd4c37f24bb69395d"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\libs\\default",{"isDirectory":true,"fileSnapShotHashValue":""}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\ResourceTable.txt",{"isDirectory":false,"fileSnapShotHashValue":"9b952ab620271ba35152dde2e2382a5f"}]]},"_outputFiles":{"dataType":"Map","value":[["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@PackageHar",{"isDirectory":true,"fileSnapShotHashValue":"020b62e35af28e1319cf220224432027"}],["E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\outputs\\default",{"isDirectory":true,"fileSnapShotHashValue":"1549567cdb9e156e5ba529427fd190f3"}]]}}} \ No newline at end of file diff --git a/sqflite/ohos/.hvigor/outputs/logs/details/details.json b/sqflite/ohos/.hvigor/outputs/logs/details/details.json deleted file mode 100644 index 9dcc913ae02cccb7526030806f10515eb596b818..0000000000000000000000000000000000000000 --- a/sqflite/ohos/.hvigor/outputs/logs/details/details.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "totalTime": 14836247400, - "moduleNum": 1, - "taskTime": { - "compileArkTS": 0, - "buildArkTS": 0, - "compileJS": 0, - "buildJS": 0, - "compileResource": 0, - "packageHap": 0, - "signHap": 0 - }, - "isIncremental": true, - "hasIncremental": true, - "isParallel": true -} \ No newline at end of file diff --git a/sqflite/ohos/.hvigor/outputs/sync/output.json b/sqflite/ohos/.hvigor/outputs/sync/output.json deleted file mode 100644 index 58131057f87295b6c3a0dc60e986b086dc77abc7..0000000000000000000000000000000000000000 --- a/sqflite/ohos/.hvigor/outputs/sync/output.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "ohos-module-sqflite": { - "SELECT_TARGET": "default", - "MODULE_BUILD_DIR": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build", - "TARGETS": { - "default": { - "SOURCE_ROOT": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main", - "RESOURCES_PATH": [ - "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\src\\main\\resources" - ], - "BUILD_PATH": { - "OUTPUT_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\outputs\\default", - "INTERMEDIA_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates", - "JS_ASSETS_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\loader_out\\default", - "JS_LITE_ASSETS_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\loader_out_lite\\default", - "RES_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default", - "RES_PROFILE_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\res\\default\\resources\\base\\profile", - "ETS_SUPER_VISUAL_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@CompileArkTS\\esmodule", - "JS_SUPER_VISUAL_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\cache\\default\\default@CompileJS\\jsbundle", - "WORKER_LOADER": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\loader\\default\\loader.json", - "MANIFEST_JSON": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\manifest\\default", - "OUTPUT_METADATA_JSON": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\sqflite\\build\\default\\intermediates\\hap_metadata\\default\\output_metadata.json" - }, - "BUILD_OPTION": { - "debuggable": true - } - } - } - }, - "ohos-project": { - "SELECT_PRODUCT_NAME": "default", - "MODULE_BUILD_DIR": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\build", - "BUNDLE_NAME": "io.flutter.plugins.sqflite", - "BUILD_PATH": { - "OUTPUT_PATH": "E:\\work\\dev\\sqflite\\sqflite_ohos\\ohos\\build\\outputs\\default" - } - }, - "version": 1 -} \ No newline at end of file diff --git a/sqflite/ohos/.hvigor/report/report.json b/sqflite/ohos/.hvigor/report/report.json deleted file mode 100644 index 4d64efa5f21ed9de01451bdac04ba4895c019ed3..0000000000000000000000000000000000000000 --- a/sqflite/ohos/.hvigor/report/report.json +++ /dev/null @@ -1,308 +0,0 @@ -{ - "version": "1.0", - "workLog": [ - { - "type": "work", - "time": "[2024-01-24T16:27:38.007]", - "workerId": 0, - "content": "[2024-01-24T16:27:38.007] > hvigor \u001b[32m\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/Log.ets:50:50\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/Log.ets:64:50\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/Log.ets:78:50\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/Log.ets:92:50\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/Log.ets:106:50\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:72:12\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:74:120\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:135:71\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:135:137\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:136:44\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:140:58\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:140:111\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:141:44\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:186:15\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets:195:15\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewFactory.ets:21:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewFactory.ets:24:45\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewFactory.ets:38:73\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewFactory.ets:41:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/ToolUtils.ets:21:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets:29:9\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets:31:37\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets:36:26\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets:40:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets:40:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets:52:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets:52:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCodec.ets:52:33\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCodec.ets:64:78\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCodec.ets:77:92\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCodec.ets:86:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/FlutterException.ets:21:12\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/FlutterException.ets:23:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:63:67\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:67:28\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:73:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:98:43\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:98:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:155:34\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:159:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:159:50\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:164:34\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:220:36\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:234:56\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:238:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:241:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:244:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:247:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:250:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:253:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:257:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:261:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:265:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:275:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:285:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:295:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:300:34\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:304:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:309:30\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:309:40\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:313:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets:323:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMethodCodec.ets:60:33\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMethodCodec.ets:67:78\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMethodCodec.ets:80:92\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMethodCodec.ets:94:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodChannel.ets:60:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodChannel.ets:142:21\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodChannel.ets:153:66\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodChannel.ets:199:27\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodChannel.ets:203:72\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMessageCodec.ets:34:26\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMessageCodec.ets:41:40\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:38:33\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:52:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:53:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:64:33\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:68:34\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:68:80\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:72:92\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:76:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:80:13\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:81:18\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:83:13\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:84:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:85:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets:86:37\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterNapi.ets:222:9\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterNapi.ets:282:22\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets:85:15\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets:88:11\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets:115:15\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets:116:9\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/TextInputPlugin.ets:130:20\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/TextInputPlugin.ets:138:20\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets:70:11\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets:119:70\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets:223:25\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets:297:34\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets:333:43\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:391:17\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:392:13\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:394:26\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:399:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:405:15\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:409:15\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:412:26\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:417:13\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:419:26\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets:464:49\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/SystemChannel.ets:29:44\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets:98:27\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets:102:72\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets:169:53\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets:170:33\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets:42:45\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets:42:84\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets:44:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets:44:93\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:61:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:132:36\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:144:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:161:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:175:23\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:206:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:430:36\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:433:28\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:460:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:461:33\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets:545:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/OhosTouchProcessor.ets:25:59\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicViewJson.ets:34:67\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicViewJson.ets:34:139\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicViewJson.ets:34:158\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicViewJson.ets:35:46\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicViewJson.ets:60:52\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets:23:19\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets:43:18\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets:44:14\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets:46:48\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets:46:71\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets:53:34\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets:47:64\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets:47:135\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets:48:44\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets:52:71\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets:52:137\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets:53:44\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets:30:34\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets:126:15\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets:127:11\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets:129:59\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets:129:77\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsController.ets:133:64\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsController.ets:133:135\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsController.ets:134:44\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsController.ets:288:9\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:27:45\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:28:28\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:45:12\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:47:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:87:35\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:95:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:96:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:102:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:102:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:104:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:104:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:110:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:123:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:124:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:131:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:131:49\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:133:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:133:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:139:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:152:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:153:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:159:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:159:49\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:161:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:161:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:167:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:180:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:181:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:187:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:187:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:189:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:189:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:207:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:220:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:221:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:227:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:227:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:229:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:229:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:235:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:248:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:249:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:255:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:255:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:257:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:257:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:263:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:277:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:278:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:284:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:284:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:286:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:286:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:292:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:305:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:306:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:312:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:312:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:314:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:314:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:321:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:335:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:336:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:342:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:342:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:344:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:344:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:351:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:365:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:366:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:372:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:372:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:374:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:374:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:380:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:394:42\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:395:31\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:401:38\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:401:55\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:403:32\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:403:54\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[33mWARN: \u001b[33mArkTS:WARN File: E:/work/dev/sqflite/sqflite_ohos/ohos/sqflite/src/main/ets/io/flutter/plugins/sqflite/Messages.ets:410:41\n Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)\n\u001b[39m\r\n\u001b[39m\n", - "taskPath": "sqflite", - "taskName": "default@LintArkTS", - "taskCompletePath": "sqflite:default@LintArkTS" - } - ], - "workerIdList": [ - -1, - 0 - ], - "metrics": [ - { - "type": "build_line", - "endTime": 1706084761928, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@PreBuild", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084761836 - }, - { - "type": "build_line", - "endTime": 1706084761933, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@MergeProfile", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084761929 - }, - { - "type": "build_line", - "endTime": 1706084761934, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@BuildNativeWithCmake", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084761934 - }, - { - "type": "build_line", - "endTime": 1706084762749, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@ProcessProfile", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084761972 - }, - { - "type": "build_line", - "endTime": 1706084762750, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@BuildNativeWithNinja", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084762749 - }, - { - "type": "build_line", - "endTime": 1706084762752, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@ProcessResource", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084762750 - }, - { - "type": "build_line", - "endTime": 1706084762758, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@ProcessLibs", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084762752 - }, - { - "type": "build_line", - "endTime": 1706084764873, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@CompileResource", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084762758 - }, - { - "type": "build_line", - "endTime": 1706084764874, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@ProcessObfuscationFiles", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084764874 - }, - { - "type": "build_line", - "endTime": 1706084776579, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@LintArkTS", - "taskPath": "sqflite", - "workerId": 0, - "startTime": 1706084761972 - }, - { - "type": "default", - "endTime": 1706084776579, - "status": "closed", - "children": [ - { - "type": "build_line", - "endTime": 1706084776579, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@LintArkTS", - "taskPath": "sqflite", - "workerId": 0, - "startTime": 1706084761972 - } - ], - "name": "overallTime", - "taskName": "default@LintArkTS", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084761934 - }, - { - "type": "build_line", - "endTime": 1706084843911, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@PreBuild", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843908 - }, - { - "type": "build_line", - "endTime": 1706084843913, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@MergeProfile", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843911 - }, - { - "type": "build_line", - "endTime": 1706084843914, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@BuildNativeWithCmake", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843913 - }, - { - "type": "build_line", - "endTime": 1706084843937, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@ProcessProfile", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843935 - }, - { - "type": "build_line", - "endTime": 1706084843937, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@BuildNativeWithNinja", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843937 - }, - { - "type": "build_line", - "endTime": 1706084843938, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@ProcessResource", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843937 - }, - { - "type": "build_line", - "endTime": 1706084843940, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@ProcessLibs", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843938 - }, - { - "type": "build_line", - "endTime": 1706084843950, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@CompileResource", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843941 - }, - { - "type": "build_line", - "endTime": 1706084843950, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@ProcessObfuscationFiles", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843950 - }, - { - "type": "build_line", - "endTime": 1706084858009, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@LintArkTS", - "taskPath": "sqflite", - "workerId": 0, - "startTime": 1706084843935 - }, - { - "type": "default", - "endTime": 1706084858009, - "status": "closed", - "children": [ - { - "type": "build_line", - "endTime": 1706084858009, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@LintArkTS", - "taskPath": "sqflite", - "workerId": 0, - "startTime": 1706084843935 - } - ], - "name": "overallTime", - "taskName": "default@LintArkTS", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084843914 - }, - { - "type": "build_line", - "endTime": 1706084858104, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "default@PackageHar", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084858013 - }, - { - "type": "build_line", - "endTime": 1706084858105, - "status": "closed", - "children": [], - "name": "overallTime", - "taskName": "assembleHar", - "taskPath": "sqflite", - "workerId": -1, - "startTime": 1706084858105 - } - ] -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/build-profile.json5 b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/build-profile.json5 deleted file mode 100644 index 95e376706d75437dce67c79dfd886e97fa82f276..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/build-profile.json5 +++ /dev/null @@ -1,26 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -{ - "apiType": "stageMode", - "buildOption": { - }, - "targets": [ - { - "name": "default", - "runtimeOS": "HarmonyOS" - } - ], -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/hvigorfile.ts b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/hvigorfile.ts deleted file mode 100644 index eb1f1d089d8fbdcd5ea7af33ecb70f3c8b5bdfce..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/hvigorfile.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. -export { harTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/index.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/index.ets deleted file mode 100644 index 3c96b70703b57d3e53a171aabf07727db248e94b..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/index.ets +++ /dev/null @@ -1,18 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export { FlutterAbility } from './src/main/ets/embedding/ohos/FlutterAbility' - -export { FlutterPage } from './src/main/ets/embedding/ohos/FlutterPage' diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/oh-package.json5 b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/oh-package.json5 deleted file mode 100644 index 8c53bcea950310b995e8dbde1f7cce6675f36377..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/oh-package.json5 +++ /dev/null @@ -1,27 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -{ - "license": "Apache-2.0", - "author": "", - "name": "flutter", - "description": "Please describe the basic information.", - "main": "index.ets", - "version": "1.0.0", - "dependencies": {}, - "devDependencies": { - "@types/libflutter.so": "file:./src/main/cpp/types/libflutter" - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/index.d.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/index.d.ets deleted file mode 100644 index 7eba67a0d0c2b2959e5875d6646807a8045586bc..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/index.d.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import common from '@ohos.app.ability.common'; -import resourceManager from '@ohos.resourceManager'; -import image from '@ohos.multimedia.image'; -import FlutterNapi from '../../../ets/embedding/engine/FlutterNapi'; - -export const getContext: (a: number) => napiContext; - -export class napiContext { - onPageShow(); - - onPageHide(); -} - -/** - * 设置刷新率 - */ -export const nativeUpdateRefreshRate: ( - ate: number -) => void; - -/** - * 初始化dart vm和flutter engine - */ -export const nativeInit: ( - context: common.Context, - args: Array, - bundlePath: string, - appStoragePath: string, - engineCachesPath: string, - initTimeMillis: number -) => void; - -export const nativeAttach: (napi: FlutterNapi) => number; - -export const nativeSpawn: ( - nativeSpawningShellId: number | null, - entrypointFunctionName: string, - pathToEntrypointFunction: string, - initialRoute: string, - entrypointArgs: Array -) => number; - -export const nativeRunBundleAndSnapshotFromLibrary: ( - nativeShellHolderId: number, - bundlePath: string, - entrypointFunctionName: string, - pathToEntrypointFunction: string, - assetManager: resourceManager.ResourceManager, - entrypointArgs: Array -) => void; - -//Send a data-carrying response to a platform message received from Dart. -export const nativeInvokePlatformMessageResponseCallback: (nativeShellHolderId: number, responseId: number, message: ArrayBuffer, position: number) => void; - -// Send an empty response to a platform message received from Dart. -export const nativeInvokePlatformMessageEmptyResponseCallback: (nativeShellHolderId: number, responseId: number) => void; - -// Send a data-carrying platform message to Dart. -export const nativeDispatchPlatformMessage: (nativeShellHolderId: number, channel: String, message: ArrayBuffer, position: number, responseId: number) => void; - -// Send an empty platform message to Dart. -export const nativeDispatchEmptyPlatformMessage: (nativeShellHolderId: number, channel: String, responseId: number) => void; - -export const nativeSetViewportMetrics: (nativeShellHolderId: number, devicePixelRatio: number, physicalWidth: number - , physicalHeight: number, physicalPaddingTop: number, physicalPaddingRight: number - , physicalPaddingBottom: number, physicalPaddingLeft: number, physicalViewInsetTop: number - , physicalViewInsetRight: number, physicalViewInsetBottom: number, physicalViewInsetLeft: number - , systemGestureInsetTop: number, systemGestureInsetRight: number, systemGestureInsetBottom: number - , systemGestureInsetLeft: number, physicalTouchSlop: number, displayFeaturesBounds: Array - , displayFeaturesType: Array, displayFeaturesState: Array) => void; - -export const nativeImageDecodeCallback: (width: number, height: number, imageGeneratorPointer: number, pixelMap : image.PixelMap | null) => void; - -export const nativeGetSystemLanguages: (nativeShellHolderId: number, languages: Array) => void; \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/index_actual.d.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/index_actual.d.ets deleted file mode 100644 index afab18030d24d6263139b464623c36cbd8ace369..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/index_actual.d.ets +++ /dev/null @@ -1,267 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import common from '@ohos.app.ability.common'; -import resourceManager from '@ohos.resourceManager'; -import FlutterNapi from '../../../ets/embedding/engine/FlutterNapi'; -import image from '@ohos.multimedia.image'; - -/** - * 设置刷新率 - */ -export const nativeUpdateRefreshRate: ( - ate: number -) => void; - -/** - * 初始化dart vm和flutter engine - */ -export const nativeInit: ( - context: common.Context, - args: Array, - bundlePath: string, - appStoragePath: string, - engineCachesPath: string, - initTimeMillis: number -) => void; - - -/** - * 加载dart工程构建产物 - */ -export const nativeRunBundleAndSnapshotFromLibrary: ( - bundlePath: string, - entrypointFunctionName: string, - pathToEntrypointFunction: string, - assetManager: resourceManager.ResourceManager, - entrypointArgs: Array -) => void; - -/** - * 初始化SkFontMgr::RefDefault(),skia引擎文字管理初始化 - */ -export const nativePrefetchDefaultFontManager: () => void; - -/** - * 返回是否支持软件绘制 - */ -export const nativeGetIsSoftwareRenderingEnabled: () => boolean; - -/** - * attach flutterNapi实例给到 native engine,这个支持rkts到flutter平台的无关引擎之间的通信。 - * attach只需要执行一次 - */ -export const nativeAttach: (flutterNapi: FlutterNapi) => number; - -/** - * 从当前的flutterNapi复制一个新的实例 - */ -export const nativeSpawn: ( - nativeSpawningShellId: number, - entrypointFunctionName: string, - pathToEntrypointFunction: string, - initialRoute: string, - entrypointArgs: Array -) => number; - -/** - * Detaches flutterNapi和engine之间的关联 - * 这个方法执行前提是flutterNapi已经和engine关联 - */ -export const nativeDestroy: ( - nativeShellHolderId: number -) => void; - -// 不需要实现,未使用到 -// export const nativeImageHeaderCallback: ( -// imageGeneratorPointer: number, -// width: number, -// height: number -// ) => void; - -/** - * 不需要实现,c++层已有nativeSurface回调 - */ -// export const nativeSurfaceCreated: ( -// nativeShellHolderId: number -// ) => void; - - -/** - * 不需要实现,c++层已有nativeSurface回调 - */ -// export const nativeSurfaceWindowChanged: ( -// nativeShellHolderId: number -// ) => void; - - -/** - * 不需要实现,c++层已有nativeSurface回调 - */ -// export const nativeSurfaceChanged: ( -// nativeShellHolderId: number, -// width: number, -// height: number -// ) => void; - -/** - * 不需要实现,c++层已有nativeSurface回调 - */ -// export const nativeSurfaceDestroyed: ( -// nativeShellHolderId: number -// ) => void; - -/** - * 把物理屏幕参数通知到native - */ -export const nativeSetViewportMetrics: ( - nativeShellHolderId: number, - devicePixelRatio: number, - physicalWidth: number, - physicalHeight: number, - physicalPaddingTop: number, - physicalPaddingRight: number, - physicalPaddingBottom: number, - physicalPaddingLeft: number, - physicalViewInsetTop: number, - physicalViewInsetRight: number, - physicalViewInsetBottom: number, - physicalViewInsetLeft: number, - systemGestureInsetTop: number, - systemGestureInsetRight: number, - systemGestureInsetBottom: number, - systemGestureInsetLeft: number, - physicalTouchSlop: number, - displayFeaturesBounds: Array, - displayFeaturesType: Array, - displayFeaturesState: Array -) => void; - -/** - * 设置能力参数 - */ -export const nativeSetAccessibilityFeatures: ( - nativeShellHolderId: number, - flags: number -) => void; - -/** - * 清除某个messageData - */ -export const nativeCleanupMessageData: ( - messageData: number -) => void; - -/** - * 发送一个空的PlatformMessage - */ -export const nativeDispatchEmptyPlatformMessage: ( - nativeShellHolderId: number, - channel: string, - responseId: number -) => void; - -/** - * 发送一个PlatformMessage - */ -export const nativeDispatchPlatformMessage: ( - nativeShellHolderId: number, - channel: string, - message: ArrayBuffer, - position: number, - responseId: number -) => void; - -/** - * 空的PlatformMessage响应回调 - */ -export const nativeInvokePlatformMessageEmptyResponseCallback: ( - nativeShellHolderId: number, - responseId: number -) => void; - -/** - * PlatformMessage响应回调 - */ -export const nativeInvokePlatformMessageResponseCallback: ( - nativeShellHolderId: number, - responseId: number, - message: ArrayBuffer, - position: number -) => void; - - -/** - * load一个合法的.so文件到dart vm - */ -export const nativeLoadDartDeferredLibrary: ( - nativeShellHolderId: number, - loadingUnitId: number, - searchPaths: Array -) => void; - -/** - * 设置ResourceManager和assetBundlePath到engine - */ -export const nativeUpdateOhosAssetManager: ( - nativeShellHolderId: number, - resourceManager: resourceManager.ResourceManager, - assetBundlePath: string -) => void; - -/** - * 加载动态库,或者dart库失败时的通知 - */ -export const nativeDeferredComponentInstallFailure: ( - loadingUnitId: number, - error: string, - isTransient: boolean -) => void; - -/** - * 从engine获取当前绘制pixelMap - */ -export const nativeGetPixelMap: () => image.PixelMap; - -/** - * 应用低内存警告 - */ -export const nativeNotifyLowMemoryWarning: ( - nativeShellHolderId: number -) => void; - -// ----- Start FlutterTextUtils Methods ---- -/** - * 下面的方法,从键盘输入中判断当前字符是否是emoji,实现优先级低 - */ -export const nativeFlutterTextUtilsIsEmoji: ( - codePoint: number -) => boolean; - -export const nativeFlutterTextUtilsIsEmojiModifier: ( - codePoint: number -) => boolean; - -export const nativeFlutterTextUtilsIsEmojiModifierBase: ( - codePoint: number -) => boolean; - -export const nativeFlutterTextUtilsIsVariationSelector: ( - codePoint: number -) => boolean; - -export const nativeFlutterTextUtilsIsRegionalIndicator: ( - codePoint: number -) => boolean; \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/oh-package.json5 b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/oh-package.json5 deleted file mode 100644 index 5d1822ef86535e3d92242c5cb99af8dd46b2204f..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/cpp/types/libflutter/oh-package.json5 +++ /dev/null @@ -1,21 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -{ - "name": "libflutter.so", - "types": "./index.d.ets", - "version": "", - "description": "Please describe the basic information." -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/FlutterInjector.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/FlutterInjector.ets deleted file mode 100644 index 4e6f2f8b0e5dd765611d87ac3b2c2c552ff5adb2..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/FlutterInjector.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import FlutterNapi from './embedding/engine/FlutterNapi'; -import FlutterLoader from './embedding/engine/loader/FlutterLoader'; - -/** - * flutter相关主要类的单例持有,帮助实现自身和其他类的实例化管理 - */ -export default class FlutterInjector { - private static instance: FlutterInjector; - - private flutterLoader: FlutterLoader; - private flutterNapi: FlutterNapi; - - static getInstance(): FlutterInjector { - if (FlutterInjector.instance == null) { - FlutterInjector.instance = new FlutterInjector(); - } - return FlutterInjector.instance; - } - /** - * 初始化 - */ - private constructor() { - this.flutterNapi = new FlutterNapi(); - this.flutterLoader = new FlutterLoader(this.flutterNapi); - } - - getFlutterLoader(): FlutterLoader { - return this.flutterLoader; - } - - getFlutterNapi(): FlutterNapi { - return this.flutterNapi; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/app/FlutterPluginRegistry.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/app/FlutterPluginRegistry.ets deleted file mode 100644 index 2a2a44964d3903c884f533e2bed115a4b624b745..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/app/FlutterPluginRegistry.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -import { FlutterView } from '../view/FlutterView'; -import common from '@ohos.app.ability.common'; -import PlatformViewController from '../plugin/platform/PlatformViewsController' - -export default class FlutterPluginRegistry { - private mPlatformViewsController: PlatformViewController; - private mFlutterView: FlutterView; - private mContext: common.Context; - - constructor() { - this.mPlatformViewsController = new PlatformViewController(); - } - - attach(flutterView: FlutterView, context: common.Context): void { - this.mFlutterView = flutterView; - this.mContext = context; - } - - detach(): void { - this.mPlatformViewsController.detach(); - this.mPlatformViewsController.onDetachedFromNapi(); - this.mFlutterView = null; - this.mContext = null; - } - - destroy(): void { - this.mPlatformViewsController.onDetachedFromNapi(); - } - - onPreEngineRestart(): void{ - this.mPlatformViewsController.onPreEngineRestart(); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/component/FlutterComponent.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/component/FlutterComponent.ets deleted file mode 100644 index 07497e672b21c51727c1a45166504e19603e4063..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/component/FlutterComponent.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/** - * 基础component,还未封装,看情况是否使用 - */ -@Component -export default struct FlutterComponent { - build() { - Row() { - Column() { - Text("xxx") - .fontSize(50) - .fontWeight(FontWeight.Bold) - } - .width('100%') - } - .height('100%') - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine.ets deleted file mode 100644 index 47ff37a1cf3e1af16dc6cfd4b42e17851abd9015..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngine.ets +++ /dev/null @@ -1,277 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import LifecycleChannel from './systemchannels/LifecycleChannel'; -import DartExecutor, { DartEntrypoint } from './dart/DartExecutor'; -import FlutterShellArgs from './FlutterShellArgs'; -import FlutterInjector from '../../FlutterInjector'; -import FlutterLoader from './loader/FlutterLoader'; -import common from '@ohos.app.ability.common'; -import resourceManager from '@ohos.resourceManager'; -import FlutterNapi from './FlutterNapi'; -import NavigationChannel from './systemchannels/NavigationChannel'; -import Log from '../../util/Log'; -import TestChannel from './systemchannels/TestChannel' -import FlutterEngineConnectionRegistry from './FlutterEngineConnectionRegistry'; -import PluginRegistry from './plugins/PluginRegistry'; -import AbilityControlSurface from './plugins/ability/AbilityControlSurface'; -import TextInputChannel from './systemchannels/TextInputChannel'; -import TextInputPlugin from '../../plugin/editing/TextInputPlugin'; -import PlatformChannel from './systemchannels/PlatformChannel'; -import FlutterEngineGroup from './FlutterEngineGroup'; -import SystemChannel from './systemchannels/SystemChannel'; -import MouseCursorChannel from './systemchannels/MouseCursorChannel'; -import RestorationChannel from './systemchannels/RestorationChannel'; -import LocalizationChannel from './systemchannels/LocalizationChannel'; -import AccessibilityChannel from './systemchannels/AccessibilityChannel'; -import LocalizationPlugin from '../../plugin/localization/LocalizationPlugin' -import SettingsChannel from './systemchannels/SettingsChannel'; -import PlatformViewsController from '../../plugin/platform/PlatformViewsController'; - -const TAG = "FlutterEngine"; - -/** - * 操作FlutterEngin相关 - */ -export default class FlutterEngine implements EngineLifecycleListener{ - private engineLifecycleListeners = new Set(); - - dartExecutor: DartExecutor; - private flutterLoader: FlutterLoader; - private assetManager: resourceManager.ResourceManager; - //channel定义 - private lifecycleChannel: LifecycleChannel | null = null; - private navigationChannel: NavigationChannel | null = null; - private textInputChannel: TextInputChannel | null = null; - private testChannel: TestChannel | null = null; - private platformChannel: PlatformChannel | null = null; - private systemChannel: SystemChannel | null = null; - private mouseCursorChannel: MouseCursorChannel | null = null; - private restorationChannel: RestorationChannel | null = null; - - private accessibilityChannel: AccessibilityChannel | null = null; - private localeChannel: LocalizationChannel | null = null; - private flutterNapi: FlutterNapi; - private pluginRegistry: FlutterEngineConnectionRegistry | null = null; - private textInputPlugin: TextInputPlugin | null = null; - private localizationPlugin: LocalizationPlugin | null = null; - private settingsChannel: SettingsChannel | null = null; - private platformViewsController: PlatformViewsController; - - /** - * 需要初始化的工作: - * 1、初始化DartExecutor - * 2、初始化所有channel - * 3、初始化plugin - * 4、初始化flutterLoader - * 5、初始化flutterNapi - * 6、engineLifecycleListeners - */ - constructor(context: common.Context, flutterLoader: FlutterLoader | null, flutterNapi: FlutterNapi | null, platformViewsController: PlatformViewsController) { - const injector: FlutterInjector = FlutterInjector.getInstance(); - - if(flutterNapi == null){ - flutterNapi = FlutterInjector.getInstance().getFlutterNapi(); - } - this.flutterNapi = flutterNapi; - this.assetManager = context.resourceManager; - - this.dartExecutor = new DartExecutor(this.flutterNapi, this.assetManager); - this.dartExecutor.onAttachedToNAPI(); - - if(flutterLoader == null){ - flutterLoader = injector.getFlutterLoader(); - } - this.flutterLoader = flutterLoader; - - if(platformViewsController == null) { - platformViewsController = new PlatformViewsController(); - } - this.platformViewsController = platformViewsController; - this.platformViewsController.attach(context, null, this.dartExecutor); - } - - async init(context: common.Context, dartVmArgs: Array | null, automaticallyRegisterPlugins: boolean, - waitForRestorationData: boolean, group: FlutterEngineGroup | null) { - if (!this.flutterNapi.isAttached()) { - await this.flutterLoader.startInitialization(context) - this.flutterLoader.ensureInitializationComplete(dartVmArgs); - } - //channel初始化 - this.lifecycleChannel = new LifecycleChannel(this.dartExecutor); - this.navigationChannel = new NavigationChannel(this.dartExecutor); - this.textInputChannel = new TextInputChannel(this.dartExecutor); - this.testChannel = new TestChannel(this.dartExecutor); - this.platformChannel = new PlatformChannel(this.dartExecutor); - this.systemChannel = new SystemChannel(this.dartExecutor); - this.mouseCursorChannel = new MouseCursorChannel(this.dartExecutor); - this.restorationChannel = new RestorationChannel(this.dartExecutor, waitForRestorationData); - this.settingsChannel = new SettingsChannel(this.dartExecutor); - - this.localeChannel = new LocalizationChannel(this.dartExecutor); - this.accessibilityChannel = new AccessibilityChannel(this.dartExecutor, this.flutterNapi); - this.flutterNapi.addEngineLifecycleListener(this); - this.localizationPlugin = new LocalizationPlugin(context, this.localeChannel); - - // It should typically be a fresh, unattached NAPI. But on a spawned engine, the NAPI instance - // is already attached to a native shell. In that case, the Java FlutterEngine is created around - // an existing shell. - if (!this.flutterNapi.isAttached()) { - this.attachToNapi(); - } - - this.pluginRegistry = new FlutterEngineConnectionRegistry(context.getApplicationContext(), this, this.flutterLoader, group!); - this.localizationPlugin.sendLocaleToFlutter(); - } - - private attachToNapi(): void { - Log.d(TAG, "Attaching to NAPI."); - this.flutterNapi.attachToNative(); - - if (!this.isAttachedToNapi()) { - throw new Error("FlutterEngine failed to attach to its native Object reference."); - } - this.flutterNapi.setLocalizationPlugin(this.localizationPlugin); - } - - async spawn(context: common.Context, - dartEntrypoint: DartEntrypoint, - initialRoute: string, - dartEntrypointArgs: Array, - platformViewsController: PlatformViewsController, - automaticallyRegisterPlugins: boolean, waitForRestorationData: boolean) { - if (!this.isAttachedToNapi()) { - throw new Error( - "Spawn can only be called on a fully constructed FlutterEngine"); - } - - const newFlutterNapi = - this.flutterNapi.spawn( - dartEntrypoint.dartEntrypointFunctionName, - dartEntrypoint.dartEntrypointLibrary, - initialRoute, - dartEntrypointArgs); - const flutterEngine = new FlutterEngine( - context, - null, - newFlutterNapi, - platformViewsController - ); - await flutterEngine.init(context, null, automaticallyRegisterPlugins, waitForRestorationData, null) - return flutterEngine - } - - private isAttachedToNapi(): boolean { - return this.flutterNapi.isAttached(); - } - - getLifecycleChannel(): LifecycleChannel | null { - return this.lifecycleChannel; - } - - getNavigationChannel(): NavigationChannel | null { - return this.navigationChannel; - } - - getTextInputChannel(): TextInputChannel | null { - return this.textInputChannel; - } - - getPlatformChannel(): PlatformChannel | null { - return this.platformChannel; - } - - getSystemChannel(): SystemChannel | null { - return this.systemChannel; - } - - getLocaleChannel(): LocalizationChannel | null { - return this.localeChannel; - } - - getMouseCursorChannel(): MouseCursorChannel | null { - return this.mouseCursorChannel; - } - - getFlutterNapi(): FlutterNapi { - return this.flutterNapi; - } - - getDartExecutor(): DartExecutor { - return this.dartExecutor - } - - getPlugins(): PluginRegistry | null { - return this.pluginRegistry; - } - - getAbilityControlSurface(): AbilityControlSurface | null { - return this.pluginRegistry; - } - - getSettingsChannel() { - return this.settingsChannel; - } - - onPreEngineRestart(): void { - - } - - onEngineWillDestroy(): void { - - } - - addEngineLifecycleListener(listener: EngineLifecycleListener): void { - this.engineLifecycleListeners.add(listener); - } - - removeEngineLifecycleListener(listener: EngineLifecycleListener): void { - this.engineLifecycleListeners.delete(listener); - } - - destroy(): void { - Log.d(TAG, "Destroying."); - this.engineLifecycleListeners.forEach(listener => listener.onEngineWillDestroy()) - this.flutterNapi.removeEngineLifecycleListener(this); - this.pluginRegistry?.detachFromAbility(); - this.platformViewsController?.onDetachedFromNapi(); - } - - getRestorationChannel(): RestorationChannel | null { - return this.restorationChannel; - } - - getAccessibilityChannel(): AccessibilityChannel | null { - return this.accessibilityChannel; - } - - getLocalizationPlugin(): LocalizationPlugin | null { - return this.localizationPlugin; - } - - getSystemLanguages(): void { - return this.flutterNapi.getSystemLanguages(); - } - - getPlatformViewsController(): PlatformViewsController | null { - return this.platformViewsController; - } -} - -export interface EngineLifecycleListener { - onPreEngineRestart(): void; - - onEngineWillDestroy(): void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineCache.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineCache.ets deleted file mode 100644 index 7808dfd8afa1f7ad23e003028409cc18758dd616..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineCache.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import FlutterEngine from "./FlutterEngine" - -export default class FlutterEngineCache { - private static instance : FlutterEngineCache; - private cachedEngines: Map = new Map(); - - static getInstance(): FlutterEngineCache { - if (FlutterEngineCache.instance == null) { - FlutterEngineCache.instance = new FlutterEngineCache(); - } - return FlutterEngineCache.instance; - } - /** - * 返回engineId对应的FlutterEngine是否存在 - */ - contains(engineId: String) : boolean { - return this.cachedEngines.has(engineId); - } - - /** - * 返回engineId对应的FlutterEngine - */ - get(engineId: String) : FlutterEngine | null { - return this.cachedEngines.get(engineId) || null; - } - /** - * 将传入的FlutterEngine与engineId放在缓存中 - */ - put(engineId :String, engine: FlutterEngine | null): void { - if(engine != null) { - this.cachedEngines.set(engineId, engine); - } else { - this.cachedEngines.delete(engineId); - } - } - /** - * 移除engineId对应的FlutterEngine - */ - remove(engineId: String) : void { - this.put(engineId, null); - } - - /** - * 移除cachedEngines所有中所有的FlutterEngine - */ - clear():void { - this.cachedEngines.clear(); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets deleted file mode 100644 index a596d2e25e9d8a52e564d63008663252c764b80e..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineConnectionRegistry.ets +++ /dev/null @@ -1,281 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import PluginRegistry from './plugins/PluginRegistry'; -import { FlutterAssets, FlutterPlugin, FlutterPluginBinding } from './plugins/FlutterPlugin'; -import FlutterEngine from './FlutterEngine'; -import AbilityAware from './plugins/ability/AbilityAware'; -import UIAbility from '@ohos.app.ability.UIAbility'; -import { - AbilityPluginBinding, - WindowFocusChangedListener, - OnSaveStateListener, - NewWantListener -} from './plugins/ability/AbilityPluginBinding'; -import HashSet from '@ohos.util.HashSet'; -import Want from '@ohos.app.ability.Want'; -import AbilityConstant from '@ohos.app.ability.AbilityConstant'; -import common from '@ohos.app.ability.common'; -import FlutterLoader from './loader/FlutterLoader'; -import Log from '../../util/Log'; -import ToolUtils from '../../util/ToolUtils'; -import AbilityControlSurface from './plugins/ability/AbilityControlSurface'; -import ExclusiveAppComponent from '../ohos/ExclusiveAppComponent'; -import FlutterEngineGroup from './FlutterEngineGroup'; - -const TAG = "FlutterEngineCxnRegstry"; - -export default class FlutterEngineConnectionRegistry implements PluginRegistry, AbilityControlSurface { - // PluginRegistry - private plugins = new Map(); - - private defaultPlugin : FlutterPlugin = new EmptyPlugin(); - - // Standard FlutterPlugin - private flutterEngine: FlutterEngine; - private pluginBinding: FlutterPluginBinding; - - // AbilityAware - private abilityAwarePlugins = new Map(); - - private exclusiveAbility: ExclusiveAppComponent | null = null; - private abilityPluginBinding: FlutterEngineAbilityPluginBinding | null = null; - - constructor(appContext: common.Context, flutterEngine: FlutterEngine, flutterLoader: FlutterLoader, group: FlutterEngineGroup) { - this.flutterEngine = flutterEngine; - this.pluginBinding = new FlutterPluginBinding(appContext, this.flutterEngine.getDartExecutor(), new DefaultFlutterAssets(flutterLoader), group, this.flutterEngine.getPlatformViewsController()?.getRegistry()); - } - - add(plugin: FlutterPlugin): void { - try { - if (this.has(plugin.getUniqueClassName())) { - Log.w( - TAG, - "Attempted to register plugin (" - + plugin - + ") but it was " - + "already registered with this FlutterEngine (" - + this.flutterEngine - + ")."); - return; - } - - Log.w(TAG, "Adding plugin: " + plugin); - // Add the plugin to our generic set of plugins and notify the plugin - // that is has been attached to an engine. - this.plugins.set(plugin.getUniqueClassName(), plugin); - plugin.onAttachedToEngine(this.pluginBinding); - - // For AbilityAware plugins, add the plugin to our set of AbilityAware - // plugins, and if this engine is currently attached to an Ability, - // notify the AbilityAware plugin that it is now attached to an Ability. - if (ToolUtils.implementsInterface(plugin, "onAttachedToAbility")) { - const abilityAware: ESObject = plugin; - this.abilityAwarePlugins.set(plugin.getUniqueClassName(), abilityAware); - if (this.isAttachedToAbility()) { - abilityAware.onAttachedToAbility(this.abilityPluginBinding); - } - } - } finally { - - } - } - - addList(plugins: Set): void { - plugins.forEach(plugin => this.add(plugin)) - } - - has(pluginClassName: string): boolean { - return this.plugins.has(pluginClassName); - } - - get(pluginClassName: string): FlutterPlugin { - return this.plugins.get(pluginClassName) ?? this.defaultPlugin; - } - - remove(pluginClassName: string): void { - const plugin = this.plugins.get(pluginClassName); - if (plugin == null) { - return; - } - if (ToolUtils.implementsInterface(plugin, "onAttachedToAbility")) { - if (this.isAttachedToAbility()) { - const abilityAware: ESObject = plugin; - abilityAware.onDetachedFromAbility(); - } - this.abilityAwarePlugins.delete(pluginClassName); - } - // Notify the plugin that is now detached from this engine. Then remove - // it from our set of generic plugins. - plugin.onDetachedFromEngine(this.pluginBinding); - this.plugins.delete(pluginClassName) - } - - removeList(pluginClassNames: Set): void { - pluginClassNames.forEach(plugin => this.remove(plugin)) - } - - removeAll(): void { - this.removeList(new Set(this.plugins.keys())); - this.plugins.clear(); - } - - private isAttachedToAbility(): boolean { - return this.exclusiveAbility != null; - } - - attachToAbility(exclusiveAbility: ExclusiveAppComponent): void { - if (this.exclusiveAbility != null) { - this.exclusiveAbility.detachFromFlutterEngine(); - } - // If we were already attached to an app component, detach from it. - this.detachFromAppComponent(); - this.exclusiveAbility = exclusiveAbility; - this.attachToAbilityInternal(exclusiveAbility.getAppComponent(),); - } - - detachFromAbility(): void { - if (this.isAttachedToAbility()) { - this.abilityAwarePlugins.forEach(abilityAware => abilityAware.onDetachedFromAbility()) - this.detachFromAbilityInternal(); - } else { - Log.e(TAG, "Attempted to detach plugins from an Ability when no Ability was attached."); - } - } - - onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void { - this.abilityPluginBinding?.onNewWant(want, launchParams); - } - - onWindowFocusChanged(hasFocus: boolean): void { - this.abilityPluginBinding?.onWindowFocusChanged(hasFocus); - } - - onSaveState(reason: AbilityConstant.StateType, wantParam: Record): AbilityConstant.OnSaveResult { - return this.abilityPluginBinding?.onSaveState(reason, wantParam) ?? AbilityConstant.OnSaveResult.ALL_REJECT; - } - - private detachFromAppComponent(): void { - if (this.isAttachedToAbility()) { - this.detachFromAbility(); - } - } - - private attachToAbilityInternal(ability: UIAbility): void { - this.abilityPluginBinding = new FlutterEngineAbilityPluginBinding(ability); - // Notify all AbilityAware plugins that they are now attached to a new Ability. - this.abilityAwarePlugins.forEach(abilityAware => abilityAware.onAttachedToAbility(this.abilityPluginBinding!)); - } - - private detachFromAbilityInternal(): void { - this.exclusiveAbility = null; - this.abilityPluginBinding = null; - } - - destroy(): void{ - this.detachFromAppComponent(); - // Remove all registered plugins. - this.removeAll(); - } -} - -class FlutterEngineAbilityPluginBinding implements AbilityPluginBinding { - private ability: UIAbility; - private onNewWantListeners = new HashSet(); - private onWindowFocusChangedListeners = new HashSet(); - private onSaveStateListeners = new HashSet(); - - constructor(ability: UIAbility) { - this.ability = ability; - - } - - getAbility(): UIAbility { - return this.ability; - } - - addOnNewWantListener(listener: NewWantListener): void { - this.onNewWantListeners.add(listener) - } - - removeOnNewWantListener(listener: NewWantListener): void { - this.onNewWantListeners.remove(listener) - } - - addOnWindowFocusChangedListener(listener: WindowFocusChangedListener): void { - this.onWindowFocusChangedListeners.add(listener) - } - - removeOnWindowFocusChangedListener(listener: WindowFocusChangedListener): void { - this.onWindowFocusChangedListeners.remove(listener) - } - - addOnSaveStateListener(listener: OnSaveStateListener) { - this.onSaveStateListeners.add(listener) - } - - removeOnSaveStateListener(listener: OnSaveStateListener) { - this.onSaveStateListeners.remove(listener) - } - - onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void { - this.onNewWantListeners.forEach((listener, key) => { - listener?.onNewWant(want, launchParams) - }); - } - - onWindowFocusChanged(hasFocus: boolean): void { - this.onWindowFocusChangedListeners.forEach((listener, key) => { - listener?.onWindowFocusChanged(hasFocus) - }); - } - - onSaveState(reason: AbilityConstant.StateType, wantParam: Record): AbilityConstant.OnSaveResult { - this.onSaveStateListeners.forEach((listener, key) => { - listener?.onSaveState(reason, wantParam) - }); - return AbilityConstant.OnSaveResult.ALL_AGREE; - } -} - -class DefaultFlutterAssets implements FlutterAssets { - private flutterLoader: FlutterLoader; - - constructor(flutterLoader: FlutterLoader) { - this.flutterLoader = flutterLoader; - } - - getAssetFilePathByName(assetFileName: string, packageName?: string): string { - return this.flutterLoader.getLookupKeyForAsset(assetFileName, packageName); - } - - getAssetFilePathBySubpath(assetSubpath: string, packageName?: string) { - return this.flutterLoader.getLookupKeyForAsset(assetSubpath, packageName); - } -} - -class EmptyPlugin implements FlutterPlugin { - getUniqueClassName(): string { - return ''; - } - - onAttachedToEngine(binding: FlutterPluginBinding) { - - } - - onDetachedFromEngine(binding: FlutterPluginBinding) { - - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineGroup.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineGroup.ets deleted file mode 100644 index f9fab12dccc6fa576049e08c5e971bea1f4f67b7..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineGroup.ets +++ /dev/null @@ -1,184 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import FlutterEngine, { EngineLifecycleListener } from "./FlutterEngine" -import common from '@ohos.app.ability.common' -import FlutterLoader from './loader/FlutterLoader' -import FlutterInjector from '../../FlutterInjector' -import { DartEntrypoint } from './dart/DartExecutor' -import PlatformViewsController from '../../plugin/platform/PlatformViewsController' -import ArrayList from '@ohos.util.ArrayList' - -export default class FlutterEngineGroup { - private activeEngines: ArrayList = new ArrayList(); - - constructor() { - - } - - async checkLoader(context: common.Context, args: Array) { - let loader: FlutterLoader = FlutterInjector.getInstance().getFlutterLoader(); - if (!loader.initialized) { - await loader.startInitialization(context.getApplicationContext()); - loader.ensureInitializationComplete(args); - } - } - - async createAndRunEngineByOptions(options: Options) { - let engine: FlutterEngine | null = null; - let context: common.Context = options.getContext(); - let dartEntrypoint: DartEntrypoint | null = options.getDartEntrypoint(); - let initialRoute: string = options.getInitialRoute(); - let dartEntrypointArgs: Array = options.getDartEntrypointArgs(); - let platformViewsController: PlatformViewsController | null = options.getPlatformViewsController(); - let automaticallyRegisterPlugins: boolean = options.getAutomaticallyRegisterPlugins(); - let waitForRestorationData: boolean = options.getWaitForRestorationData(); - - if (dartEntrypoint == null) { - dartEntrypoint = DartEntrypoint.createDefault(); - } - - if (platformViewsController == null) { - platformViewsController = new PlatformViewsController(); - } - - if (this.activeEngines.length == 0) { - engine = this.createEngine(context, platformViewsController); - await engine.init(context, null, // String[]. The Dart VM has already started, this arguments will have no effect. - automaticallyRegisterPlugins, // boolean. - waitForRestorationData, // boolean. - this) - if (initialRoute != null) { - engine.getNavigationChannel()?.setInitialRoute(initialRoute); - } - } else { - engine = await this.activeEngines[0] - .spawn( - context, - dartEntrypoint, - initialRoute, - dartEntrypointArgs, - platformViewsController, - automaticallyRegisterPlugins, - waitForRestorationData); - } - this.activeEngines.add(engine); - - const engineToCleanUpOnDestroy = engine; - let listener: EngineLifecycleListener = new EngineLifecycleListenerImpl( - platformViewsController, - this.activeEngines, - engineToCleanUpOnDestroy); - engine?.addEngineLifecycleListener(listener); - return engine; - } - - createEngine(context: common.Context, platformViewsController: PlatformViewsController): FlutterEngine { - return new FlutterEngine(context, null, null, platformViewsController); - } -} - -class EngineLifecycleListenerImpl implements EngineLifecycleListener { - private platformViewsController: PlatformViewsController; - private activeEngines: ArrayList = new ArrayList(); - private engine: FlutterEngine | null; - - constructor( - platformViewsController: PlatformViewsController, - activeEngines: ArrayList, - engine: FlutterEngine | null) { - this.platformViewsController = platformViewsController; - this.activeEngines = activeEngines; - this.engine = engine; - } - onPreEngineRestart(): void { - this.platformViewsController.onPreEngineRestart(); - } - onEngineWillDestroy(): void { - this.activeEngines.remove(this.engine); - } -} - -export class Options { - private context: common.Context; - private dartEntrypoint: DartEntrypoint | null = null; - private initialRoute: string = ''; - private dartEntrypointArgs: Array = []; - private platformViewsController: PlatformViewsController | null = null; - private automaticallyRegisterPlugins: boolean = true; - private waitForRestorationData: boolean = false; - - constructor(context: common.Context) { - this.context = context; - } - - getContext(): common.Context { - return this.context; - } - - getDartEntrypoint(): DartEntrypoint | null { - return this.dartEntrypoint; - } - - getInitialRoute(): string { - return this.initialRoute; - } - - getDartEntrypointArgs(): Array { - return this.dartEntrypointArgs; - } - - getAutomaticallyRegisterPlugins(): boolean { - return this.automaticallyRegisterPlugins; - } - - getWaitForRestorationData(): boolean { - return this.waitForRestorationData; - } - - getPlatformViewsController(): PlatformViewsController | null { - return this.platformViewsController; - } - - setDartEntrypoint(dartEntrypoint: DartEntrypoint): Options { - this.dartEntrypoint = dartEntrypoint; - return this; - } - - setInitialRoute(initialRoute: string): Options { - this.initialRoute = initialRoute; - return this; - } - - setDartEntrypointArgs(dartEntrypointArgs: Array): Options { - this.dartEntrypointArgs = dartEntrypointArgs; - return this; - } - - setAutomaticallyRegisterPlugins(automaticallyRegisterPlugins: boolean): Options { - this.automaticallyRegisterPlugins = automaticallyRegisterPlugins; - return this; - } - - setWaitForRestorationData(waitForRestorationData: boolean): Options { - this.waitForRestorationData = waitForRestorationData; - return this; - } - - setPlatformViewsController(platformViewsController: PlatformViewsController): Options { - this.platformViewsController = platformViewsController; - return this; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineGroupCache.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineGroupCache.ets deleted file mode 100644 index 645507a6d8a5fd2749a7ef3caf9a97ad1ec154eb..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterEngineGroupCache.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import FlutterEngineGroup from './FlutterEngineGroup'; - -export default class FlutterEngineGroupCache { - static readonly instance = new FlutterEngineGroupCache(); - - private cachedEngineGroups = new Map(); - - contains(engineGroupId: string): boolean { - return this.cachedEngineGroups.has(engineGroupId); - } - - get(engineGroupId: string): FlutterEngineGroup | null { - return this.cachedEngineGroups.get(engineGroupId) ?? null; - } - - put(engineGroupId: string, engineGroup?: FlutterEngineGroup) { - if (engineGroup != null) { - this.cachedEngineGroups.set(engineGroupId, engineGroup); - } else { - this.cachedEngineGroups.delete(engineGroupId); - } - } - - clear(): void { - this.cachedEngineGroups.clear(); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterNapi.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterNapi.ets deleted file mode 100644 index eef82c9ea7847bb73ec46e4110f3e5b7c65c6293..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterNapi.ets +++ /dev/null @@ -1,362 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import flutter from 'libflutter.so'; -import common from '@ohos.app.ability.common'; -import Log from '../../util/Log'; -import resourceManager from '@ohos.resourceManager'; -import { PlatformMessageHandler } from './dart/PlatformMessageHandler'; -import { FlutterCallbackInformation } from '../../view/FlutterCallbackInformation'; -import image from '@ohos.multimedia.image'; -import { EngineLifecycleListener } from './FlutterEngine'; -import { ByteBuffer } from '../../util/ByteBuffer'; -import { Action } from '../../view/AccessibilityBridge' -import LocalizationPlugin from '../../plugin/localization/LocalizationPlugin'; -import i18n from '@ohos.i18n'; - -const TAG = "FlutterNapi"; - -enum ContextType { - APP_LIFECYCLE = 0, - JS_PAGE_LIFECYCLE, -} - -/** - * 提供arkTs的flutterNAPI接口 - */ -export default class FlutterNapi { - hasInit: boolean = false; - //是否已实现 - hasImplemented: boolean = false; - - nativeShellHolderId: number | null = null; - platformMessageHandler: PlatformMessageHandler | null = null; - private engineLifecycleListeners = new Set(); - accessibilityDelegate: AccessibilityDelegate | null = null; - localizationPlugin: LocalizationPlugin | null = null; - - /** - * 更新刷新率 - * @param rate - */ - updateRefreshRate(refreshRateFPS : number) { - flutter.nativeUpdateRefreshRate(refreshRateFPS); - } - - init(context: common.Context, - args: Array, - bundlePath: string, - appStoragePath: string, - engineCachesPath: string, - initTimeMillis: number) { - if (this.hasInit) { - throw Error("the engine has init"); - } - this.hasInit = true; - Log.w(TAG, "init: bundlePath=" + bundlePath + " appStoragePath=" + appStoragePath + " engineCachesPath=" + engineCachesPath + " args=" + JSON.stringify(args)); - flutter.nativeInit(context, args, bundlePath, appStoragePath, engineCachesPath, initTimeMillis); - } - - attachToNative(): void { - this.nativeShellHolderId = flutter.nativeAttach(this); - Log.w(TAG, "nativeShellHolderId=" + this.nativeShellHolderId); - } - - runBundleAndSnapshotFromLibrary( - bundlePath: string, - entrypointFunctionName: string, - pathToEntrypointFunction: string, - assetManager: resourceManager.ResourceManager, - entrypointArgs: Array) { - Log.w(TAG, "init: bundlePath=" + bundlePath + " entrypointFunctionName=" + entrypointFunctionName + " pathToEntrypointFunction=" + pathToEntrypointFunction + " entrypointArgs=" + JSON.stringify(entrypointArgs)) - flutter.nativeRunBundleAndSnapshotFromLibrary(this.nativeShellHolderId!, bundlePath, entrypointFunctionName, pathToEntrypointFunction, assetManager, entrypointArgs); - }; - - /** - * 当前so方法是否都实现 - * @returns - */ - checkImplemented(methodName: string = ""): boolean { - if (!this.hasImplemented) { - Log.e(TAG, "this method has not implemented -> " + methodName) - } - return this.hasImplemented; - } - - setPlatformMessageHandler(platformMessageHandler: PlatformMessageHandler | null): void { - this.ensureRunningOnMainThread(); - this.platformMessageHandler = platformMessageHandler; - } - - private ensureAttachedToNative(): void { - if (this.nativeShellHolderId == null) { - throw new Error( - "Cannot execute operation because FlutterNapi is not attached to native."); - } - } - - private nativeNotifyLowMemoryWarning(nativeShellHolderId: number): void { - - } - - static nativeLookupCallbackInformation(handle: number): FlutterCallbackInformation | null { - return null; - } - - notifyLowMemoryWarning(): void { - this.ensureRunningOnMainThread(); - this.ensureAttachedToNative(); - this.nativeNotifyLowMemoryWarning(this.nativeShellHolderId!); - } - - isAttached(): boolean { - return this.nativeShellHolderId != null; - } - - private ensureRunningOnMainThread(): void { - - } - - dispatchEmptyPlatformMessage(channel: String, responseId: number): void { - this.ensureRunningOnMainThread(); - if (this.isAttached()) { - flutter.nativeDispatchEmptyPlatformMessage(this.nativeShellHolderId!, channel, responseId); - } else { - Log.w( - TAG, - "Tried to send a platform message to Flutter, but FlutterNapi was detached from native C++. Could not send. Channel: " - + channel - + ". Response ID: " - + responseId); - } - } - - /** Sends a reply {@code message} from Android to Flutter over the given {@code channel}. */ - dispatchPlatformMessage(channel: String, message: ArrayBuffer, position: number, responseId: number): void { - this.ensureRunningOnMainThread(); - if (this.isAttached()) { - - const uintArrayBuff = new Uint8Array(message) - let text = '' - for (let i = 0; i < uintArrayBuff.byteLength; i++) { - text += uintArrayBuff[i] + ',' - } - Log.w(TAG, "message=" + message.byteLength + ",text=" + text); - flutter.nativeDispatchPlatformMessage(this.nativeShellHolderId!, channel, message, position, responseId); - } else { - Log.w( - TAG, - "Tried to send a platform message to Flutter, but FlutterNapi was detached from native C++. Could not send. Channel: " - + channel - + ". Response ID: " - + responseId); - } - } - - invokePlatformMessageEmptyResponseCallback(responseId: number): void { - if (this.isAttached()) { - flutter.nativeInvokePlatformMessageEmptyResponseCallback(this.nativeShellHolderId!, responseId); - } else { - Log.w( - TAG, - "Tried to send a platform message response, but FlutterNapi was detached from native C++. Could not send. Response ID: " - + responseId); - } - } - - invokePlatformMessageResponseCallback(responseId: number, message: ArrayBuffer, position: number) { - if (this.isAttached()) { - flutter.nativeInvokePlatformMessageResponseCallback( - this.nativeShellHolderId!, responseId, message, position); - } else { - Log.w( - TAG, - "Tried to send a platform message response, but FlutterNapi was detached from native C++. Could not send. Response ID: " - + responseId); - } - } - - setViewportMetrics(devicePixelRatio: number, physicalWidth: number - , physicalHeight: number, physicalPaddingTop: number, physicalPaddingRight: number - , physicalPaddingBottom: number, physicalPaddingLeft: number, physicalViewInsetTop: number - , physicalViewInsetRight: number, physicalViewInsetBottom: number, physicalViewInsetLeft: number - , systemGestureInsetTop: number, systemGestureInsetRight: number, systemGestureInsetBottom: number - , systemGestureInsetLeft: number, physicalTouchSlop: number, displayFeaturesBounds: Array - , displayFeaturesType: Array, displayFeaturesState: Array): void { - if (this.isAttached()) { - flutter.nativeSetViewportMetrics(this.nativeShellHolderId!, devicePixelRatio, - physicalWidth, - physicalHeight, - physicalPaddingTop, - physicalPaddingRight, - physicalPaddingBottom, - physicalPaddingLeft, - physicalViewInsetTop, - physicalViewInsetRight, - physicalViewInsetBottom, - physicalViewInsetLeft, - systemGestureInsetTop, - systemGestureInsetRight, - systemGestureInsetBottom, - systemGestureInsetLeft, - physicalTouchSlop, - displayFeaturesBounds, - displayFeaturesType, - displayFeaturesState); - } - } - - spawn(entrypointFunctionName: string, pathToEntrypointFunction: string, initialRoute: string, entrypointArgs: Array): FlutterNapi { - let shellHolderId = flutter.nativeSpawn(this.nativeShellHolderId, entrypointFunctionName, pathToEntrypointFunction, initialRoute, entrypointArgs) - let flutterNapi = new FlutterNapi() - flutterNapi.nativeShellHolderId = shellHolderId - return flutterNapi; - } - - addEngineLifecycleListener(engineLifecycleListener: EngineLifecycleListener): void { - this.engineLifecycleListeners.add(engineLifecycleListener); - } - - removeEngineLifecycleListener(engineLifecycleListener: EngineLifecycleListener) { - this.engineLifecycleListeners.delete(engineLifecycleListener); - } - - //Called by native to respond to a platform message that we sent. - handlePlatformMessageResponse(replyId: number, reply: ArrayBuffer): void { - Log.w(TAG, "called handlePlatformMessageResponse Response ID: " + replyId); - if (this.platformMessageHandler != null) { - this.platformMessageHandler.handlePlatformMessageResponse(replyId, reply); - } - } - - // Called by native on any thread. - handlePlatformMessage(channel: string, message: ArrayBuffer, replyId: number, messageData: number): void { - Log.w(TAG, "called handlePlatformMessage Channel: " + channel + ". Response ID: " + replyId); - if (this.platformMessageHandler != null) { - this.platformMessageHandler.handleMessageFromDart(channel, message, replyId, messageData); - } - } - - // Called by native to notify first Flutter frame rendered. - onFirstFrame(): void { - Log.d(TAG, "called onFirstFrame") - } - - // Called by native. - onPreEngineRestart(): void { - Log.d(TAG, "called onPreEngineRestart") - this.engineLifecycleListeners.forEach( listener => listener.onPreEngineRestart()); - } - - // /** Invoked by native to obtain the results of OHOS's locale resolution algorithm. */ - computePlatformResolvedLocale(strings: Array): Array { - Log.d(TAG, "called computePlatformResolvedLocale " + JSON.stringify(strings)) - return [] - } - - decodeImage(buffer: ArrayBuffer, imageGeneratorAddress: number): void { - Log.d(TAG, "called decodeImage=" + buffer.byteLength) - const imageSourceApi = image.createImageSource(buffer); - let tempPixelMap: image.PixelMap | null = null; - imageSourceApi.createPixelMap({ - desiredPixelFormat: image.PixelMapFormat.RGBA_8888 - }).then(pixelMap => { - Log.d(TAG, "called createPixelMap end " + pixelMap.getPixelBytesNumber()) - tempPixelMap = pixelMap - return pixelMap.getImageInfo() - }).then(imageInfo => { - Log.d(TAG, `nativeImageHeaderCallback width=${imageInfo.size.width} height=${imageInfo.size.height} imageGeneratorAddress=${imageGeneratorAddress}`) - flutter.nativeImageDecodeCallback(imageInfo.size.width, imageInfo.size.height, imageGeneratorAddress, tempPixelMap) - }).catch((error: ESObject) => { - Log.d(TAG, "decodeImage error=" + JSON.stringify(error)) - flutter.nativeImageDecodeCallback(0, 0, imageGeneratorAddress, null); - }) - } - - setSemanticsEnabled(enabled: boolean, responseId: number): void { - if (this.isAttached()) { - this.nativeSetSemanticsEnabled(enabled); - } else { - Log.w( - TAG, - "Tried to send a platform message response, but FlutterNapi was detached from native C++. Could not send. Response ID: " - + responseId); - } - } - - // Send an empty response to a platform message received from Dart. - nativeSetSemanticsEnabled(enabled: boolean):void {} - - setAccessibilityFeatures(accessibilityFeatureFlags: number, responseId: number): void { - if (this.isAttached()) { - this.nativeSetAccessibilityFeatures(accessibilityFeatureFlags, responseId); - } else { - Log.w( - TAG, - "Tried to send a platform message response, but FlutterNapi was detached from native C++. Could not send. Response ID: " - + responseId); - } - } - - nativeSetAccessibilityFeatures(accessibilityFeatureFlags: number, responseId: number): void {} - - dispatchSemanticsAction(virtualViewId: number, action: Action, responseId: number): void { - if (this.isAttached()) { - this.nativeDispatchSemanticsAction(virtualViewId, action, responseId); - } else { - Log.w( - TAG, - "Tried to send a platform message response, but FlutterNapi was detached from native C++. Could not send. Response ID: " - + responseId); - } - } - - nativeDispatchSemanticsAction(virtualViewId: number, action: Action, responseId: number): void {} - - setAccessibilityDelegate(delegate: AccessibilityDelegate, responseId: number): void { - if (this.isAttached()) { - this.accessibilityDelegate = delegate; - } else { - Log.w( - TAG, - "Tried to send a platform message response, but FlutterNapi was detached from native C++. Could not send. Response ID: " - + responseId); - } - } - - setLocalizationPlugin(localizationPlugin: LocalizationPlugin | null): void { - this.localizationPlugin = localizationPlugin; - } - - /** - * 获取系统语言列表 - * @param rate - */ - getSystemLanguages() { - Log.d(TAG, "called getSystemLanguages ") - let index: number; - let systemLanguages = i18n.System.getPreferredLanguageList(); - for (index = 0; index < systemLanguages.length; index++) { - Log.d(TAG, "systemlanguages "+ index + ":" + systemLanguages[index]); - } - flutter.nativeGetSystemLanguages(this.nativeShellHolderId!, systemLanguages); - } -} - -export interface AccessibilityDelegate { - updateCustomAccessibilityActions(buffer: ByteBuffer, strings: string[]): void; - - updateSemantics(buffer: ByteBuffer, strings: string[], stringAttributeArgs: ByteBuffer[]): void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterOverlaySurface.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterOverlaySurface.ets deleted file mode 100644 index 2d63d83de313f52eba3f8fa6d2ed584f7bee44bd..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterOverlaySurface.ets +++ /dev/null @@ -1,27 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export class FlutterOverlaySurface { - - private id: number; - - constructor(id: number) { - this.id = id - } - - getId(): number { - return this.id; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterShellArgs.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterShellArgs.ets deleted file mode 100644 index 7a3cd75a49b7c53742072aa30541204060fc82e6..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/FlutterShellArgs.ets +++ /dev/null @@ -1,86 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import Want from '@ohos.app.ability.Want'; - -/** - * 封装flutter shell的参数 - */ -export default class FlutterShellArgs { - static ARG_KEY_TRACE_STARTUP = "trace-startup"; - static ARG_TRACE_STARTUP = "--trace-startup"; - static ARG_KEY_START_PAUSED = "start-paused"; - static ARG_START_PAUSED = "--start-paused"; - static ARG_KEY_DISABLE_SERVICE_AUTH_CODES = "disable-service-auth-codes"; - static ARG_DISABLE_SERVICE_AUTH_CODES = "--disable-service-auth-codes"; - static ARG_KEY_ENDLESS_TRACE_BUFFER = "endless-trace-buffer"; - static ARG_ENDLESS_TRACE_BUFFER = "--endless-trace-buffer"; - static ARG_KEY_USE_TEST_FONTS = "use-test-fonts"; - static ARG_USE_TEST_FONTS = "--use-test-fonts"; - static ARG_KEY_ENABLE_DART_PROFILING = "enable-dart-profiling"; - static ARG_ENABLE_DART_PROFILING = "--enable-dart-profiling"; - static ARG_KEY_ENABLE_SOFTWARE_RENDERING = "enable-software-rendering"; - static ARG_ENABLE_SOFTWARE_RENDERING = "--enable-software-rendering"; - static ARG_KEY_SKIA_DETERMINISTIC_RENDERING = "skia-deterministic-rendering"; - static ARG_SKIA_DETERMINISTIC_RENDERING = "--skia-deterministic-rendering"; - static ARG_KEY_TRACE_SKIA = "trace-skia"; - static ARG_TRACE_SKIA = "--trace-skia"; - static ARG_KEY_TRACE_SKIA_ALLOWLIST = "trace-skia-allowlist"; - static ARG_TRACE_SKIA_ALLOWLIST = "--trace-skia-allowlist="; - static ARG_KEY_TRACE_SYSTRACE = "trace-systrace"; - static ARG_TRACE_SYSTRACE = "--trace-systrace"; - static ARG_KEY_ENABLE_IMPELLER = "enable-impeller"; - static ARG_ENABLE_IMPELLER = "--enable-impeller"; - static ARG_KEY_DUMP_SHADER_SKP_ON_SHADER_COMPILATION = - "dump-skp-on-shader-compilation"; - static ARG_DUMP_SHADER_SKP_ON_SHADER_COMPILATION = - "--dump-skp-on-shader-compilation"; - static ARG_KEY_CACHE_SKSL = "cache-sksl"; - static ARG_CACHE_SKSL = "--cache-sksl"; - static ARG_KEY_PURGE_PERSISTENT_CACHE = "purge-persistent-cache"; - static ARG_PURGE_PERSISTENT_CACHE = "--purge-persistent-cache"; - static ARG_KEY_VERBOSE_LOGGING = "verbose-logging"; - static ARG_VERBOSE_LOGGING = "--verbose-logging"; - static ARG_KEY_OBSERVATORY_PORT = "observatory-port"; - static ARG_OBSERVATORY_PORT = "--observatory-port="; - static ARG_KEY_DART_FLAGS = "dart-flags"; - static ARG_DART_FLAGS = "--dart-flags"; - static ARG_KEY_MSAA_SAMPLES = "msaa-samples"; - static ARG_MSAA_SAMPLES = "--msaa-samples"; - - /** - * 从意图中解析参数,创建shellArgs - * @returns - */ - static fromWant(want: Want): FlutterShellArgs { - //tdo 解析want - return new FlutterShellArgs(); - } - - //参数 - args: Set = new Set(); - - add(arg: string) { - this.args.add(arg); - } - - remove(arg: string) { - this.args.delete(arg); - } - - toArray(): Array { - return Array.from(this.args); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/DartExecutor.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/DartExecutor.ets deleted file mode 100644 index 46d08cd458b5795d1daaa1f4379a088b129d5dc7..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/DartExecutor.ets +++ /dev/null @@ -1,379 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import resourceManager from '@ohos.resourceManager'; -import FlutterInjector from '../../../FlutterInjector'; -import { BinaryMessageHandler, BinaryReply, TaskQueue, TaskQueueOptions } from '../../../plugin/common/BinaryMessenger'; -import { BinaryMessenger } from '../../../plugin/common/BinaryMessenger'; -import StringCodec from '../../../plugin/common/StringCodec'; -import Log from '../../../util/Log'; -import { TraceSection } from '../../../util/TraceSection'; -import { FlutterCallbackInformation } from '../../../view/FlutterCallbackInformation'; -import FlutterNapi from '../FlutterNapi'; -import { DartMessenger } from './DartMessenger'; - - -const TAG = "DartExecutor"; - -/** - * dart代码执行器 - */ -export default class DartExecutor implements BinaryMessenger { - flutterNapi: FlutterNapi; - assetManager: resourceManager.ResourceManager; - private dartMessenger: DartMessenger; - private binaryMessenger: BinaryMessenger; - private isApplicationRunning: boolean = false; - private isolateServiceId: String = ""; - private isolateServiceIdListener: IsolateServiceIdListener | null = null; - - private isolateChannelMessageHandler: BinaryMessageHandler = - new IsolateChannelMessageHandler(this.isolateServiceId, this.isolateServiceIdListener); - - constructor(flutterNapi: FlutterNapi, assetManager: resourceManager.ResourceManager) { - this.flutterNapi = flutterNapi; - this.assetManager = assetManager; - this.dartMessenger = new DartMessenger(flutterNapi); - this.dartMessenger.setMessageHandler("flutter/isolate", this.isolateChannelMessageHandler); - this.binaryMessenger = new DefaultBinaryMessenger(this.dartMessenger); - // The JNI might already be attached if coming from a spawned engine. If so, correctly report - // that this DartExecutor is already running. - if (flutterNapi.isAttached()) { - this.isApplicationRunning = true; - } - } - - - /** - * Invoked when the {@link io.flutter.embedding.engine.FlutterEngine} that owns this {@link - * DartExecutor} attaches to JNI. - * - *

When attached to JNI, this {@link DartExecutor} begins handling 2-way communication to/from - * the Dart execution context. This communication is facilitate via 2 APIs: - * - *

    - *
  • {@link BinaryMessenger}, which sends messages to Dart - *
  • {@link PlatformMessageHandler}, which receives messages from Dart - *
- */ - onAttachedToNAPI(): void { - Log.d(TAG, "Attached to NAPI. Registering the platform message handler for this Dart execution context."); - this.flutterNapi.setPlatformMessageHandler(this.dartMessenger); - } - - /** - * Invoked when the {@link io.flutter.embedding.engine.FlutterEngine} that owns this {@link - * DartExecutor} detaches from JNI. - * - *

When detached from JNI, this {@link DartExecutor} stops handling 2-way communication to/from - * the Dart execution context. - */ - onDetachedFromNAPI(): void { - Log.d(TAG, "Detached from NAPI. De-registering the platform message handler for this Dart execution context."); - this.flutterNapi.setPlatformMessageHandler(null); - } - - /** - * Is this {@link DartExecutor} currently executing Dart code? - * - * @return true if Dart code is being executed, false otherwise - */ - isExecutingDart(): boolean { - return this.isApplicationRunning; - } - - /** - * Starts executing Dart code based on the given {@code dartEntrypoint} and the {@code - * dartEntrypointArgs}. - * - *

See {@link DartEntrypoint} for configuration options. - * - * @param dartEntrypoint specifies which Dart function to run, and where to find it - * @param dartEntrypointArgs Arguments passed as a list of string to Dart's entrypoint function. - */ - executeDartEntrypoint(dartEntrypoint: DartEntrypoint, dartEntrypointArgs?: string[]): void { - if (this.isApplicationRunning) { - Log.w(TAG, "Attempted to run a DartExecutor that is already running."); - return; - } - - TraceSection.begin("DartExecutor#executeDartEntrypoint"); - try { - Log.d(TAG, "Executing Dart entrypoint: " + dartEntrypoint); - this.flutterNapi.runBundleAndSnapshotFromLibrary( - dartEntrypoint.pathToBundle, - dartEntrypoint.dartEntrypointFunctionName, - dartEntrypoint.dartEntrypointLibrary, - this.assetManager, - dartEntrypointArgs ?? []); - - this.isApplicationRunning = true; - } finally { - TraceSection.end("DartExecutor#executeDartEntrypoint"); - } - } - - /** - * Starts executing Dart code based on the given {@code dartCallback}. - * - *

See {@link DartCallback} for configuration options. - * - * @param dartCallback specifies which Dart callback to run, and where to find it - */ - executeDartCallback(dartCallback: DartCallback): void { - if (this.isApplicationRunning) { - Log.w(TAG, "Attempted to run a DartExecutor that is already running."); - return; - } - - TraceSection.begin("DartExecutor#executeDartCallback"); - try { - Log.d(TAG, "Executing Dart callback: " + dartCallback); - this.flutterNapi.runBundleAndSnapshotFromLibrary( - dartCallback.pathToBundle, - dartCallback.callbackHandle.callbackName, - dartCallback.callbackHandle.callbackLibraryPath, - dartCallback.resourceManager, - []); - - this.isApplicationRunning = true; - } finally { - TraceSection.end("DartExecutor#executeDartCallback"); - } - } - - /** - * Returns a {@link BinaryMessenger} that can be used to send messages to, and receive messages - * from, Dart code that this {@code DartExecutor} is executing. - */ - - getBinaryMessenger(): BinaryMessenger { - return this.binaryMessenger; - } - - makeBackgroundTaskQueue(options: TaskQueueOptions): TaskQueue { - return this.getBinaryMessenger().makeBackgroundTaskQueue(options); - } - - - send(channel: String, message: ArrayBuffer, callback?: BinaryReply): void { - this.getBinaryMessenger().send(channel, message, callback); - } - - setMessageHandler(channel: String, handler: BinaryMessageHandler, taskQueue?: TaskQueue): void { - this.getBinaryMessenger().setMessageHandler(channel, handler, taskQueue); - } - - enableBufferingIncomingMessages(): void { - this.getBinaryMessenger().enableBufferingIncomingMessages(); - } - - - /** - * Returns the number of pending channel callback replies. - * - *

When sending messages to the Flutter application using {@link BinaryMessenger#send(String, - * ByteBuffer, io.flutter.plugin.common.BinaryMessenger.BinaryReply)}, developers can optionally - * specify a reply callback if they expect a reply from the Flutter application. - * - *

This method tracks all the pending callbacks that are waiting for response, and is supposed - * to be called from the main thread (as other methods). Calling from a different thread could - * possibly capture an indeterministic internal state, so don't do it. - * - *

Currently, it's mainly useful for a testing framework like Espresso to determine whether all - * the async channel callbacks are handled and the app is idle. - */ - getPendingChannelResponseCount(): number { - return this.dartMessenger.getPendingChannelResponseCount(); - } - - /** - * Returns an identifier for this executor's primary isolate. This identifier can be used in - * queries to the Dart service protocol. - */ - - getIsolateServiceId(): String { - return this.isolateServiceId; - } - - - - /** - * Set a listener that will be notified when an isolate identifier is available for this - * executor's primary isolate. - */ - setIsolateServiceIdListener(listener: IsolateServiceIdListener): void { - this.isolateServiceIdListener = listener; - if (this.isolateServiceIdListener != null && this.isolateServiceId != null) { - this.isolateServiceIdListener.onIsolateServiceIdAvailable(this.isolateServiceId); - } - } - - /** - * Notify the Dart VM of a low memory event, or that the application is in a state such that now - * is an appropriate time to free resources, such as going to the background. - * - *

This does not notify a Flutter application about memory pressure. For that, use the {@link - * io.flutter.embedding.engine.systemchannels.SystemChannel#sendMemoryPressureWarning}. - * - *

Calling this method may cause jank or latency in the application. Avoid calling it during - * critical periods like application startup or periods of animation. - */ - notifyLowMemoryWarning(): void { - if (this.flutterNapi.isAttached()) { - this.flutterNapi.notifyLowMemoryWarning(); - } - } - - disableBufferingIncomingMessages(): void { - this.getBinaryMessenger().enableBufferingIncomingMessages(); - } -} - - -/** - * Configuration options that specify which Dart entrypoint function is executed and where to find - * that entrypoint and other assets required for Dart execution. - */ -export class DartEntrypoint { - /** The path within the AssetManager where the app will look for assets. */ - pathToBundle: string; - - /** The library or file location that contains the Dart entrypoint function. */ - dartEntrypointLibrary: string; - - /** The name of a Dart function to execute. */ - dartEntrypointFunctionName: string; - - constructor(pathToBundle: string, - dartEntrypointLibrary: string, - dartEntrypointFunctionName: string) { - this.pathToBundle = pathToBundle; - this.dartEntrypointLibrary = dartEntrypointLibrary; - this.dartEntrypointFunctionName = dartEntrypointFunctionName; - } - - static createDefault() { - const flutterLoader = FlutterInjector.getInstance().getFlutterLoader(); - if (!flutterLoader.initialized) { - throw new Error( - "DartEntrypoints can only be created once a FlutterEngine is created."); - } - return new DartEntrypoint(flutterLoader.findAppBundlePath(), "", "main"); - } -} - - -/** Callback interface invoked when the isolate identifier becomes available. */ -interface IsolateServiceIdListener { - onIsolateServiceIdAvailable(isolateServiceId: String): void; -} - - -/** - * Configuration options that specify which Dart callback function is executed and where to find - * that callback and other assets required for Dart execution. - */ -export class DartCallback { - /** Standard Android AssetManager, provided from some {@code Context} or {@code Resources}. */ - public resourceManager: resourceManager.ResourceManager; - - /** The path within the AssetManager where the app will look for assets. */ - public pathToBundle: string; - - /** A Dart callback that was previously registered with the Dart VM. */ - public callbackHandle: FlutterCallbackInformation; - - constructor(resourceManager: resourceManager.ResourceManager, - pathToBundle: string, - callbackHandle: FlutterCallbackInformation) { - this.resourceManager = resourceManager; - this.pathToBundle = pathToBundle; - this.callbackHandle = callbackHandle; - } - - toString(): String { - return "DartCallback( bundle path: " - + this.pathToBundle - + ", library path: " - + this.callbackHandle.callbackLibraryPath - + ", function: " - + this.callbackHandle.callbackName - + " )"; - } -} - -export class DefaultBinaryMessenger implements BinaryMessenger { - private messenger: DartMessenger; - - constructor(messenger: DartMessenger) { - this.messenger = messenger; - } - - makeBackgroundTaskQueue(options: TaskQueueOptions): TaskQueue { - return this.messenger.makeBackgroundTaskQueue(options); - } - - /** - * Sends the given {@code messages} from Android to Dart over the given {@code channel} and then - * has the provided {@code callback} invoked when the Dart side responds. - * - * @param channel the name of the logical channel used for the message. - * @param message the message payload, a direct-allocated {@link ByteBuffer} with the message - * bytes between position zero and current position, or null. - * @param callback a callback invoked when the Dart application responds to the message - */ - - send(channel: String, message: ArrayBuffer, callback?: BinaryReply): void { - this.messenger.send(channel, message, callback); - } - - /** - * Sets the given {@link io.flutter.plugin.common.BinaryMessenger.BinaryMessageHandler} as the - * singular handler for all incoming messages received from the Dart side of this Dart execution - * context. - * - * @param channel the name of the channel. - * @param handler a {@link BinaryMessageHandler} to be invoked on incoming messages, or null. - */ - setMessageHandler(channel: String, handler: BinaryMessageHandler, taskQueue?: TaskQueue): void { - this.messenger.setMessageHandler(channel, handler); - } - - enableBufferingIncomingMessages(): void { - this.messenger.enableBufferingIncomingMessages(); - } - - disableBufferingIncomingMessages(): void { - this.messenger.disableBufferingIncomingMessages(); - } -} - -class IsolateChannelMessageHandler implements BinaryMessageHandler { - private isolateServiceId: String; - private isolateServiceIdListener: IsolateServiceIdListener | null = null; - - constructor(isolateServiceId: String, isolateServiceIdListener: IsolateServiceIdListener | null) { - this.isolateServiceId = isolateServiceId; - this.isolateServiceIdListener = isolateServiceIdListener; - } - - onMessage(message: ArrayBuffer, callback: BinaryReply): void { - this.isolateServiceId = StringCodec.INSTANCE.decodeMessage(message); - if (this.isolateServiceIdListener != null) { - this.isolateServiceIdListener.onIsolateServiceIdAvailable(this.isolateServiceId); - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/DartMessenger.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/DartMessenger.ets deleted file mode 100644 index 6e9bfab834fbdc2b0929e774ecd94c78d4683e7a..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/DartMessenger.ets +++ /dev/null @@ -1,288 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import Log from '../../../util/Log' -import { BinaryMessageHandler, BinaryMessenger, BinaryReply, TaskQueue, TaskQueueOptions } from '../../../plugin/common/BinaryMessenger'; -import FlutterNapi from '../FlutterNapi'; -import { PlatformMessageHandler } from './PlatformMessageHandler'; -import { TraceSection } from '../../../util/TraceSection'; - -/** - * Message conduit for 2-way communication between Android and Dart. - * - *

See {@link BinaryMessenger}, which sends messages from Android to Dart - * - *

See {@link PlatformMessageHandler}, which handles messages to Android from Dart - */ - -const TAG = "DartMessenger"; - -export class DartMessenger implements BinaryMessenger, PlatformMessageHandler { - - flutterNapi: FlutterNapi; - - /** - * Maps a channel name to an object that contains the task queue and the handler associated with - * the channel. - * - *

Reads and writes to this map must lock {@code handlersLock}. - */ - messageHandlers: Map = new Map(); - - /** - * Maps a channel name to an object that holds information about the incoming Dart message. - * - *

Reads and writes to this map must lock {@code handlersLock}. - */ - bufferedMessages: Map = new Map(); - - handlersLock: Object = new Object(); - enableBufferingIncomingMessagesFlag: boolean = false; - - pendingReplies: Map = new Map(); - nextReplyId: number = 1; - taskQueueFactory: TaskQueueFactory; - createdTaskQueues: Map = new Map(); - - constructor(flutterNapi: FlutterNapi) { - this.flutterNapi = flutterNapi; - this.taskQueueFactory = new DefaultTaskQueueFactory(); - } - makeBackgroundTaskQueue(options: TaskQueueOptions): TaskQueue { - let taskQueue: DartMessengerTaskQueue = this.taskQueueFactory.makeBackgroundTaskQueue(options); - let token: TaskQueueToken = new TaskQueueToken(); - this.createdTaskQueues.set(token, taskQueue); - return token; - } - - - setMessageHandler(channel: String, handler: BinaryMessageHandler, taskQueue?: TaskQueue): void { - if (handler == null) { - Log.d(TAG, "Removing handler for channel '" + channel + "'"); - this.messageHandlers.delete(channel); - return; - } - let dartMessengerTaskQueue: DartMessengerTaskQueue | null = null; - if( taskQueue != null) { - dartMessengerTaskQueue = this.createdTaskQueues.get(taskQueue) ?? null; - if(dartMessengerTaskQueue == null) { - throw new Error( - "Unrecognized TaskQueue, use BinaryMessenger to create your TaskQueue (ex makeBackgroundTaskQueue)." - ); - } - } - Log.d(TAG, "Setting handler for channel '" + channel + "'"); - - this.messageHandlers.set(channel, new HandlerInfo(handler, dartMessengerTaskQueue)); - this.bufferedMessages.delete(channel); - } - - - enableBufferingIncomingMessages(): void { - this.enableBufferingIncomingMessagesFlag = true; - } - - disableBufferingIncomingMessages(): void { - this.enableBufferingIncomingMessagesFlag = false; - this.bufferedMessages = new Map(); - } - - send(channel: String, message: ArrayBuffer, callback?: BinaryReply): void { - Log.d(TAG, "Sending message over channel '" + channel + "'"); - TraceSection.begin("DartMessenger#send on " + channel); - try { - Log.d(TAG, "Sending message with callback over channel '" + channel + "'"); - let replyId: number = this.nextReplyId++; - if (callback != null) { - this.pendingReplies.set(replyId, callback); - } - if (message == null) { - this.flutterNapi.dispatchEmptyPlatformMessage(channel, replyId); - } else { - this.flutterNapi.dispatchPlatformMessage(channel, message, message.byteLength, replyId); - } - } finally { - TraceSection.end("DartMessenger#send on " + channel); - } - } - - async asyncInvokeHandler(handlerInfo: HandlerInfo | null, message: ArrayBuffer, replyId: number): Promise { - // Called from any thread. - if (handlerInfo != null) { - try { - Log.d(TAG, "Deferring to registered handler to process message."); - handlerInfo.handler.onMessage(message, new Reply(this.flutterNapi, replyId)); - } catch (ex) { - Log.e(TAG, "Uncaught exception in binary message listener", ex); - this.flutterNapi.invokePlatformMessageEmptyResponseCallback(replyId); - } - } else { - Log.d(TAG, "No registered handler for message. Responding to Dart with empty reply message."); - this.flutterNapi.invokePlatformMessageEmptyResponseCallback(replyId); - } - } - - invokeHandler(handlerInfo: HandlerInfo | null, message: ArrayBuffer, replyId: number): void { - // Called from any thread. - if (handlerInfo != null) { - try { - Log.d(TAG, "Deferring to registered handler to process message."); - handlerInfo.handler.onMessage(message, new Reply(this.flutterNapi, replyId)); - } catch (ex) { - Log.e(TAG, "Uncaught exception in binary message listener", ex); - this.flutterNapi.invokePlatformMessageEmptyResponseCallback(replyId); - } - } else { - Log.d(TAG, "No registered handler for message. Responding to Dart with empty reply message."); - this.flutterNapi.invokePlatformMessageEmptyResponseCallback(replyId); - } - } - - handleMessageFromDart(channel: String, message: ArrayBuffer, replyId: number, messageData: number): void { - // Called from any thread. - Log.d(TAG, "Received message from Dart over channel '" + channel + "'"); - - let handlerInfo: HandlerInfo | null = this.messageHandlers.get(channel) ?? null; - let messageDeferred: boolean; - - messageDeferred = (this.enableBufferingIncomingMessagesFlag && handlerInfo == null); - if (messageDeferred) { - if (!this.bufferedMessages.has(channel)) { - this.bufferedMessages.set(channel, []); - } - let buffer: BufferedMessageInfo[] = this.bufferedMessages.get(channel) ?? []; - buffer.push(new BufferedMessageInfo(message, replyId, messageData)); - } - if (!messageDeferred) { - //ArkTS 没有线程池,任务队列使用异步实现 - if(handlerInfo?.taskQueue != null) { - this.asyncInvokeHandler(handlerInfo, message, replyId); - } else { - this.invokeHandler(handlerInfo, message, replyId); - } - } - } - - handlePlatformMessageResponse(replyId: number, reply: ArrayBuffer): void { - Log.d(TAG, "Received message reply from Dart."); - let callback: BinaryReply | null = this.pendingReplies.get(replyId) ?? null; - this.pendingReplies.delete(replyId); - if (callback != null) { - try { - Log.d(TAG, "Invoking registered callback for reply from Dart."); - callback.reply(reply); - } catch (e) { - Log.e(TAG, "Uncaught exception in binary message reply handler", e); - } - } - } - - /** - * Returns the number of pending channel callback replies. - * - *

When sending messages to the Flutter application using {@link BinaryMessenger#send(String, - * ByteBuffer, io.flutter.plugin.common.BinaryMessenger.BinaryReply)}, developers can optionally - * specify a reply callback if they expect a reply from the Flutter application. - * - *

This method tracks all the pending callbacks that are waiting for response, and is supposed - * to be called from the main thread (as other methods). Calling from a different thread could - * possibly capture an indeterministic internal state, so don't do it. - */ - getPendingChannelResponseCount(): number { - return this.pendingReplies.size; - } -} - - - - - - -/** - * Holds information about a platform handler, such as the task queue that processes messages from - * Dart. - */ -class HandlerInfo { - handler: BinaryMessageHandler; - taskQueue: DartMessengerTaskQueue | null; - constructor(handler: BinaryMessageHandler, taskQueue?:DartMessengerTaskQueue | null) { - this.handler = handler; - this.taskQueue = taskQueue ?? null; - } -} - -/** - * Holds information that allows to dispatch a Dart message to a platform handler when it becomes - * available. - */ -class BufferedMessageInfo { - message: ArrayBuffer; - replyId: number; - messageData: number; - - constructor(message: ArrayBuffer, - replyId: number, - messageData: number) { - this.message = message; - this.replyId = replyId; - this.messageData = messageData; - } -} - - - - - -class Reply implements BinaryReply { - flutterNapi: FlutterNapi; - replyId: number; - done: boolean = false; - - constructor(flutterNapi: FlutterNapi, replyId: number) { - this.flutterNapi = flutterNapi; - this.replyId = replyId; - } - - reply(reply: ArrayBuffer) { - if (this.done) { - throw new Error("Reply already submitted"); - } - if (reply == null) { - this.flutterNapi.invokePlatformMessageEmptyResponseCallback(this.replyId); - } else { - this.flutterNapi.invokePlatformMessageResponseCallback(this.replyId, reply, reply.byteLength); - } - } -} - -interface DartMessengerTaskQueue { - dispatch(): void; -} - -interface TaskQueueFactory { - makeBackgroundTaskQueue(options: TaskQueueOptions): DartMessengerTaskQueue; -} - -class ConcurrentTaskQueue implements DartMessengerTaskQueue { - dispatch(): void {} -} - -class DefaultTaskQueueFactory implements TaskQueueFactory { - makeBackgroundTaskQueue(options: TaskQueueOptions): DartMessengerTaskQueue { - return new ConcurrentTaskQueue(); - } -} - -class TaskQueueToken implements TaskQueue {} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/PlatformMessageHandler.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/PlatformMessageHandler.ets deleted file mode 100644 index b6e3411862cb936f4e9af2c6e0ab6a49be3c9dce..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/dart/PlatformMessageHandler.ets +++ /dev/null @@ -1,22 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export interface PlatformMessageHandler { - - handleMessageFromDart(channel: String,message: ArrayBuffer,replyId: number, messageData: number): void; - - handlePlatformMessageResponse(replyId: number, reply: ArrayBuffer): void; - -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/ApplicationInfoLoader.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/ApplicationInfoLoader.ets deleted file mode 100644 index 3c5bca80d380c5387ac2c872b35f860e3e8eacad..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/ApplicationInfoLoader.ets +++ /dev/null @@ -1,24 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import FlutterApplicationInfo from './FlutterApplicationInfo'; -import common from '@ohos.app.ability.common'; - -export default class ApplicationInfoLoader { - static load(context: common.Context) { - let applicationInfo = new FlutterApplicationInfo(null, null, null, null, null, context.bundleCodeDir + '/libs/arm64', true); - return applicationInfo - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/FlutterApplicationInfo.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/FlutterApplicationInfo.ets deleted file mode 100644 index bdb9509d4d89afbbefef1b651f8dab9dee43696a..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/FlutterApplicationInfo.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -const DEFAULT_AOT_SHARED_LIBRARY_NAME = "libapp.so"; -const DEFAULT_VM_SNAPSHOT_DATA = "vm_snapshot_data"; -const DEFAULT_ISOLATE_SNAPSHOT_DATA = "isolate_snapshot_data"; -const DEFAULT_FLUTTER_ASSETS_DIR = "flutter_assets"; - - -/** - * application 信息,后期看如何设置 - */ -export default class FlutterApplicationInfo { - aotSharedLibraryName: string; - vmSnapshotData: string; - isolateSnapshotData: string; - flutterAssetsDir: string; - domainNetworkPolicy: string; - nativeLibraryDir: string; - automaticallyRegisterPlugins: boolean; - //是否是开发模式,先放在这里,后续应该从context获取 - isDebugMode: boolean; - //是否是profile模式 - isProfile: boolean; - - constructor(aotSharedLibraryName: string | null, - vmSnapshotData: string | null, - isolateSnapshotData: string | null, - flutterAssetsDir: string | null, - domainNetworkPolicy: string | null, - nativeLibraryDir: string, - automaticallyRegisterPlugins: boolean) { - this.aotSharedLibraryName = aotSharedLibraryName == null ? DEFAULT_AOT_SHARED_LIBRARY_NAME : aotSharedLibraryName; - this.vmSnapshotData = vmSnapshotData == null ? DEFAULT_VM_SNAPSHOT_DATA : vmSnapshotData; - this.isolateSnapshotData = isolateSnapshotData == null ? DEFAULT_ISOLATE_SNAPSHOT_DATA : isolateSnapshotData; - this.flutterAssetsDir = flutterAssetsDir == null ? DEFAULT_FLUTTER_ASSETS_DIR : flutterAssetsDir; - this.domainNetworkPolicy = domainNetworkPolicy == null ? "" : domainNetworkPolicy; - this.nativeLibraryDir = nativeLibraryDir; - this.automaticallyRegisterPlugins = automaticallyRegisterPlugins; - this.isDebugMode = true; - this.isProfile = false; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/FlutterLoader.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/FlutterLoader.ets deleted file mode 100644 index 8917880d499cbbf798ef199e2eb0c621bc893516..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/loader/FlutterLoader.ets +++ /dev/null @@ -1,219 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/** - * flutterLoader,负责dart虚拟机启动和dart代码加载 - */ -import FlutterShellArgs from '../FlutterShellArgs'; -import FlutterNapi from '../FlutterNapi'; -import Log from '../../../util/Log'; -import FlutterApplicationInfo from './FlutterApplicationInfo'; -import common from '@ohos.app.ability.common'; -import StringUtils from '../../../util/StringUtils'; -import ApplicationInfoLoader from './ApplicationInfoLoader'; -import bundleManager from '@ohos.bundle.bundleManager'; -import fs from '@ohos.file.fs'; - -const TAG = "FlutterLoader"; - -//flutter引擎so -const DEFAULT_LIBRARY = "libflutter.so"; -//jit产物默认kenel文件 -const DEFAULT_KERNEL_BLOB = "kernel_blob.bin"; -//jit产物,默认快照文件 -const VMSERVICE_SNAPSHOT_LIBRARY = "libvmservice_snapshot.so"; -//key值 -const SNAPSHOT_ASSET_PATH_KEY = "snapshot-asset-path"; -//key值 -const VM_SNAPSHOT_DATA_KEY = "vm-snapshot-data"; -//key值 -const ISOLATE_SNAPSHOT_DATA_KEY = "isolate-snapshot-data"; - - -const AOT_SHARED_LIBRARY_NAME = "aot-shared-library-name"; - -const AOT_VMSERVICE_SHARED_LIBRARY_NAME = "aot-vmservice-shared-library-name"; - -//文件路径分隔符 -const FILE_SEPARATOR = "/"; - -/** - * 定位在hap包中的flutter资源,并且加载flutter native library. - */ -export default class FlutterLoader { - flutterNapi: FlutterNapi; - initResult: InitResult | null = null; - flutterApplicationInfo: FlutterApplicationInfo | null = null; - context: common.Context | null = null; - initialized: boolean = false; - //初始化开始时间戳 - initStartTimestampMillis: number = 0; - - constructor(flutterNapi: FlutterNapi) { - this.flutterNapi = flutterNapi; - } - - /** - * Starts initialization of the native system. - * - *

This loads the Flutter engine's native library to enable subsequent JNI calls. This also - * starts locating and unpacking Dart resources packaged in the app's APK. - * - *

Calling this method multiple times has no effect. - * - * @param applicationContext The Android application context. - * @param settings Configuration settings. - */ - async startInitialization(context: common.Context) { - Log.d(TAG, "flutterLoader start init") - this.initStartTimestampMillis = Date.now(); - this.context = context; - this.flutterApplicationInfo = ApplicationInfoLoader.load(context); - Log.d(TAG, "context.filesDir=" + context.filesDir) - Log.d(TAG, "context.cacheDir=" + context.cacheDir) - Log.d(TAG, "context.bundleCodeDir=" + context.bundleCodeDir) - if (this.flutterApplicationInfo!.isDebugMode) { - await this.copyResource(context) - } - this.initResult = new InitResult( - `${context.filesDir}/`, - `${context.cacheDir}/`, - `${context.filesDir}` - ) - Log.d(TAG, "flutterLoader end init") - } - - private async copyResource(context: common.Context) { - let filePath = context.filesDir + FILE_SEPARATOR + this.flutterApplicationInfo!.flutterAssetsDir - if (!fs.accessSync(filePath + FILE_SEPARATOR + DEFAULT_KERNEL_BLOB) && this.context != null) { - Log.d(TAG, "start copyResource") - fs.mkdirSync(filePath) - - let icudtlBuffer = await this.context.resourceManager.getRawFileContent(this.flutterApplicationInfo!.flutterAssetsDir + "/icudtl.dat") - let icudtlFile = fs.openSync(filePath + FILE_SEPARATOR + "/icudtl.dat", fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE) - fs.writeSync(icudtlFile.fd, icudtlBuffer.buffer) - - let kernelBuffer = await this.context.resourceManager.getRawFileContent(this.flutterApplicationInfo!.flutterAssetsDir + FILE_SEPARATOR + DEFAULT_KERNEL_BLOB) - let kernelFile = fs.openSync(filePath + FILE_SEPARATOR + DEFAULT_KERNEL_BLOB, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE) - fs.writeSync(kernelFile.fd, kernelBuffer.buffer) - - let vmBuffer = await this.context.resourceManager.getRawFileContent(this.flutterApplicationInfo!.flutterAssetsDir + FILE_SEPARATOR + this.flutterApplicationInfo!.vmSnapshotData) - let vmFile = fs.openSync(filePath + FILE_SEPARATOR + this.flutterApplicationInfo!.vmSnapshotData, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE) - fs.writeSync(vmFile.fd, vmBuffer.buffer) - - let isolateBuffer = await this.context.resourceManager.getRawFileContent(this.flutterApplicationInfo!.flutterAssetsDir + FILE_SEPARATOR + this.flutterApplicationInfo!.isolateSnapshotData) - let isolateFile = fs.openSync(filePath + FILE_SEPARATOR + this.flutterApplicationInfo!.isolateSnapshotData, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE) - fs.writeSync(isolateFile.fd, isolateBuffer.buffer) - Log.d(TAG, "copyResource end") - } else { - Log.d(TAG, "no copyResource") - } - } - - /** - * 初始化dart虚拟机方法 - * @param flutterShellArgs - */ - ensureInitializationComplete(shellArgs: Array | null) { - if (this.initialized) { - return; - } - Log.d(TAG, "ensureInitializationComplete") - if (shellArgs == null) { - shellArgs = new Array(); - } - shellArgs.push( - "--icu-native-lib-path=" - + this.flutterApplicationInfo!.nativeLibraryDir - + FILE_SEPARATOR + DEFAULT_LIBRARY - ); - - let kernelPath: string = ""; - if (this.flutterApplicationInfo!.isDebugMode) { - Log.d(TAG, "this.initResult!.dataDirPath=" + this.initResult!.dataDirPath) - const snapshotAssetPath = this.initResult!.dataDirPath + FILE_SEPARATOR + this.flutterApplicationInfo!.flutterAssetsDir; - kernelPath = snapshotAssetPath + FILE_SEPARATOR + DEFAULT_KERNEL_BLOB; - shellArgs.push("--icu-data-file-path=" + snapshotAssetPath + "/icudtl.dat") - shellArgs.push("--" + SNAPSHOT_ASSET_PATH_KEY + "=" + snapshotAssetPath); - shellArgs.push("--" + VM_SNAPSHOT_DATA_KEY + "=" + this.flutterApplicationInfo!.vmSnapshotData); - shellArgs.push( - "--" + ISOLATE_SNAPSHOT_DATA_KEY + "=" + this.flutterApplicationInfo!.isolateSnapshotData); - } else { - shellArgs.push( - "--" + AOT_SHARED_LIBRARY_NAME + "=" + this.flutterApplicationInfo!.aotSharedLibraryName); - shellArgs.push( - "--" - + AOT_SHARED_LIBRARY_NAME - + "=" - + this.flutterApplicationInfo!.nativeLibraryDir - + FILE_SEPARATOR - + this.flutterApplicationInfo!.aotSharedLibraryName); - if (this.flutterApplicationInfo!.isProfile) { - shellArgs.push("--" + AOT_VMSERVICE_SHARED_LIBRARY_NAME + "=" + VMSERVICE_SNAPSHOT_LIBRARY); - } - } - shellArgs.push("--cache-dir-path=" + this.initResult!.engineCachesPath); - if (StringUtils.isNotEmpty(this.flutterApplicationInfo!.domainNetworkPolicy)) { - shellArgs.push("--domain-network-policy=" + this.flutterApplicationInfo!.domainNetworkPolicy); - } - - const resourceCacheMaxBytesThreshold = 1080 * 1920 * 12 * 4; - shellArgs.push("--resource-cache-max-bytes-threshold=" + resourceCacheMaxBytesThreshold); - - shellArgs.push("--prefetched-default-font-manager"); - - shellArgs.push("--leak-vm=" + true); - - //shellArgs.push("--enable-impeller"); - - // //最终初始化操作 - const costTime = Date.now() - this.initStartTimestampMillis; - this.flutterNapi!.init( - this.context!, - shellArgs, - kernelPath, - this.initResult!.appStoragePath, - this.initResult!.engineCachesPath!, - costTime - ); - this.initialized = true; - } - - findAppBundlePath(): string { - return this.flutterApplicationInfo == null ? "" : this.flutterApplicationInfo!.flutterAssetsDir; - } - - getLookupKeyForAsset(asset: string, packageName?: string): string { - return this.fullAssetPathFrom(asset); - } - - fullAssetPathFrom(filePath: string): string { - return this.flutterApplicationInfo == null ? "" : this.flutterApplicationInfo!.flutterAssetsDir + "/" + filePath; - } -} - -class InitResult { - appStoragePath: string; - engineCachesPath: string; - dataDirPath: string; - - constructor(appStoragePath: string, - engineCachesPath: string, - dataDirPath: string) { - this.appStoragePath = appStoragePath; - this.engineCachesPath = engineCachesPath; - this.dataDirPath = dataDirPath; - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets deleted file mode 100644 index f2544f8e20b9041a7db93d99ba3e1a2db3da67a5..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorView.ets +++ /dev/null @@ -1,135 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -import ArrayList from '@ohos.util.ArrayList'; -import matrix4 from '@ohos.matrix4'; -import { DVModel, DVModelEvents, DVModelParameters } from '../../../view/DynamicView/dynamicView'; -import { createDVModelFromJson } from '../../../view/DynamicView/dynamicViewJson'; -import OhosTouchProcessor from '../../ohos/OhosTouchProcessor'; -import { FlutterMutator, FlutterMutatorsStack } from './FlutterMutatorsStack' - -export class FlutterMutatorView { - private mutatorsStack: FlutterMutatorsStack | null = null; - private screenDensity: number = 0; - private left: number = 0; - private top: number = 0; - private prevLeft: number = 0; - private prevTop: number = 0; - - private onTouch = (touchEvent: ESObject) => { - let params = this.model.params as Record; - switch (touchEvent.type) { - case TouchType.Down: - this.prevLeft = this.left; - this.prevTop = this.top; - params.translateX = this.left; - params.translateY = this.top; - break; - case TouchType.Move: - params.translateX = this.prevLeft; - params.translateY = this.prevTop; - this.prevLeft = this.left; - this.prevTop = this.top; - break; - case TouchType.Up: - case TouchType.Cancel: - default: - break; - } - } - - private model: DVModel = createDVModelFromJson( - new DVModelParam("Column", [], { backgroundColor: Color.Red }, { onTouch: this.onTouch }) - ); - - setOnDescendantFocusChangeListener(onFocus: () => void, onBlur: () => void) { - // this.model.events["onFocus"] = onFocus; - // this.model.events["onBlur"] = onBlur; - let events2 = this.model.events as Record; - events2.onFocus = onFocus; - events2.onBlur = onBlur; - } - - public setLayoutParams(parameters: DVModelParameters): void { - if (this.model.params == null) { - this.model.params = new DVModelParameters(); - } - let params = this.model.params as Record | matrix4.Matrix4Transit>; - let parametersRecord = parameters as Record | matrix4.Matrix4Transit>; - params.marginLeft = parametersRecord['marginLeft']; - params.marginTop = parametersRecord['marginTop']; - params.width = parametersRecord['width']; - params.height = parametersRecord['height']; - this.left = parametersRecord.marginLeft as number; - this.top = parametersRecord.marginTop as number ; - } - - public addDvModel(model: DVModel): void { - this.model?.children.push(model); - } - - public readyToDisplay(mutatorsStack: FlutterMutatorsStack, left: number, top: number, width: number, height: number) { - this.mutatorsStack = mutatorsStack; - this.left = left; - this.top = top; - let parameters = new DVModelParameters() as Record | matrix4.Matrix4Transit>; - parameters['marginLeft'] = left; - parameters['marginTop'] = top; - parameters['width'] = width; - parameters['height'] = height; - this.setLayoutParams(parameters); - this.dealMutators(); - } - - private dealMutators() { - if (this.mutatorsStack == null) { - return; - } - let paths = this.mutatorsStack.getFinalClippingPaths(); - let rects = this.mutatorsStack.getFinalClippingRects(); - let matrix = this.mutatorsStack.getFinalMatrix(); - let params = this.model.params as Record | matrix4.Matrix4Transit>; - if (!paths.isEmpty()) { - let path = paths.getLast(); - params.pathWidth = path.width; - params.pathHeight = path.height; - params.pathCommands = path.commands; - } - if (!rects.isEmpty()) { - let rect = rects.getLast(); - params.rectWidth = rect.width; - params.rectHeight = rect.height; - params.rectRadius = rect.radius; - } - params.matrix = matrix; - } - - public getDvModel(): DVModel | undefined { - return this.model; - } -} - -class DVModelParam { - compType: string - children: [] - attributes: ESObject - events: ESObject - - constructor(compType: string, children: [], attributes: ESObject, events: ESObject) { - this.compType = compType; - this.children = children; - this.attributes = attributes; - this.events = events; - } -}; \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorsStack.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorsStack.ets deleted file mode 100644 index 2f53c6c041bfd92ea74c3896d00a04f6b5590e2e..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/mutatorsstack/FlutterMutatorsStack.ets +++ /dev/null @@ -1,136 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import matrix4 from '@ohos.matrix4' -import List from '@ohos.util.List'; - -export enum FlutterMutatorType { - CLIP_RECT, - CLIP_PATH, - TRANSFORM, - OPACITY -} - -class Rect { - width: number; - height: number; - radius: string | number | Array; - - constructor(width:number, height:number, radius?:string | number | Array) { - this.width = width; - this.height = height; - this.radius = radius ?? 0; - } -} - -class Path { - width: number | string; - height: number | string; - commands: string; - - constructor(width:number | string, height:number | string, commands?:string) { - this.width = width; - this.height = height; - this.commands = commands ?? ''; - } -} - -export class FlutterMutator { - private matrix: matrix4.Matrix4Transit | null = null; - private rect: Rect = new Rect(0, 0); - private path: Path = new Path(0, 0); - - constructor(args: matrix4.Matrix4Transit | Rect | Path) { - if (args instanceof Rect) { - this.rect = args; - } else if (args instanceof Path) { - this.path = args; - } else { - this.matrix = args; - } - } - - public getMatrix() : matrix4.Matrix4Transit | null { - return this.matrix; - } - - public getRect() { - return this.rect; - } - - public getPath() { - return this.path; - } -} - -export class FlutterMutatorsStack { - private mutators: List; - private finalClippingPaths: List; - private finalClippingRects: List; - - private finalMatrix: matrix4.Matrix4Transit; - - constructor() { - this.mutators = new List(); - this.finalClippingPaths = new List(); - this.finalClippingRects = new List(); - this.finalMatrix = matrix4.identity(); - } - - public pushTransform(values: Array): void { - if (values.length != 16) { - return; - } - let index = 0; - let matrix = matrix4.init( - [values[index++], values[index++], values[index++], values[index++], - values[index++], values[index++], values[index++], values[index++], - values[index++], values[index++], values[index++], values[index++], - values[index++], values[index++], values[index++], values[index++]]); - let mutator = new FlutterMutator(matrix); - this.mutators.add(mutator); - this.finalMatrix.combine(matrix); - } - - public pushClipRect(width:number, height:number, radius?:number) { - let rect = new Rect(width, height, radius); - let mutator = new FlutterMutator(rect); - this.mutators.add(mutator); - this.finalClippingRects.add(rect); - } - - public pushClipPath(width:number, height:number, command?:string) { - let path = new Path(width, height, command); - let mutator = new FlutterMutator(path); - this.mutators.add(mutator); - this.finalClippingPaths.add(path); - } - - public getMutators() { - return this.mutators; - } - - public getFinalClippingPaths() { - return this.finalClippingPaths; - } - - public getFinalClippingRects() { - return this.finalClippingRects; - } - - public getFinalMatrix() { - return this.finalMatrix; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/FlutterPlugin.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/FlutterPlugin.ets deleted file mode 100644 index 6b0987a80677a337a548f4c876941dd13cfda266..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/FlutterPlugin.ets +++ /dev/null @@ -1,125 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import common from '@ohos.app.ability.common'; -import { BinaryMessenger } from '../../../plugin/common/BinaryMessenger'; -import PlatformViewFactory from '../../../plugin/platform/PlatformViewFactory'; -import PlatformViewRegistry from '../../../plugin/platform/PlatformViewRegistry'; -import FlutterEngineGroup from '../FlutterEngineGroup'; - -export interface FlutterPlugin { - //获取唯一的类名 类似安卓的ClassRelevant resources that this {@code FlutterPlugin} may need are provided via the {@code - * binding}. The {@code binding} may be cached and referenced until {@link - * #onDetachedFromEngine(FlutterPluginBinding)} is invoked and returns. - */ - onAttachedToEngine(binding: FlutterPluginBinding): void; - - /** - * This {@code FlutterPlugin} has been removed from a {@link - * io.flutter.embedding.engine.FlutterEngine} instance. - * - *

The {@code binding} passed to this method is the same instance that was passed in {@link - * #onAttachedToEngine(FlutterPluginBinding)}. It is provided again in this method as a - * convenience. The {@code binding} may be referenced during the execution of this method, but it - * must not be cached or referenced after this method returns. - * - *

{@code FlutterPlugin}s should release all resources in this method. - */ - onDetachedFromEngine(binding: FlutterPluginBinding): void; -} - -export class FlutterPluginBinding { - private applicationContext: common.Context; - private binaryMessenger: BinaryMessenger; - private flutterAssets: FlutterAssets; - private group: FlutterEngineGroup; - private platformViewRegistry: PlatformViewRegistry; - - constructor(applicationContext: common.Context, binaryMessenger: BinaryMessenger, flutterAssets: FlutterAssets, group: FlutterEngineGroup, platformViewRegistry?: PlatformViewRegistry) { - this.applicationContext = applicationContext; - this.binaryMessenger = binaryMessenger; - this.flutterAssets = flutterAssets; - this.group = group; - this.platformViewRegistry = platformViewRegistry ?? new EmptyPlatformViewRegistry(); - } - - getApplicationContext(): common.Context { - return this.applicationContext; - } - - getBinaryMessenger(): BinaryMessenger { - return this.binaryMessenger; - } - - getFlutterAssets(): FlutterAssets { - return this.flutterAssets; - } - - getEngineGroup(): FlutterEngineGroup { - return this.group; - } - - public getPlatformViewRegistry(): PlatformViewRegistry { - return this.platformViewRegistry; - } -} - -/** Provides Flutter plugins with access to Flutter asset information. */ -export interface FlutterAssets { - /** - * Returns the relative file path to the Flutter asset with the given name, including the file's - * extension, e.g., {@code "myImage.jpg"}. - * - *

The returned file path is relative to the Ohos app's standard assets directory. - * Therefore, the returned path is appropriate to pass to Ohos's {@code ResourceManage}, but - * the path is not appropriate to load as an absolute path. - */ - getAssetFilePathByName(assetFileName: string): string; - - /** - * Same as {@link #getAssetFilePathByName(String)} but with added support for an explicit - * Ohos {@code bundleName}. - */ - getAssetFilePathByName(assetFileName: string, bundleName: string): string; - - /** - * Returns the relative file path to the Flutter asset with the given subpath, including the - * file's extension, e.g., {@code "/dir1/dir2/myImage.jpg"}. - * - *

The returned file path is relative to the Ohos app's standard assets directory. - * Therefore, the returned path is appropriate to pass to Ohos's {@code ResourceManage}, but - * the path is not appropriate to load as an absolute path. - */ - getAssetFilePathBySubpath(assetSubpath: string): string; - - /** - * Same as {@link #getAssetFilePathBySubpath(String)} but with added support for an explicit - * Ohos {@code bundleName}. - */ - getAssetFilePathBySubpath(assetSubpath: string, bundleName: string): string; -} - -class EmptyPlatformViewRegistry implements PlatformViewRegistry { - registerViewFactory(viewTypeId: string, factory: PlatformViewFactory): boolean { - return false; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/PluginRegistry.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/PluginRegistry.ets deleted file mode 100644 index 1a322ec2ba1bbcfcbce180b00ec4df6356733180..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/PluginRegistry.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { FlutterPlugin } from './FlutterPlugin'; - -export default interface PluginRegistry { - /** - * Attaches the given {@code plugin} to the {@link io.flutter.embedding.engine.FlutterEngine} - * associated with this {@code PluginRegistry}. - */ - add(plugin: FlutterPlugin): void; - - /** - * Attaches the given {@code plugins} to the {@link io.flutter.embedding.engine.FlutterEngine} - * associated with this {@code PluginRegistry}. - */ - addList(plugins: Set): void; - - /** - * Returns true if a plugin of the given type is currently attached to the {@link - * io.flutter.embedding.engine.FlutterEngine} associated with this {@code PluginRegistry}. - */ - //Class - has(pluginClassName: string): boolean; - - /** - * Returns the instance of a plugin that is currently attached to the {@link - * io.flutter.embedding.engine.FlutterEngine} associated with this {@code PluginRegistry}, which - * matches the given {@code pluginClass}. - * - *

If no matching plugin is found, {@code null} is returned. - */ - //Class - get(pluginClassName: string): FlutterPlugin; - - /** - * Detaches the plugin of the given type from the {@link - * io.flutter.embedding.engine.FlutterEngine} associated with this {@code PluginRegistry}. - * - *

If no such plugin exists, this method does nothing. - */ - //Class - remove(pluginClassName: string): void; - - /** - * Detaches the plugins of the given types from the {@link - * io.flutter.embedding.engine.FlutterEngine} associated with this {@code PluginRegistry}. - * - *

If no such plugins exist, this method does nothing. - */ - //Class - removeList(pluginClassNames: Set): void; - - /** - * Detaches all plugins that are currently attached to the {@link - * io.flutter.embedding.engine.FlutterEngine} associated with this {@code PluginRegistry}. - * - *

If no plugins are currently attached, this method does nothing. - */ - removeAll(): void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityAware.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityAware.ets deleted file mode 100644 index bd68f68aee68859e0c13b696743c8d9d280b7500..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityAware.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/** - * {@link io.flutter.embedding.engine.plugins.FlutterPlugin} that is interested in {@link - * ohos.app.ability.UIAbility} lifecycle events related to a {@link - * io.flutter.embedding.engine.FlutterEngine} running within the given {@link ohos.app.ability.UIAbility}. - */ -import { AbilityPluginBinding } from './AbilityPluginBinding'; - -export default interface AbilityAware { - /** - * This {@code AbilityAware} {@link io.flutter.embedding.engine.plugins.FlutterPlugin} is now - * associated with an {@link ohos.app.ability.UIAbility}. - * - *

This method can be invoked in 1 of 2 situations: - * - *

    - *
  • This {@code AbilityAware} {@link io.flutter.embedding.engine.plugins.FlutterPlugin} was - * just added to a {@link io.flutter.embedding.engine.FlutterEngine} that was already - * connected to a running {@link ohos.app.ability.UIAbility}. - *
  • This {@code AbilityAware} {@link io.flutter.embedding.engine.plugins.FlutterPlugin} was - * already added to a {@link io.flutter.embedding.engine.FlutterEngine} and that {@link - * io.flutter.embedding.engine.FlutterEngine} was just connected to an {@link - * ohos.app.ability.UIAbility}. - *
- * - * The given {@link AbilityPluginBinding} contains {@link ohos.app.ability.UIAbility}-related - * references that an {@code AbilityAware} {@link - * io.flutter.embedding.engine.plugins.FlutterPlugin} may require, such as a reference to the - * actual {@link ohos.app.ability.UIAbility} in question. The {@link AbilityPluginBinding} may be - * referenced until either {@link #onDetachedFromAbilityForConfigChanges()} or {@link - * #onDetachedFromAbility()} is invoked. At the conclusion of either of those methods, the - * binding is no longer valid. Clear any references to the binding or its resources, and do not - * invoke any further methods on the binding or its resources. - */ - onAttachedToAbility(binding: AbilityPluginBinding): void ; - - /** - * This plugin has been detached from an {@link ohos.app.ability.UIAbility}. - * - *

Detachment can occur for a number of reasons. - * - *

    - *
  • The app is no longer visible and the {@link ohos.app.ability.UIAbility} instance has been - * destroyed. - *
  • The {@link io.flutter.embedding.engine.FlutterEngine} that this plugin is connected to - * has been detached from its {@link io.flutter.embedding.android.FlutterView}. - *
  • This {@code AbilityAware} plugin has been removed from its {@link - * io.flutter.embedding.engine.FlutterEngine}. - *
- * - * By the end of this method, the {@link ohos.app.ability.UIAbility} that was made available in {@link - * #onAttachedToAbility(AbilityPluginBinding)} is no longer valid. Any references to the - * associated {@link ohos.app.ability.UIAbility} or {@link AbilityPluginBinding} should be cleared. - * - *

Any {@code Lifecycle} listeners that were registered in {@link - * #onAttachedToAbility(AbilityPluginBinding)} or {@link - * #onReattachedToAbilityForConfigChanges(AbilityPluginBinding)} should be deregistered here to - * avoid a possible memory leak and other side effects. - */ - onDetachedFromAbility(): void; -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityControlSurface.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityControlSurface.ets deleted file mode 100644 index 947ccef4ba35c189f2c74f81c0f53eaf025cba36..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityControlSurface.ets +++ /dev/null @@ -1,27 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import AbilityConstant from '@ohos.app.ability.AbilityConstant'; -import Want from '@ohos.app.ability.Want'; -import UIAbility from '@ohos.app.ability.UIAbility'; -import ExclusiveAppComponent from '../../../ohos/ExclusiveAppComponent'; - -export default interface ActivityControlSurface { - attachToAbility(exclusiveActivity: ExclusiveAppComponent): void; - detachFromAbility(): void; - onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void; - onWindowFocusChanged(hasFocus: boolean): void; - onSaveState(reason: AbilityConstant.StateType, wantParam: Record): AbilityConstant.OnSaveResult; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityPluginBinding.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityPluginBinding.ets deleted file mode 100644 index 349010b14ee70aff187ff938c146f14d6c7a080e..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/plugins/ability/AbilityPluginBinding.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import UIAbility from '@ohos.app.ability.UIAbility' -import Want from '@ohos.app.ability.Want'; -import AbilityConstant from '@ohos.app.ability.AbilityConstant'; - -export interface AbilityPluginBinding { - getAbility(): UIAbility; - /** - * Adds a listener that is invoked whenever the associated {@link ohos.app.ability.UIAbility}'s {@code - * onNewWant(...)} method is invoked. - */ - addOnNewWantListener(listener: NewWantListener): void; - - /** - * Removes a listener that was added in {@link - * #addOnNewWantListener(NewWantListener)}. - */ - removeOnNewWantListener(listener: NewWantListener): void; - - /** - * Adds a listener that is invoked whenever the associated {@link ohos.app.ability.UIAbility}'s {@code - * windowStageEvent} method is invoked. - */ - addOnWindowFocusChangedListener(listener: WindowFocusChangedListener): void; - - /** - * Removes a listener that was added in {@link - * #addOnWindowFocusChangedListener(WindowFocusChangedListener)}. - */ - removeOnWindowFocusChangedListener(listener: WindowFocusChangedListener): void; - - /** - * Adds a listener that is invoked when the associated {@code UIAbility} saves - * and restores instance state. - */ - addOnSaveStateListener(listener: OnSaveStateListener): void; - - /** - * Removes a listener that was added in {@link - * #addOnSaveStateListener(OnSaveStateListener)}. - */ - removeOnSaveStateListener(listener: OnSaveStateListener): void; -} - -/** - * Delegate interface for handling new wants on behalf of the main {@link ohos.app.ability.UIAbility}. - */ -export interface NewWantListener { - /** - * @param intent The new want that was started for the UIAbility. - * @return true if the new want has been handled. - */ - onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void; -} - -/** - * Delegate interface for handling window focus changes on behalf of the main {@link - * ohos.app.ability.UIAbility}. - */ -export interface WindowFocusChangedListener { - onWindowFocusChanged(hasFocus: boolean): void; -} - -export interface OnSaveStateListener { - /** - * Invoked when the associated {@code UIAbility} or {@code Fragment} executes {@link - * Activity#onSaveState(Bundle)}. - */ - onSaveState(reason: AbilityConstant.StateType, wantParam: Record): AbilityConstant.OnSaveResult; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/renderer/FlutterUiDisplayListener.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/renderer/FlutterUiDisplayListener.ets deleted file mode 100644 index 2a0af4009cafd2cf5229f082a41ed2d445c69caa..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/renderer/FlutterUiDisplayListener.ets +++ /dev/null @@ -1,20 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export interface FlutterUiDisplayListener { - onFlutterUiDisplayed(): void; - - onFlutterUiNoLongerDisplayed(): void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets deleted file mode 100644 index 804994eda64980ff6d23470994cf32cebfed977b..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/AccessibilityChannel.ets +++ /dev/null @@ -1,119 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; -import BasicMessageChannel, { MessageHandler, Reply} from '../../../plugin/common/BasicMessageChannel'; -import HashMap from '@ohos.util.HashMap'; -import FlutterNapi, {AccessibilityDelegate} from '../FlutterNapi'; -import { Action } from '../../../view/AccessibilityBridge' -import StandardMessageCodec from '../../../plugin/common/StandardMessageCodec'; -import StringUtils from '../../../util/StringUtils'; - -/** -* 辅助功能channel -*/ -export default class AccessibilityChannel implements MessageHandler{ - private static TAG = "AccessibilityChannel"; - private static CHANNEL_NAME = "flutter/accessibility"; - private channel: BasicMessageChannel; - private flutterNapi: FlutterNapi; - private handler: AccessibilityMessageHandler | null = null; - private nextReplyId: number = 1; - - onMessage(message: object, reply: Reply): void { - if (this.handler == null) { - Log.i(AccessibilityChannel.TAG, "NULL"); - reply.reply(StringUtils.stringToArrayBuffer("")); - return; - } - let annotatedEvent: HashMap = message as HashMap; - let type: string = annotatedEvent.get("type") as string; - let data: HashMap = annotatedEvent.get("data") as HashMap; - - Log.i(AccessibilityChannel.TAG, "Received " + type + " message."); - switch (type) { - case "announce": { - Log.i(AccessibilityChannel.TAG, "Announce"); - let announceMessage: string = data.get("message"); - if (announceMessage != null) { - this.handler.announce(announceMessage); - } - break; - } - case "tap": { - Log.i(AccessibilityChannel.TAG, "Tag"); - let nodeId: number = annotatedEvent.get("nodeId"); - if (nodeId != null) { - this.handler.onTap(nodeId); - } - break; - } - case "longPress": { - Log.i(AccessibilityChannel.TAG, "LongPress"); - let nodeId: number = annotatedEvent.get("nodeId"); - if (nodeId != null) { - this.handler.onLongPress(nodeId); - } - break; - } - case "tooltip": { - Log.i(AccessibilityChannel.TAG, "ToolTip"); - let tooltipMessage: string = data.get("message"); - if (tooltipMessage != null) { - this.handler.onTooltip(tooltipMessage); - } - break; - } - } - reply.reply(StringUtils.stringToArrayBuffer("")); - } - - constructor(dartExecutor: DartExecutor, flutterNapi: FlutterNapi) { - Log.i(AccessibilityChannel.TAG, "Channel entered"); - this.channel = new BasicMessageChannel(dartExecutor, AccessibilityChannel.CHANNEL_NAME, StandardMessageCodec.INSTANCE); - this.channel.setMessageHandler(this); - this.flutterNapi = flutterNapi; - } - - onOhosAccessibilityEnabled(): void { - let replyId: number = this.nextReplyId++; - this.flutterNapi.setSemanticsEnabled(true, replyId); - } - - onOhosAccessibilityFeatures(accessibilityFeatureFlags: number): void { - let replyId: number = this.nextReplyId++; - this.flutterNapi.setAccessibilityFeatures(accessibilityFeatureFlags, replyId); - } - - dispatchSemanticsAction(virtualViewId: number, action: Action): void { - let replyId: number = this.nextReplyId++; - this.flutterNapi.dispatchSemanticsAction(virtualViewId, action, replyId); - } - - setAccessibilityMessageHandler(handler: AccessibilityMessageHandler): void { - this.handler = handler; - let replyId: number = this.nextReplyId++; - this.flutterNapi.setAccessibilityDelegate(handler, replyId); - } - -} - -interface AccessibilityMessageHandler extends AccessibilityDelegate { - announce(message: string): void; - onTap(nodeId: number): void; - onLongPress(nodeId: number): void; - onTooltip(nodeId: string): void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/KeyEventChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/KeyEventChannel.ets deleted file mode 100644 index 8ac0e08bf3da27a8a14a8e83c47099184ba63945..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/KeyEventChannel.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import BasicMessageChannel from '../../../plugin/common/BasicMessageChannel'; -import { BinaryMessenger } from '../../../plugin/common/BinaryMessenger'; -import { Reply } from '../../../plugin/common/BasicMessageChannel'; -import { Action, Key, KeyEvent } from '@ohos.multimodalInput.keyEvent'; -import Log from '../../../util/Log'; -import JSONMessageCodec from '../../../plugin/common/JSONMessageCodec'; - -export default class KeyEventChannel { - private static TAG = "KeyEventChannel"; - private static CHANNEL_NAME = "flutter/keyevent"; - private channel : BasicMessageChannel>; - - constructor(binaryMessenger: BinaryMessenger) { - this.channel = new BasicMessageChannel>(binaryMessenger, KeyEventChannel.CHANNEL_NAME, JSONMessageCodec.INSTANCE); - } - - sendFlutterKeyEvent(keyEvent: FlutterKeyEvent, - isKeyUp: boolean, - responseHandler: EventResponseHandler): void { - this.channel.send(this.encodeKeyEvent(keyEvent, isKeyUp), - (message:Map) => { - let isEventHandled = false; - try { - if (message != null) { - isEventHandled = message.get("handled") as boolean; - } - } catch (e) { - Log.e(KeyEventChannel.TAG, "Unable to unpack JSON message: " + e); - } - responseHandler.onFrameworkResponse(isEventHandled); - } - ); - } - - encodeKeyEvent(keyEvent: FlutterKeyEvent, isKeyUp: boolean): Map { - let message: Map = new Map(); - message.set("type", isKeyUp ? "keyup" : "keydown"); - message.set("keymap", "ohos"); - message.set("codePoint", keyEvent.event.unicodeChar); - message.set("keyCode", keyEvent.event.key.code); - message.set("deviceId", keyEvent.event.key.deviceId); - message.set("character", keyEvent.event.key.code.toString()); - message.set("repeatCount", 1); - return message; - } - - -} - -export interface EventResponseHandler { - onFrameworkResponse(isEventHandled: boolean): void; -} - -export class FlutterKeyEvent { - event: KeyEvent; - - constructor( ohosKeyEvent: KeyEvent) { - this.event = ohosKeyEvent; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/LifecycleChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/LifecycleChannel.ets deleted file mode 100644 index ce5acbdbbae50078e7c339c767a34a178413bf2d..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/LifecycleChannel.ets +++ /dev/null @@ -1,105 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import Log from '../../../util/Log'; -import StringCodec from '../../../plugin/common/StringCodec'; -import DartExecutor from '../dart/DartExecutor'; -import BasicMessageChannel from '../../../plugin/common/BasicMessageChannel'; - -/** - * 生命周期channel - */ -export default class LifecycleChannel { - private static TAG = "LifecycleChannel"; - private static CHANNEL_NAME = "flutter/lifecycle"; - - // These should stay in sync with the AppLifecycleState enum in the framework. - private static RESUMED = "AppLifecycleState.resumed"; - private static INACTIVE = "AppLifecycleState.inactive"; - private static PAUSED = "AppLifecycleState.paused"; - private static DETACHED = "AppLifecycleState.detached"; - - private lastOhosState = ""; - private lastFlutterState = ""; - private lastFocus = true; - - private channel: BasicMessageChannel - - constructor(dartExecutor: DartExecutor) { - this.channel = new BasicMessageChannel(dartExecutor, LifecycleChannel.CHANNEL_NAME, StringCodec.INSTANCE) - } - - // Called if at least one window in the app has focus. - aWindowIsFocused(): void { - this.sendState(this.lastOhosState, true); - } - - // Called if no windows in the app have focus. - noWindowsAreFocused(): void { - this.sendState(this.lastOhosState, false); - } - - appIsResumed(): void { - this.sendState(LifecycleChannel.RESUMED, this.lastFocus); - } - - appIsInactive(): void { - this.sendState(LifecycleChannel.INACTIVE, this.lastFocus); - } - - appIsPaused(): void { - this.sendState(LifecycleChannel.PAUSED, this.lastFocus); - } - - appIsDetached(): void { - this.sendState(LifecycleChannel.DETACHED, this.lastFocus); - } - - // Here's the state table this implements: - // - // | UIAbility State | Window focused | Flutter state | - // |-----------------|----------------|---------------| - // | onCreate | true | resumed | - // | onCreate | false | inactive | - // | onForeground | true | resumed | - // | onForeground | false | inactive | - // | onBackground | true | paused | - // | onBackground | false | paused | - // | onDestroy | true | detached | - // | onDestroy | false | detached | - - private sendState(state: string, hasFocus: boolean): void { - if (this.lastOhosState == state && hasFocus == this.lastFocus) { - // No inputs changed, so Flutter state could not have changed. - return; - } - let newState: string; - if (state == LifecycleChannel.RESUMED) { - newState = hasFocus ? LifecycleChannel.RESUMED : LifecycleChannel.INACTIVE; - } else { - newState = state; - } - // Keep the last reported values for future updates. - this.lastOhosState = state; - this.lastFocus = hasFocus; - if (newState == this.lastFlutterState) { - // No change in the resulting Flutter state, so don't report anything. - return; - } - Log.i(LifecycleChannel.TAG, "Sending " + newState + " message."); - this.channel.send(newState); - this.lastFlutterState = newState; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/LocalizationChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/LocalizationChannel.ets deleted file mode 100644 index d34d81816a6382de13bdef7a7690421c2363c318..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/LocalizationChannel.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import DartExecutor from '../dart/DartExecutor'; -import MethodChannel, { MethodCallHandler, MethodResult} from '../../../plugin/common/MethodChannel'; -import MethodCall from '../../../plugin/common/MethodCall'; -import List from '@ohos.util.List'; -import JSONMethodCodec from '../../../plugin/common/JSONMethodCodec'; -import intl from '@ohos.intl'; -import Log from '../../../util/Log'; - -const TAG = "LocalizationChannel"; -export default class LocalizationChannel implements MethodCallHandler{ - private static TAG = "LocalizationChannel"; - private static CHANNEL_NAME = "flutter/localization"; - private channel: MethodChannel; - private localizationMessageHandler: LocalizationMessageHandler | null = null; - - onMethodCall(call: MethodCall, result: MethodResult) :void { - if (this.localizationMessageHandler == null) { - Log.e(TAG, "localizationMessageHandler is null"); - return; - } - let method: string = call.method; - switch (method) { - case "Localization.getStringResource": { - Log.i(TAG, "Localization.getStringResource enter"); - let key: string = call.argument("key"); - let localeString: string = ""; - if (call.hasArgument("locale")) { - localeString = call.argument("locale"); - } - result.success(this.localizationMessageHandler?.getStringResource(key, localeString)); - break; - } - default: { - result.notImplemented(); - break; - } - } - } - - constructor(dartExecutor: DartExecutor) { - this.channel = new MethodChannel(dartExecutor, LocalizationChannel.CHANNEL_NAME, JSONMethodCodec.INSTANCE); - this.channel.setMethodCallHandler(this); - } - - setLocalizationMessageHandler(localizationMessageHandler: LocalizationMessageHandler): void { - this.localizationMessageHandler = localizationMessageHandler; - } - - sendLocales(locales: Array): void { - this.channel.invokeMethod("setLocale", locales); - } -} - -export interface LocalizationMessageHandler { - getStringResource(key: string, local: string); -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/MouseCursorChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/MouseCursorChannel.ets deleted file mode 100644 index 3e8b3d4167c3aeb9c08e657e8c504e7c51f5214d..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/MouseCursorChannel.ets +++ /dev/null @@ -1,85 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import HashMap from '@ohos.util.HashMap'; -import MethodCall from '../../../plugin/common/MethodCall'; -import MethodChannel, { MethodCallHandler, MethodResult } from '../../../plugin/common/MethodChannel'; -import StandardMethodCodec from '../../../plugin/common/StandardMethodCodec'; -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; - -const TAG:string = 'MouseCursorChannel' - -export default class MouseCursorChannel implements MethodCallHandler { - public channel: MethodChannel; - - private mouseCursorMethodHandler: MouseCursorMethodHandler | null = null; - - onMethodCall(call: MethodCall, result: MethodResult): void { - if (this.mouseCursorMethodHandler === null) { - // if no explicit mouseCursorMethodHandler has been registered then we don't - // need to formed this call to an API. Return - Log.e(TAG, "mouseCursorMethodHandler is null") - return; - } - - let method: string = call.method; - Log.i(TAG, "Received '" + method + "' message."); - try { - // More methods are expected to be added here, hence the switch. - switch (method) { - case "activateSystemCursor": - let argument: HashMap = call.args; - let kind: string = argument.get("kind"); - try { - this.mouseCursorMethodHandler.activateSystemCursor(kind); - } catch (err) { - result.error("error", "Error when setting cursors: " + JSON.stringify(err), null); - break; - } - result.success(true); - break; - default: - break; - } - } catch (error) { - result.error("error", "UnHandled error: " + JSON.stringify(error), null) - } - } - - constructor(dartExecutor: DartExecutor) { - this.channel = new MethodChannel(dartExecutor, "flutter/mousecursor", StandardMethodCodec.INSTANCE); - this.channel.setMethodCallHandler(this); - } - - /** - * Sets the {@link MouseCursorMethodHandler} which receives all events and requests that are - * parsed from the underlying platform channel. - * @param mouseCursorMethodHandler - */ - public setMethodHandler(mouseCursorMethodHandler: MouseCursorMethodHandler | null): void { - this.mouseCursorMethodHandler = mouseCursorMethodHandler; - } - - public synthesizeMethodCall(call: MethodCall, result: MethodResult): void { - this.onMethodCall(call, result); - } -} - -export interface MouseCursorMethodHandler { - // Called when the pointer should start displaying a system mouse cursor - // specified by {@code shapeCode}. - activateSystemCursor(kind: String): void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/NavigationChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/NavigationChannel.ets deleted file mode 100644 index f7ebcb6926eb490ed2ee21cb8927e5ed2a202632..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/NavigationChannel.ets +++ /dev/null @@ -1,62 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import JSONMethodCodec from '../../../plugin/common/JSONMethodCodec'; -import MethodCall from '../../../plugin/common/MethodCall'; -import MethodChannel, { MethodCallHandler, MethodResult } from '../../../plugin/common/MethodChannel'; -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; - -export default class NavigationChannel { - private static TAG = "NavigationChannel"; - private channel: MethodChannel - - constructor(dartExecutor: DartExecutor) { - this.channel = new MethodChannel(dartExecutor, "flutter/navigation", JSONMethodCodec.INSTANCE); - // Provide a default handler that returns an empty response to any messages - // on this channel. - this.channel.setMethodCallHandler(new NavigationCallback()); - } - - setInitialRoute(initialRoute: string): void { - Log.i(NavigationChannel.TAG, "Sending message to set initial route to '" + initialRoute + "'"); - this.channel.invokeMethod("setInitialRoute", initialRoute); - } - - pushRoute(route: string): void { - Log.i(NavigationChannel.TAG, "Sending message to push route '" + route + "'"); - this.channel.invokeMethod("pushRoute", route); - } - - pushRouteInformation(route: string): void { - Log.i(NavigationChannel.TAG, "Sending message to push route information '" + route + "'"); - this.channel.invokeMethod("pushRouteInformation", new Map().set("location", route) ); - } - - popRoute(): void { - Log.i(NavigationChannel.TAG, "Sending message to pop route."); - this.channel.invokeMethod("popRoute", null); - } - - setMethodCallHandler(handler: MethodCallHandler) { - this.channel.setMethodCallHandler(handler); - } -} - -class NavigationCallback implements MethodCallHandler { - onMethodCall(call: MethodCall, result: MethodResult) { - result.success(null); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets deleted file mode 100644 index 615dac78fbc63252a13e2b485dde37c9ffdacbac..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformChannel.ets +++ /dev/null @@ -1,505 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import JSONMethodCodec from '../../../plugin/common/JSONMethodCodec'; -import MethodCall from '../../../plugin/common/MethodCall'; -import MethodChannel, { MethodCallHandler, MethodResult } from '../../../plugin/common/MethodChannel'; -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; -import pasteboard from '@ohos.pasteboard'; -import bundleManager from '@ohos.bundle.bundleManager'; -import window from '@ohos.window'; - -export default class PlatformChannel { - private static TAG = "PlatformChannel"; - private static CHANNEL_NAME = "flutter/platform"; - channel: MethodChannel; - platformMessageHandler: PlatformMessageHandler | null = null; - - constructor(dartExecutor: DartExecutor) { - this.channel = new MethodChannel(dartExecutor, PlatformChannel.CHANNEL_NAME, JSONMethodCodec.INSTANCE); - let callback = new PlatformMethodCallback(this); - this.channel.setMethodCallHandler(callback); - } - - setPlatformMessageHandler(platformMessageHandler: PlatformMessageHandler): void { - this.platformMessageHandler = platformMessageHandler; - } - - systemChromeChanged(overlaysAreVisible: boolean): void { - Log.d(PlatformChannel.TAG, "Sending 'systemUIChange' message."); - this.channel.invokeMethod("SystemChrome.systemUIChange", [overlaysAreVisible]); - } - - decodeOrientations(encodedOrientations: string[]): number { - let requestedOrientation = 0x00; - let firstRequestedOrientation = 0x00; - for(let index = 0; index< encodedOrientations.length; index += 1) { - let encodedOrientation = encodedOrientations[index]; - Log.d(PlatformChannel.TAG,"encodedOrientation[" + index + "]: "+encodedOrientation); - let orientation = this.getDeviceOrientationFromValue(encodedOrientation); - switch (orientation) { - case DeviceOrientation.PORTRAIT_UP: - requestedOrientation |= 0x01; - break; - case DeviceOrientation.PORTRAIT_DOWN: - requestedOrientation |= 0x04; - break; - case DeviceOrientation.LANDSCAPE_LEFT: - requestedOrientation |= 0x02; - break; - case DeviceOrientation.LANDSCAPE_RIGHT: - requestedOrientation |= 0x08; - break; - } - if (firstRequestedOrientation == 0x00) { - firstRequestedOrientation = requestedOrientation; - } - } - - switch (requestedOrientation) { - case 0x00: - return window.Orientation.UNSPECIFIED; - case 0x01: - return window.Orientation.PORTRAIT; - case 0x02: - return window.Orientation.LANDSCAPE; - case 0x03: - case 0x04: - return window.Orientation.PORTRAIT_INVERTED; - case 0x05: - return window.Orientation.AUTO_ROTATION_PORTRAIT; - case 0x06: - case 0x07: - case 0x08: - return window.Orientation.LANDSCAPE_INVERTED; - case 0x09: - case 0x0a: - return window.Orientation.AUTO_ROTATION_LANDSCAPE; - case 0x0b: - return window.Orientation.LOCKED; - case 0x0c: - case 0x0d: - case 0x0e: - switch (firstRequestedOrientation) { - case 0x01: - return bundleManager.DisplayOrientation.PORTRAIT; - case 0x02: - return bundleManager.DisplayOrientation.LANDSCAPE; - case 0x04: - return bundleManager.DisplayOrientation.PORTRAIT_INVERTED; - case 0x08: - return bundleManager.DisplayOrientation.LANDSCAPE_INVERTED; - } - case 0x0f: - } - return bundleManager.DisplayOrientation.PORTRAIT; - } - - getFeedbackTypeFromValue(encodedName: string): HapticFeedbackType { - if (encodedName == null) { - return HapticFeedbackType.STANDARD; - } - let feedbackTypes: string[] = [ - HapticFeedbackType.STANDARD, - HapticFeedbackType.LIGHT_IMPACT, - HapticFeedbackType.MEDIUM_IMPACT, - HapticFeedbackType.HEAVY_IMPACT, - HapticFeedbackType.SELECTION_CLICK - ]; - if (feedbackTypes.includes(encodedName as HapticFeedbackType)) { - return encodedName as HapticFeedbackType; - } else { - Log.e(PlatformChannel.TAG, "No such HapticFeedbackType:" + encodedName); - return HapticFeedbackType.STANDARD; - } - } - - getClipboardContentFormatFromValue(encodedName: string): ClipboardContentFormat { - let clipboardFormats : string[]= [ClipboardContentFormat.PLAIN_TEXT]; - for (let i = 0; i < clipboardFormats.length; i++) { - let format = clipboardFormats[i]; - if (ClipboardContentFormat[format] === encodedName) { - return ClipboardContentFormat[format]; - } - } - return ClipboardContentFormat.PLAIN_TEXT; - } - getSystemUiOverlayFromValue(encodedName: string): SystemUiOverlay { - let systemUiOverlays : string[] = [SystemUiOverlay.TOP_OVERLAYS, SystemUiOverlay.BOTTOM_OVERLAYS]; - for (let i = 0; i < systemUiOverlays.length; i++) { - let overlay = systemUiOverlays[i]; - if (SystemUiOverlay[overlay] === encodedName) { - return SystemUiOverlay[overlay]; - } - } - throw new Error("No such SystemUiOverlay: " + encodedName); - } - - getSystemUiModeFromValue(encodedName: string): SystemUiMode { - let systemUiModes : string[] = [ - SystemUiMode.LEAN_BACK, SystemUiMode.IMMERSIVE, - SystemUiMode.IMMERSIVE_STICKY, SystemUiMode.EDGE_TO_EDGE - ]; - for (let i = 0; i < systemUiModes.length; i++) { - let mode = systemUiModes[i]; - if (SystemUiMode[mode] === encodedName) { - return SystemUiMode[mode]; - } - } - throw new Error("No such SystemUiOverlay: " + encodedName); - } - - getBrightnessFromValue(encodedName: string): Brightness { - let brightnesses : string[] = [Brightness.LIGHT, Brightness.DARK]; - for (let i = 0; i < brightnesses.length; i++) { - let brightness = brightnesses[i]; - if (Brightness[brightness] === encodedName) { - return Brightness[brightness]; - } - } - throw new Error("No such Brightness: " + encodedName); - } - - getDeviceOrientationFromValue(encodedName: string): DeviceOrientation { - let deviceOrientations: string[] = [ - DeviceOrientation.PORTRAIT_UP, DeviceOrientation.PORTRAIT_DOWN, - DeviceOrientation.LANDSCAPE_LEFT, DeviceOrientation.LANDSCAPE_RIGHT - ]; - for (let i = 0; i < deviceOrientations.length; i++) { - let orientation = deviceOrientations[i]; - if (DeviceOrientation[orientation] === encodedName) { - return DeviceOrientation[orientation]; - } - } - throw new Error("No such DeviceOrientation: " + encodedName); - } - -} - -export enum HapticFeedbackType { - STANDARD = "STANDARD", - LIGHT_IMPACT = "HapticFeedbackType.lightImpact", - MEDIUM_IMPACT = "HapticFeedbackType.mediumImpact", - HEAVY_IMPACT = "HapticFeedbackType.heavyImpact", - SELECTION_CLICK = "HapticFeedbackType.selectionClick" -} - -export interface PlatformMessageHandler { - playSystemSound(soundType: SoundType): void; - - vibrateHapticFeedback(feedbackType: HapticFeedbackType): void; - - setPreferredOrientations(ohosOrientation: number): void; - - setApplicationSwitcherDescription(description: AppSwitcherDescription): void; - - showSystemOverlays(overlays: SystemUiOverlay[]): void; - - showSystemUiMode(mode: SystemUiMode): void; - - setSystemUiChangeListener(): void; - - restoreSystemUiOverlays(): void; - - setSystemUiOverlayStyle(systemUiOverlayStyle: SystemChromeStyle): void; - - popSystemNavigator(): void; - - getClipboardData(format: ClipboardContentFormat): string; - - setClipboardData(text: string): void; - - clipboardHasStrings(): boolean; -} - -export enum ClipboardContentFormat { - PLAIN_TEXT = "text/plain", -} - -export enum SoundType { - CLICK = "SystemSoundType.click", - ALERT = "SystemSoundType.alert", -} - -export class AppSwitcherDescription { - public readonly color: number; - public readonly label: string; - - constructor(color: number, label: string) { - this.color = color; - this.label = label; - } -} - -export enum SystemUiOverlay { - TOP_OVERLAYS = "SystemUiOverlay.top", - BOTTOM_OVERLAYS = "SystemUiOverlay.bottom", -} - -export enum SystemUiMode { - LEAN_BACK = "SystemUiMode.leanBack", - IMMERSIVE = "SystemUiMode.immersive", - IMMERSIVE_STICKY = "SystemUiMode.immersiveSticky", - EDGE_TO_EDGE = "SystemUiMode.edgeToEdge", -} - -export enum Brightness { - LIGHT = "Brightness.light", - DARK = "Brightness.dark", -} - -export class SystemChromeStyle { - public readonly statusBarColor: number | null; - public readonly statusBarIconBrightness: Brightness | null; - public readonly systemStatusBarContrastEnforced: boolean | null; - public readonly systemNavigationBarColor: number | null; - public readonly systemNavigationBarIconBrightness: Brightness | null; - public readonly systemNavigationBarDividerColor: number | null; - public readonly systemNavigationBarContrastEnforced: boolean | null; - - constructor(statusBarColor: number | null, - statusBarIconBrightness: Brightness | null, - systemStatusBarContrastEnforced: boolean | null, - systemNavigationBarColor: number | null, - systemNavigationBarIconBrightness: Brightness | null, - systemNavigationBarDividerColor: number | null, - systemNavigationBarContrastEnforced: boolean | null) { - this.statusBarColor = statusBarColor; - this.statusBarIconBrightness = statusBarIconBrightness; - this.systemStatusBarContrastEnforced = systemStatusBarContrastEnforced; - this.systemNavigationBarColor = systemNavigationBarColor; - this.systemNavigationBarIconBrightness = systemNavigationBarIconBrightness; - this.systemNavigationBarDividerColor = systemNavigationBarDividerColor; - this.systemNavigationBarContrastEnforced = systemNavigationBarContrastEnforced; - } -} - -enum DeviceOrientation { - PORTRAIT_UP = "DeviceOrientation.portraitUp", - PORTRAIT_DOWN = "DeviceOrientation.portraitDown", - LANDSCAPE_LEFT = "DeviceOrientation.landscapeLeft", - LANDSCAPE_RIGHT = "DeviceOrientation.landscapeRight", -} - -class PlatformMethodCallback implements MethodCallHandler { - private static TAG = "PlatformMethodCallback" - platform: PlatformChannel; - - constructor(platform: PlatformChannel) { - this.platform = platform; - } - - onMethodCall(call: MethodCall, result: MethodResult) { - if (this.platform.platformMessageHandler == null) { - Log.w(PlatformMethodCallback.TAG, "platformMessageHandler is null"); - return; - } - - let method: string = call.method; - let args: ESObject = call.args; - Log.d(PlatformMethodCallback.TAG, "Received '" + method + "' message."); - try { - switch (method) { - case "SystemSound.play": - break; - case "HapticFeedback.vibrate": - try { - Log.d(PlatformMethodCallback.TAG, "HapticFeedback: " + args as string); - let feedbackType = this.platform.getFeedbackTypeFromValue(args as string); - this.platform.platformMessageHandler.vibrateHapticFeedback(feedbackType); - result.success(null); - } catch (e) { - Log.e(PlatformMethodCallback.TAG, "HapticFeedback.vibrate error:" + JSON.stringify(e)); - } - break; - case "SystemChrome.setPreferredOrientations": - Log.d(PlatformMethodCallback.TAG, "setPreferredOrientations: " + JSON.stringify(args)); - try { - let ohosOrientation = this.platform.decodeOrientations(args as string[]); - this.platform.platformMessageHandler.setPreferredOrientations(ohosOrientation); - result.success(null); - } catch (err) { - Log.e(PlatformMethodCallback.TAG, "setPreferredOrientations err:" + JSON.stringify(err)); - result.error("error", JSON.stringify(err), null); - } - - break; - case "SystemChrome.setApplicationSwitcherDescription": - Log.d(PlatformMethodCallback.TAG, "setApplicationSwitcherDescription: " + JSON.stringify(args)); - break; - case "SystemChrome.setEnabledSystemUIOverlays": - try { - let overlays: SystemUiOverlay[] = this.decodeSystemUiOverlays(args); - Log.d(PlatformMethodCallback.TAG, "overlays: " + overlays); - this.platform.platformMessageHandler.showSystemOverlays(overlays); - result.success(null); - } catch (err) { - Log.e(PlatformMethodCallback.TAG, "setEnabledSystemUIOverlays err:" + JSON.stringify(err)); - result.error("error", JSON.stringify(err), null); - } - break; - case "SystemChrome.setEnabledSystemUIMode": - try { - Log.d(PlatformMethodCallback.TAG, "setEnabledSystemUIMode args:" + args as string); - let mode: SystemUiMode = this.decodeSystemUiMode(args as string) - this.platform.platformMessageHandler.showSystemUiMode(mode); - } catch (err) { - Log.e(PlatformMethodCallback.TAG, "setEnabledSystemUIMode err:" + JSON.stringify(err)); - result.error("error", JSON.stringify(err), null); - } - break; - case "SystemChrome.setSystemUIChangeListener": - this.platform.platformMessageHandler.setSystemUiChangeListener(); - result.success(null); - break; - case "SystemChrome.restoreSystemUIOverlays": - this.platform.platformMessageHandler.restoreSystemUiOverlays(); - result.success(null); - break; - case "SystemChrome.setSystemUIOverlayStyle": - try { - Log.d(PlatformMethodCallback.TAG, "setSystemUIOverlayStyle asrgs: " + JSON.stringify(args)); - let systemChromeStyle: SystemChromeStyle = this.decodeSystemChromeStyle(args); - this.platform.platformMessageHandler.setSystemUiOverlayStyle(systemChromeStyle); - result.success(null); - } catch (err) { - Log.e(PlatformMethodCallback.TAG, "setSystemUIOverlayStyle err:" + JSON.stringify(err)); - result.error("error", JSON.stringify(err), null); - } - break; - case "SystemNavigator.pop": - this.platform.platformMessageHandler.popSystemNavigator(); - result.success(null); - break; - case "Clipboard.getData": - let pasteBoard = pasteboard.getSystemPasteboard(); - pasteBoard.getData().then((pasteData) => { - let text = pasteData.getPrimaryText(); - let response: ESObject = new Map().set("text", ""); - response.text = text; - result.success(response); - }).catch((err: ESObject) => { - Log.e(PlatformMethodCallback.TAG, "Failed to get PasteData. Cause: " + JSON.stringify(err)); - }); - break; - case "Clipboard.setData": - let clipboardContent: string = args.text; - this.platform.platformMessageHandler.setClipboardData(clipboardContent); - result.success(null); - break; - case "Clipboard.hasStrings": - let hasStrings: boolean = false; - let response: ESObject = new Map().set("value", false); - let systemPasteboard = pasteboard.getSystemPasteboard(); - systemPasteboard.hasData().then((hasData) => { - if (!hasData) { - response.value = hasData; - result.success(response); - } - }).catch((err: ESObject) => { - Log.e(PlatformMethodCallback.TAG, "systemPasteboard.hasData err: " + JSON.stringify(err)); - }) - systemPasteboard.getData().then((pasteData) => { - hasStrings = pasteData.hasType(pasteboard.MIMETYPE_TEXT_PLAIN); - response.value = hasStrings; - result.success(response); - }).catch((err: ESObject) => { - Log.e(PlatformMethodCallback.TAG, "getData err: " + JSON.stringify(err)); - }) - break; - default: - result.notImplemented(); - break; - } - } catch (e) { - result.error("error", JSON.stringify(e), null); - } - } - - private decodeSystemUiOverlays(encodedSystemUiOverlay: string[]): SystemUiOverlay[] { - let overlays: SystemUiOverlay[] = []; - for(let i = 0; i < encodedSystemUiOverlay.length; i++) { - const encodedOverlay = encodedSystemUiOverlay[i]; - const overlay = this.platform.getSystemUiOverlayFromValue(encodedOverlay); - switch (overlay) { - case SystemUiOverlay.TOP_OVERLAYS: - overlays.push(SystemUiOverlay.TOP_OVERLAYS); - break; - case SystemUiOverlay.BOTTOM_OVERLAYS: - overlays.push(SystemUiOverlay.BOTTOM_OVERLAYS); - break; - } - } - return overlays; - } - - private decodeSystemUiMode(encodedSystemUiMode: string): SystemUiMode { - let mode: SystemUiMode = this.platform.getSystemUiModeFromValue(encodedSystemUiMode); - switch (mode) { - case SystemUiMode.LEAN_BACK: - return SystemUiMode.LEAN_BACK; - case SystemUiMode.IMMERSIVE: - return SystemUiMode.IMMERSIVE; - case SystemUiMode.IMMERSIVE_STICKY: - return SystemUiMode.IMMERSIVE_STICKY; - case SystemUiMode.EDGE_TO_EDGE: - default: - return SystemUiMode.EDGE_TO_EDGE; - } - } - - private decodeSystemChromeStyle(encodedStyle: ESObject): SystemChromeStyle { - let statusBarColor: number | null = null; - let statusBarIconBrightness: Brightness | null = null; - let systemStatusBarContrastEnforced: boolean | null = null; - let systemNavigationBarColor: number | null = null; - let systemNavigationBarIconBrightness: Brightness | null = null; - let systemNavigationBarDividerColor: number | null = null; - let systemNavigationBarContrastEnforced: boolean | null = null; - if(encodedStyle.statusBarColor != null) { - statusBarColor = encodedStyle.statusBarColor as number; - } - if(encodedStyle.statusBarIconBrightness != null) { - statusBarIconBrightness = - this.platform.getBrightnessFromValue(encodedStyle.statusBarIconBrightness as string); - } - if(encodedStyle.systemStatusBarContrastEnforced != null) { - systemStatusBarContrastEnforced = encodedStyle.systemStatusBarContrastEnforced as boolean; - } - if(encodedStyle.systemNavigationBarColor != null) { - systemNavigationBarColor = encodedStyle.systemNavigationBarColor as number; - } - if(encodedStyle.systemNavigationBarIconBrightness != null) { - systemNavigationBarIconBrightness = - this.platform.getBrightnessFromValue(encodedStyle.systemNavigationBarIconBrightness as string); - } - if(encodedStyle.systemNavigationBarDividerColor != null) { - systemNavigationBarDividerColor = encodedStyle.systemNavigationBarDividerColor as number; - } - if(encodedStyle.systemNavigationBarContrastEnforced != null) { - systemNavigationBarContrastEnforced = encodedStyle.systemNavigationBarContrastEnforced as boolean; - } - return new SystemChromeStyle( - statusBarColor, - statusBarIconBrightness, - systemStatusBarContrastEnforced, - systemNavigationBarColor, - systemNavigationBarIconBrightness, - systemNavigationBarDividerColor, - systemNavigationBarContrastEnforced - ); - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets deleted file mode 100644 index 5da4a68f2f5101f6eb12f36a2921d3c93249ead8..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/PlatformViewsChannel.ets +++ /dev/null @@ -1,551 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import MethodCall from '../../../plugin/common/MethodCall'; -import MethodChannel, { MethodCallHandler, MethodResult } from '../../../plugin/common/MethodChannel'; -import StandardMethodCodec from '../../../plugin/common/StandardMethodCodec'; -import { ByteBuffer } from '../../../util/ByteBuffer'; -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; - -const TAG = "PlatformViewsChannel"; -const NON_TEXTURE_FALLBACK = -2; -export default class PlatformViewsChannel { - private channel: MethodChannel; - private handler: PlatformViewsHandler | null = null; - private parsingHandler = new ParsingCallback(); - - /** - * Constructs a {@code PlatformViewsChannel} that connects Android to the Dart code running in - * {@code dartExecutor}. - * - *

The given {@code dartExecutor} is permitted to be idle or executing code. - * - *

See {@link DartExecutor}. - */ - constructor(dartExecutor: DartExecutor) { - this.channel = new MethodChannel(dartExecutor, "flutter/platform_views", StandardMethodCodec.INSTANCE); - this.parsingHandler.platformChannel = this; - this.channel.setMethodCallHandler(this.parsingHandler); - } - - /** - * Sets the {@link PlatformViewsHandler} which receives all events and requests that are parsed - * from the underlying platform views channel. - */ - public setPlatformViewsHandler(handler: PlatformViewsHandler | null): void { - this.handler = handler; - this.parsingHandler.handler = handler; - } - - public invokeViewFocused(viewId: number): void { - if (this.channel == null) { - return; - } - this.channel.invokeMethod("viewFocused", viewId); - } - - create(call: MethodCall, result: MethodResult): void { - const createArgs: Map = call.args; - const usesPlatformViewLayer: boolean = createArgs.has("hybrid") && createArgs.get("hybrid") as boolean; - const additionalParams: ByteBuffer = createArgs.has("params") ? createArgs.get("params") : null; - - let direction: Direction = Direction.Ltr; - if (createArgs.get("direction") == 0) { - direction = Direction.Ltr; - } else if (createArgs.get("direction") == 1) { - direction = Direction.Rtl; - } - - try { - if (usesPlatformViewLayer) { - const request: PlatformViewCreationRequest = new PlatformViewCreationRequest( - createArgs.get("id"), - createArgs.get("viewType"), - 0, - 0, - 0, - 0, - direction, - additionalParams, - RequestedDisplayMode.HYBRID_ONLY - ); - this.handler?.createForPlatformViewLayer(request); - result.success(null); - } else { - const hybridFallback: boolean = createArgs.has("hybridFallback") && createArgs.get("hybridFallback"); - const displayMode: RequestedDisplayMode = - hybridFallback ? RequestedDisplayMode.TEXTURE_WITH_HYBRID_FALLBACK - : RequestedDisplayMode.TEXTURE_WITH_VIRTUAL_FALLBACK; - const request: PlatformViewCreationRequest = new PlatformViewCreationRequest( - createArgs.get("id"), - createArgs.get("viewType"), - createArgs.has("top") ? createArgs.get("top") : 0.0, - createArgs.has("left") ? createArgs.get("left") : 0.0, - createArgs.get("width"), - createArgs.get("height"), - direction, - additionalParams, - displayMode - ); - - Log.i(TAG, `Create texture param id:${request.viewId}, - type:${request.viewType}, - w:${request.logicalWidth}, - h:${request.logicalHeight}, - l:${request.logicalLeft}, - t:${request.logicalTop}, - d:${request.direction}`); - - const textureId = this.handler?.createForTextureLayer(request); - if (textureId == NON_TEXTURE_FALLBACK) { - if (!hybridFallback) { - throw new Error( - "Platform view attempted to fall back to hybrid mode when not requested."); - } - - // A fallback to hybrid mode is indicated with a null texture ID. - result.success(null); - } else { - result.success(textureId); - } - } - } catch (err) { - Log.e(TAG, "create failed" + err); - result.error("error", err, null); - } - } - - dispose(call: MethodCall, result: MethodResult): void { - const disposeArgs: Map = call.args; - const viewId: number = disposeArgs.get("id"); - try { - this.handler?.dispose(viewId); - result.success(null); - } catch (err) { - Log.e(TAG, "dispose failed", err); - result.error("error", err, null); - } - } - - resize(call: MethodCall, result: MethodResult): void { - const resizeArgs: Map = call.args; - const resizeRequest: PlatformViewResizeRequest = new PlatformViewResizeRequest( - resizeArgs.get("id"), - resizeArgs.get("width"), - resizeArgs.get("height") - ); - try { - let resizeCallback = new ResizeCallback(); - resizeCallback.result = result; - this.handler?.resize(resizeRequest, resizeCallback); - } catch (err) { - Log.e(TAG, "resize failed", err); - result.error("error", err, null); - } - } - - offset(call: MethodCall, result: MethodResult): void { - const offsetArgs: Map = call.args; - try { - this.handler?.offset( - offsetArgs.get("id"), - offsetArgs.get("top"), - offsetArgs.get("left")); - result.success(null); - } catch (err) { - Log.e(TAG, "offset failed", err); - result.error("error", err, null); - } - } - - touch(call: MethodCall, result: MethodResult): void { - const args: Array = call.args; - let index = 0; - const touch: PlatformViewTouch = new PlatformViewTouch( - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index++], - args[index] - ); - - try { - this.handler?.onTouch(touch); - result.success(null); - } catch (err) { - Log.e(TAG, "offset failed", err); - result.error("error", err, null); - } - } - - setDirection(call: MethodCall, result: MethodResult): void { - const setDirectionArgs: Map = call.args; - const newDirectionViewId: number = setDirectionArgs.get("id"); - const direction: number = setDirectionArgs.get("direction"); - - try { - this.handler?.setDirection(newDirectionViewId, direction); - result.success(null); - } catch (err) { - Log.e(TAG, "setDirection failed", err); - result.error("error", err, null); - } - } - - clearFocus(call: MethodCall, result: MethodResult): void { - const viewId: number = call.args; - try { - this.handler?.clearFocus(viewId); - result.success(null); - } catch (err) { - Log.e(TAG, "clearFocus failed", err); - result.error("error", err, null); - } - } - - synchronizeToNativeViewHierarchy(call: MethodCall, result: MethodResult): void { - const yes: boolean = call.args; - try { - this.handler?.synchronizeToNativeViewHierarchy(yes); - result.success(null); - } catch (err) { - Log.e(TAG, "synchronizeToNativeViewHierarchy failed", err); - result.error("error", err, null); - } - } -} - -/** - * Handler that receives platform view messages sent from Flutter to Ohos through a given - * {@link PlatformViewsChannel}. - * - *

To register a {@code PlatformViewsHandler} with a {@link PlatformViewsChannel}, see {@link - * PlatformViewsChannel#setPlatformViewsHandler(PlatformViewsHandler)}. - */ -export interface PlatformViewsHandler { - /* - * The ID returned by {@code createForTextureLayer} to indicate that the requested texture mode - * was not available and the view creation fell back to {@code PlatformViewLayer} mode. - * - * This can only be returned if the {@link PlatformViewCreationRequest} sets - * {@code TEXTURE_WITH_HYBRID_FALLBACK} as the requested display mode. - */ - - /** - * The Flutter application would like to display a new Ohos {@code View}, i.e., platform - * view. - * - *

The Ohos View is added to the view hierarchy. This view is rendered in the Flutter - * framework by a PlatformViewLayer. - * - * @param request The metadata sent from the framework. - */ - createForPlatformViewLayer(request: PlatformViewCreationRequest): void; - - /** - * The Flutter application would like to display a new Android {@code View}, i.e., platform - * view. - * - *

The Android View is added to the view hierarchy. This view is rendered in the Flutter - * framework by a TextureLayer. - * - * @param request The metadata sent from the framework. - * @return The texture ID. - */ - createForTextureLayer(request: PlatformViewCreationRequest): number; - - /** The Flutter application would like to dispose of an existing Android {@code View}. */ - dispose(viewId: number): void; - - /** - * The Flutter application would like to resize an existing Android {@code View}. - * - * @param request The request to resize the platform view. - * @param onComplete Once the resize is completed, this is the handler to notify the size of the - * platform view buffer. - */ - resize(request: PlatformViewResizeRequest, onComplete: PlatformViewBufferResized): void; - - /** - * The Flutter application would like to change the offset of an existing Android {@code View}. - */ - offset(viewId: number, top: number, left: number): void; - - /** - * The user touched a platform view within Flutter. - * - *

Touch data is reported in {@code touch}. - */ - onTouch(touch: PlatformViewTouch): void; - - /** - * The Flutter application would like to change the layout direction of an existing Android - * {@code View}, i.e., platform view. - */ - setDirection(viewId: number, direction: number): void; - - /** Clears the focus from the platform view with a give id if it is currently focused. */ - clearFocus(viewId: number): void; - - /** - * Whether the render surface of {@code FlutterView} should be converted to a {@code - * FlutterImageView} when a {@code PlatformView} is added. - * - *

This is done to syncronize the rendering of the PlatformView and the FlutterView. Defaults - * to true. - */ - synchronizeToNativeViewHierarchy(yes: boolean): void; -} - -/** Platform view display modes that can be requested at creation time. */ -enum RequestedDisplayMode { - /** Use Texture Layer if possible, falling back to Virtual Display if not. */ - TEXTURE_WITH_VIRTUAL_FALLBACK, - /** Use Texture Layer if possible, falling back to Hybrid Composition if not. */ - TEXTURE_WITH_HYBRID_FALLBACK, - /** Use Hybrid Composition in all cases. */ - HYBRID_ONLY, -} - -/** Request sent from Flutter to create a new platform view. */ -export class PlatformViewCreationRequest { - /** The ID of the platform view as seen by the Flutter side. */ - public viewId: number; - - /** The type of view to create for this platform view. */ - public viewType: string; - - /** The density independent width to display the platform view. */ - public logicalWidth: number; - - /** The density independent height to display the platform view. */ - public logicalHeight: number; - - /** The density independent top position to display the platform view. */ - public logicalTop: number; - - /** The density independent left position to display the platform view. */ - public logicalLeft: number; - - /** - * The layout direction of the new platform view. - */ - public direction: number; - public displayMode: RequestedDisplayMode; - - /** Custom parameters that are unique to the desired platform view. */ - public params: ByteBuffer; - - constructor(viewId: number, viewType: string, logicalTop: number, logicalLeft: number, logicalWidth: number, - logicalHeight: number, direction: Direction, params: ByteBuffer, displayMode?: RequestedDisplayMode) { - this.viewId = viewId; - this.viewType = viewType; - this.logicalTop = logicalTop; - this.logicalLeft = logicalLeft; - this.logicalWidth = logicalWidth; - this.logicalHeight = logicalHeight; - this.direction = direction; - this.displayMode = displayMode ? displayMode : RequestedDisplayMode.TEXTURE_WITH_VIRTUAL_FALLBACK; - this.params = params; - } -} - -/** Request sent from Flutter to resize a platform view. */ -export class PlatformViewResizeRequest { - /** The ID of the platform view as seen by the Flutter side. */ - public viewId: number; - - /** The new density independent width to display the platform view. */ - public newLogicalWidth: number; - - /** The new density independent height to display the platform view. */ - public newLogicalHeight: number; - - constructor(viewId: number, newLogicalWidth: number, newLogicalHeight: number) { - this.viewId = viewId; - this.newLogicalWidth = newLogicalWidth; - this.newLogicalHeight = newLogicalHeight; - } -} - -/** The platform view buffer size. */ -export class PlatformViewBufferSize { - /** The width of the screen buffer. */ - public width: number; - - /** The height of the screen buffer. */ - public height: number; - - constructor(width: number, height: number) { - this.width = width; - this.height = height; - } -} - -/** Allows to notify when a platform view buffer has been resized. */ -export abstract class PlatformViewBufferResized { - abstract run(bufferSize: PlatformViewBufferSize): void; -} - -/** The state of a touch event in Flutter within a platform view. */ -export class PlatformViewTouch { - /** The ID of the platform view as seen by the Flutter side. */ - public viewId: number; - - /** The amount of time that the touch has been pressed. */ - public downTime: number; - - public eventTime: number; - - public action: number; - - /** The number of pointers (e.g, fingers) involved in the touch event. */ - public pointerCount: number; - - /** Properties for each pointer, encoded in a raw format. */ - public rawPointerPropertiesList: ESObject; - - /** Coordinates for each pointer, encoded in a raw format. */ - public rawPointerCoords: ESObject; - - public metaState: number; - - public buttonState: number; - - /** Coordinate precision along the x-axis. */ - public xPrecision: number; - - /** Coordinate precision along the y-axis. */ - public yPrecision: number; - - public deviceId: number; - - public edgeFlags: number; - - public source: number; - - public flags: number; - - public motionEventId: number; - - constructor(viewId: number, - downTime: number, - eventTime: number, - action: number, - pointerCount: number, - rawPointerPropertiesList: ESObject, - rawPointerCoords: ESObject, - metaState: number, - buttonState: number, - xPrecision: number, - yPrecision: number, - deviceId: number, - edgeFlags: number, - source: number, - flags: number, - motionEventId: number) { - this.viewId = viewId; - this.downTime = downTime; - this.eventTime = eventTime; - this.action = action; - this.pointerCount = pointerCount; - this.rawPointerPropertiesList = rawPointerPropertiesList; - this.rawPointerCoords = rawPointerCoords; - this.metaState = metaState; - this.buttonState = buttonState; - this.xPrecision = xPrecision; - this.yPrecision = yPrecision; - this.deviceId = deviceId; - this.edgeFlags = edgeFlags; - this.source = source; - this.flags = flags; - this.motionEventId = motionEventId; - } -} - -class ParsingCallback implements MethodCallHandler { - platformChannel : PlatformViewsChannel | null = null; - handler: PlatformViewsHandler | null = null; - - onMethodCall(call: MethodCall, result: MethodResult) { - if (this.handler == null) { - return; - } - - Log.i(TAG, "Received '" + call.method + "' message."); - switch (call.method) { - case "create": { - this.platformChannel?.create(call, result); - break; - } - case "dispose": { - this.platformChannel?.dispose(call, result); - break; - } - case "resize": { - this.platformChannel?.resize(call, result); - break; - } - case "offset": { - this.platformChannel?.offset(call, result); - break; - } - case "touch": { - this.platformChannel?.touch(call, result); - break; - } - case "setDirection": { - this.platformChannel?.setDirection(call, result); - break; - } - case "clearFocus": { - this.platformChannel?.clearFocus(call, result); - break; - } - case "synchronizeToNativeViewHierarchy": { - this.platformChannel?.synchronizeToNativeViewHierarchy(call, result); - break; - } - default: - result.notImplemented(); - } - } -} - -class ResizeCallback extends PlatformViewBufferResized { - result : MethodResult | null = null; - run(bufferSize: PlatformViewBufferSize) { - if (bufferSize == null) { - this.result?.error("error", "Failed to resize the platform view", null); - } else { - const response: Map = new Map(); - response.set("width", bufferSize.width); - response.set("height", bufferSize.height); - this.result?.success(response); - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets deleted file mode 100644 index 9ccbd2c3f5c9e40aaa97342a02b171ee54a6d4af..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/RestorationChannel.ets +++ /dev/null @@ -1,175 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import MethodCall from '../../../plugin/common/MethodCall'; -import MethodChannel, { MethodCallHandler, MethodResult } from '../../../plugin/common/MethodChannel'; -import StandardMethodCodec from '../../../plugin/common/StandardMethodCodec'; -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; - -/** - * System channel to exchange restoration data between framework and engine. - * - *

The engine can obtain the current restoration data from the framework via this channel to - * store it on disk and - when the app is relaunched - provide the stored data back to the framework - * to recreate the original state of the app. - * - *

The channel can be configured to delay responding to the framework's request for restoration - * data via {@code waitForRestorationData} until the engine-side has provided the data. This is - * useful when the engine is pre-warmed at a point in the application's life cycle where the - * restoration data is not available yet. For example, if the engine is pre-warmed as part of the - * Application before an Activity is created, this flag should be set to true because Android will - * only provide the restoration data to the Activity during the onCreate callback. - * - *

The current restoration data provided by the framework can be read via {@code - * getRestorationData()}. - */ -export default class RestorationChannel { - private static TAG = "RestorationChannel"; - private static CHANNEL_NAME = "flutter/restoration"; - - /** - * Whether the channel delays responding to the framework's initial request for restoration data - * until {@code setRestorationData} has been called. - * - *

If the engine never calls {@code setRestorationData} this flag must be set to false. If set - * to true, the engine must call {@code setRestorationData} either with the actual restoration - * data as argument or null if it turns out that there is no restoration data. - * - *

If the response to the framework's request for restoration data is not delayed until the - * data has been set via {@code setRestorationData}, the framework may intermittently initialize - * itself to default values until the restoration data has been made available. Setting this flag - * to true avoids that extra work. - */ - public waitForRestorationData: boolean = false; - - // Holds the most current restoration data which may have been provided by the engine - // via "setRestorationData" or by the framework via the method channel. This is the data the - // framework should be restored to in case the app is terminated. - private restorationData: Uint8Array = new Uint8Array(); - private channel: MethodChannel | null = null; - private pendingFrameworkRestorationChannelRequest: MethodResult | null = null; - private engineHasProvidedData: boolean = false; - private frameworkHasRequestedData: boolean = false; - private handler: MethodCallHandler = new RestorationChannelMethodCallHandler(this.restorationData); - - constructor(channelOrExecutor: MethodChannel | DartExecutor, waitForRestorationData: boolean) { - if (channelOrExecutor instanceof MethodChannel) { - this.channel = channelOrExecutor; - } else { - this.channel = new MethodChannel(channelOrExecutor, RestorationChannel.CHANNEL_NAME, StandardMethodCodec.INSTANCE); - } - this.waitForRestorationData = waitForRestorationData; - this.channel.setMethodCallHandler(this.handler); - } - - /** Obtain the most current restoration data that the framework has provided. */ - getRestorationData(): Uint8Array { - return this.restorationData; - } - - /** Set the restoration data from which the framework will restore its state. */ - setRestorationData(data: Uint8Array) { - this.engineHasProvidedData = true; - if (this.pendingFrameworkRestorationChannelRequest != null) { - // If their is a pending request from the framework, answer it. - this.pendingFrameworkRestorationChannelRequest.success(RestorationChannelMethodCallHandler.packageData(data)); - this.pendingFrameworkRestorationChannelRequest = null; - this.restorationData = data; - } else if (this.frameworkHasRequestedData) { - // If the framework has previously received the engine's restoration data, push the new data - // directly to it. This case can happen when "waitForRestorationData" is false and the - // framework retrieved the restoration state before it was set via this method. - // Experimentally, this can also be used to restore a previously used engine to another state, - // e.g. when the engine is attached to a new activity. - this.channel?.invokeMethod("push", RestorationChannelMethodCallHandler.packageData(data), { - success: (result: ESObject) :void => { - this.restorationData = data; - }, - - error: (errorCode: string, errorMessage: string, errorDetails: ESObject) :void => { - Log.e(RestorationChannel.TAG, - "Error " + errorCode + " while sending restoration data to framework: " + errorMessage); - }, - - notImplemented: () :void => { - // do nothing - } - }) - } else { - // Otherwise, just cache the data until the framework asks for it. - this.restorationData = data; - } - } - - /** - * Clears the current restoration data. - * - *

This should be called just prior to a hot restart. Otherwise, after the hot restart the - * state prior to the hot restart will get restored. - */ - clearData() { - this.restorationData = new Uint8Array(); - } -} - -class RestorationChannelMethodCallHandler implements MethodCallHandler { - public waitForRestorationData: boolean = false; - private restorationData: Uint8Array; - private engineHasProvidedData: boolean = false; - private frameworkHasRequestedData: boolean = false; - private channel: MethodChannel | null = null; - private pendingFrameworkRestorationChannelRequest: MethodResult | null = null; - - constructor(restorationData: Uint8Array) { - this.restorationData = restorationData; - } - - onMethodCall(call: MethodCall, result: MethodResult): void { - const method = call.method; - const args: ESObject = call.args; - switch (method) { - case "put": { - this.restorationData = args; - result.success(null); - break; - } - case "get": { - this.frameworkHasRequestedData = true; - if (this.engineHasProvidedData || !this.waitForRestorationData) { - result.success(RestorationChannelMethodCallHandler.packageData(this.restorationData)); - // Do not delete the restoration data on the engine side after sending it to the - // framework. We may need to hand this data back to the operating system if the - // framework never modifies the data (and thus doesn't send us any - // data back). - } else { - this.pendingFrameworkRestorationChannelRequest = result; - } - break; - } - default: { - result.notImplemented(); - break; - } - } - } - - static packageData(data: Uint8Array): Map { - const packaged: Map = new Map(); - packaged.set("enabled", true); - packaged.set("data", data); - return packaged; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/SettingsChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/SettingsChannel.ets deleted file mode 100644 index b40cd5536a335c48b0d9c9defabc02cfdea50f7e..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/SettingsChannel.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import BasicMessageChannel from '../../../plugin/common/BasicMessageChannel'; -import JSONMessageCodec from '../../../plugin/common/JSONMessageCodec'; -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; - -export enum PlatformBrightness { - LIGHT = "light", - DARK = "dark" -} - -const TAG = "SettingsChannel"; -const TEXT_SCALE_FACTOR = "textScaleFactor"; -const NATIVE_SPELL_CHECK_SERVICE_DEFINED = "nativeSpellCheckServiceDefined"; -const BRIEFLY_SHOW_PASSWORD = "brieflyShowPassword"; -const ALWAYS_USE_24_HOUR_FORMAT = "alwaysUse24HourFormat"; -const PLATFORM_BRIGHTNESS = "platformBrightness"; -export default class SettingsChannel { - private static CHANNEL_NAME = "flutter/settings"; - - private channel: BasicMessageChannel; - - constructor(dartExecutor: DartExecutor) { - this.channel = new BasicMessageChannel(dartExecutor, SettingsChannel.CHANNEL_NAME, JSONMessageCodec.INSTANCE); - } - - startMessage(): MessageBuilder { - return new MessageBuilder(this.channel); - } -} - -class MessageBuilder { - private channel: BasicMessageChannel; - private message: Map = new Map(); - - constructor(channel: BasicMessageChannel) { - this.channel = channel; - } - - setTextScaleFactor(textScaleFactor: Number): MessageBuilder { - this.message.set(TEXT_SCALE_FACTOR, textScaleFactor); - return this; - } - - setNativeSpellCheckServiceDefined(nativeSpellCheckServiceDefined: boolean): MessageBuilder { - this.message.set(NATIVE_SPELL_CHECK_SERVICE_DEFINED, nativeSpellCheckServiceDefined); - return this; - } - - setBrieflyShowPassword(brieflyShowPassword: boolean): MessageBuilder { - this.message.set(BRIEFLY_SHOW_PASSWORD, brieflyShowPassword); - return this; - } - - setAlwaysUse24HourFormat(alwaysUse24HourFormat: boolean): MessageBuilder { - this.message.set(ALWAYS_USE_24_HOUR_FORMAT, alwaysUse24HourFormat); - return this; - } - - setPlatformBrightness(platformBrightness: PlatformBrightness): MessageBuilder { - this.message.set(PLATFORM_BRIGHTNESS, platformBrightness); - return this; - } - - send(): void { - Log.i(TAG, "Sending message: \n" - + "textScaleFactor: " - + this.message.get(TEXT_SCALE_FACTOR) - + "alwaysUse24HourFormat: " - + this.message.get(ALWAYS_USE_24_HOUR_FORMAT) - + "platformBrightness: " - + this.message.get(PLATFORM_BRIGHTNESS)) - this.channel.send(this.message) - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/SystemChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/SystemChannel.ets deleted file mode 100644 index 9f9ef28154563799368fbbe816ceed3cd78f0d3e..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/SystemChannel.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import BasicMessageChannel from '../../../plugin/common/BasicMessageChannel'; -import JSONMessageCodec from '../../../plugin/common/JSONMessageCodec'; -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; -const TAG: string = "SystemChannel"; - -/** - * fill in javadoc for SystemChannel. - */ -export default class SystemChannel { - public channel: BasicMessageChannel; - - constructor(dartExecutor: DartExecutor) { - this.channel = new BasicMessageChannel(dartExecutor, "flutter/system", JSONMessageCodec.INSTANCE); - } - - public sendMemoryPressureWarning(): void { - Log.i(TAG, "Sending memory pressure warning to Flutter"); - let message : Map = new Map().set("type", "memoryPressure"); - this.channel.send(message); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TestChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TestChannel.ets deleted file mode 100644 index d54c448e027d069baaacbe66bf877c50823cb6d5..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TestChannel.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import BasicMessageChannel, { MessageHandler, Reply } from '../../../plugin/common/BasicMessageChannel'; -import JSONMessageCodec from '../../../plugin/common/JSONMessageCodec'; -import DartExecutor from '../dart/DartExecutor'; -import Log from '../../../util/Log'; - -const TAG = "TestChannel" - -export default class TestChannel { - private channel: BasicMessageChannel - - constructor(dartExecutor: DartExecutor) { - this.channel = new BasicMessageChannel(dartExecutor, "flutter/test", JSONMessageCodec.INSTANCE); - let callback = new MessageCallback(); - this.channel.setMessageHandler(callback); - } -} - -class MessageCallback implements MessageHandler { - onMessage(message: string, reply: Reply) { - Log.d(TAG, "receive msg = " + message); - reply.reply("收到消息啦:" + message); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets deleted file mode 100644 index 97697f6d7339822efed77b3f6939c04d3d83bbad..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/engine/systemchannels/TextInputChannel.ets +++ /dev/null @@ -1,372 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import JSONMethodCodec from '../../../plugin/common/JSONMethodCodec'; -import MethodCall from '../../../plugin/common/MethodCall'; -import MethodChannel, { MethodCallHandler, MethodResult } from '../../../plugin/common/MethodChannel'; -import TextInputPlugin from '../../../plugin/editing/TextInputPlugin'; -import Log from '../../../util/Log'; -import DartExecutor from '../dart/DartExecutor'; - -const TAG = "TextInputChannel"; - -export default class TextInputChannel { - private static CHANNEL_NAME = "flutter/textinput"; - public channel: MethodChannel; - textInputMethodHandler: TextInputMethodHandler | null = null; - - constructor(dartExecutor: DartExecutor) { - this.channel = new MethodChannel(dartExecutor, TextInputChannel.CHANNEL_NAME, JSONMethodCodec.INSTANCE); - } - - setTextInputMethodHandler(textInputMethodHandler: TextInputMethodHandler): void { - this.textInputMethodHandler = textInputMethodHandler; - this.channel.setMethodCallHandler(new TextInputCallback(this.textInputMethodHandler)); - } - - requestExistingInputState(): void { - this.channel.invokeMethod("TextInputClient.requestExistingInputState", null); - } - - createEditingStateJSON(text: string, - selectionStart: number, - selectionEnd: number, - composingStart: number, - composingEnd: number): EditingState { - let state: EditingState = { - text: text, - selectionBase: selectionStart, - selectionExtent: selectionEnd, - composingBase: composingStart, - composingExtent: composingEnd - }; - return state; - } - - /** - * Instructs Flutter to update its text input editing state to reflect the given configuration. - */ - updateEditingState(inputClientId: number, - text: string, - selectionStart: number, - selectionEnd: number, - composingStart: number, - composingEnd: number): void { - Log.d(TAG, "updateEditingState:" - + "Text: " + text + " Selection start: " + selectionStart + " Selection end: " - + selectionEnd + " Composing start: " + composingStart + " Composing end: " + composingEnd); - const state: ESObject = this.createEditingStateJSON(text, selectionStart, selectionEnd, composingStart, composingEnd); - this.channel.invokeMethod('TextInputClient.updateEditingState', [inputClientId, state]); - } - - newline(inputClientId: number): void { - Log.d(TAG, "Sending 'newline' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.newline"]); - } - - go(inputClientId: number): void { - Log.d(TAG, "Sending 'go' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.go"]); - } - - search(inputClientId: number): void { - Log.d(TAG, "Sending 'search' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.search"]); - } - - send(inputClientId: number): void { - Log.d(TAG, "Sending 'send' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.send"]); - } - - done(inputClientId: number): void { - Log.d(TAG, "Sending 'done' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.done"]); - } - - next(inputClientId: number): void { - Log.d(TAG, "Sending 'next' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.next"]); - } - - previous(inputClientId: number): void { - Log.d(TAG, "Sending 'previous' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.previous"]); - } - - unspecifiedAction(inputClientId: number): void { - Log.d(TAG, "Sending 'unspecifiedAction' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.unspecifiedAction"]); - } - - commitContent(inputClientId: number): void { - Log.d(TAG, "Sending 'commitContent' message."); - this.channel.invokeMethod("TextInputClient.performAction", [inputClientId, "TextInputAction.commitContent"]); - } - - performPrivateCommand(inputClientId: number, action: string, data: ESObject) { - - } - -} - -interface EditingState { - text: string; - selectionBase: number; - selectionExtent: number; - composingBase: number; - composingExtent: number; -} - -export interface TextInputMethodHandler { - show(): void; - - hide(): void; - - requestAutofill(): void; - - finishAutofillContext(shouldSave: boolean): void; - - setClient(textInputClientId: number, configuration: Configuration | null): void; - - setPlatformViewClient(id: number, usesVirtualDisplay: boolean): void; - - setEditableSizeAndTransform(width: number, height: number, transform: number[]): void; - - setEditingState(editingState: TextEditState): void; - - clearClient(): void; - -} - -export class Configuration { - obscureText: boolean = false; - autocorrect: boolean = false; - enableSuggestions: boolean = false; - enableIMEPersonalizedLearning: boolean = false; - enableDeltaModel: boolean = false; - textCapitalization: TextCapitalization | null = null; - inputType: InputType | null = null; - inputAction: Number = 0; - actionLabel: String = ""; - contentCommitMimeTypes: String[] = []; - fields: Configuration[] = []; - - constructor(obscureText: boolean, - autocorrect: boolean, - enableSuggestions: boolean, - enableIMEPersonalizedLearning: boolean, - enableDeltaModel: boolean, - inputType: InputType, - inputAction: Number, - actionLabel: String, ) { - } - getTextCapitalizationFromValue(encodedName: string): TextCapitalization { - let textKeys = [ - TextCapitalization.CHARACTERS, TextCapitalization.WORDS, - TextCapitalization.SENTENCES, TextCapitalization.NONE - ]; - for (let i = 0; i < textKeys.length; i++) { - let key = textKeys[i]; - if (TextCapitalization[key] === encodedName) { - return key; - } - } - throw new Error("No such TextCapitalization: " + encodedName); - } -} - -enum TextCapitalization { - CHARACTERS = "TextCapitalization.characters", - WORDS = "TextCapitalization.words", - SENTENCES = "TextCapitalization.sentences", - NONE = "TextCapitalization.none", -} - -export enum TextInputType { - TEXT = "TextInputType.text", - DATETIME = "TextInputType.datetime", - NAME = "TextInputType.name", - POSTAL_ADDRESS = "TextInputType.address", - NUMBER = "TextInputType.number", - PHONE = "TextInputType.phone", - MULTILINE = "TextInputType.multiline", - EMAIL_ADDRESS = "TextInputType.emailAddress", - URL = "TextInputType.url", - VISIBLE_PASSWORD = "TextInputType.visiblePassword", - NONE = "TextInputType.none", -} - -export class InputType { - type: TextInputType; - isSigned: boolean; - isDecimal: boolean; - - constructor(type: TextInputType, isSigned: boolean, isDecimal: boolean) { - this.type = type; - this.isSigned = isSigned; - this.isDecimal = isDecimal; - } - - static fromJson(json: ESObject): InputType { - return new InputType(InputType.getTextInputTypeFromValue(json.name as string), - json.signed as boolean, json.decimal as boolean) - } - - static getTextInputTypeFromValue(encodedName: string): TextInputType { - let textKeys = [ - TextInputType.TEXT, TextInputType.DATETIME, TextInputType.NAME, - TextInputType.POSTAL_ADDRESS, TextInputType.NUMBER, TextInputType.PHONE, - TextInputType.MULTILINE, TextInputType.EMAIL_ADDRESS, TextInputType.URL, - TextInputType.VISIBLE_PASSWORD, TextInputType.NONE - ]; - for (let i = 0; i < textKeys.length; i++) { - let key = textKeys[i]; - if (TextInputType[key] == encodedName) { - return key; - } - } - throw new Error("No such TextInputType: " + encodedName); - } -} - -export class TextEditState { - private static TAG = "TextEditState"; - text: string; - selectionStart: number; - selectionEnd: number; - composingStart: number; - composingEnd: number; - - constructor(text: string, - selectionStart: number, - selectionEnd: number, - composingStart: number, - composingEnd: number) { - if ((selectionStart != -1 || selectionEnd != -1) - && (selectionStart < 0 || selectionEnd < 0)) { - throw new Error("invalid selection: (" + selectionStart + ", " + selectionEnd + ")"); - } - - if ((composingStart != -1 || composingEnd != -1) - && (composingStart < 0 || composingStart > composingEnd)) { - throw new Error("invalid composing range: (" + composingStart + ", " + composingEnd + ")"); - } - - if (composingEnd > text.length) { - throw new Error("invalid composing start: " + composingStart); - } - - if (selectionStart > text.length) { - throw new Error("invalid selection start: " + selectionStart); - } - - if (selectionEnd > text.length) { - throw new Error("invalid selection end: " + selectionEnd); - } - - this.text = text; - this.selectionStart = selectionStart; - this.selectionEnd = selectionEnd; - this.composingStart = composingStart; - this.composingEnd = composingEnd; - } - - hasSelection(): boolean { - // When selectionStart == -1, it's guaranteed that selectionEnd will also - // be -1. - return this.selectionStart >= 0; - } - - hasComposing(): boolean { - return this.composingStart >= 0 && this.composingEnd > this.composingStart; - } - - static fromJson(textEditState: ESObject): TextEditState { - return new TextEditState( - textEditState.text, - textEditState.selectionBase, - textEditState.selectionExtent, - textEditState.composingBase, - textEditState.composingExtent - ) - } -} - -class TextInputCallback implements MethodCallHandler { - textInputMethodHandler: TextInputMethodHandler; - - constructor(handler: TextInputMethodHandler) { - this.textInputMethodHandler = handler; - } - - onMethodCall(call: MethodCall, result: MethodResult) { - if (this.textInputMethodHandler == null) { - return; - } - let method: string = call.method; - let args: ESObject = call.args; - Log.d(TAG, "Received '" + method + "' message."); - switch (method) { - case "TextInput.show": - this.textInputMethodHandler.show(); - Log.d(TAG, "textInputMethodHandler.show()"); - result.success(null); - break; - case "TextInput.hide": - this.textInputMethodHandler.hide(); - result.success(null); - break; - case "TextInput.setClient": - const textInputClientId: number = args[0] as number; - //TODO: parse configuration - const config: Configuration | null = null; - this.textInputMethodHandler.setClient(textInputClientId, config); - result.success(null); - break; - case "TextInput.requestAutofill": - //TODO: requestAutofill - result.notImplemented(); - break; - case "TextInput.setPlatformViewClient": - //TODO: - result.notImplemented(); - break; - case "TextInput.setEditingState": - this.textInputMethodHandler.setEditingState(TextEditState.fromJson(args)); - result.success(null); - break; - case "TextInput.setEditableSizeAndTransform": - //TODO: - result.notImplemented(); - break; - case "TextInput.clearClient": - this.textInputMethodHandler.clearClient(); - result.success(null); - break; - case "TextInput.sendAppPrivateCommand": - //TODO: - result.notImplemented(); - break; - case "TextInput.finishAutofillContext": - //TODO: - result.notImplemented(); - break; - default: - result.notImplemented(); - break; - } - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/ExclusiveAppComponent.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/ExclusiveAppComponent.ets deleted file mode 100644 index f7ecfc7d5ef46c57923679789eb82f86eb83ef77..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/ExclusiveAppComponent.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export default interface ExclusiveAppComponent { - /** - * Called when another App Component is about to become attached to the {@link - * io.flutter.embedding.engine.FlutterEngine} this App Component is currently attached to. - * - *

This App Component's connections to the {@link io.flutter.embedding.engine.FlutterEngine} - * are still valid at the moment of this call. - */ - detachFromFlutterEngine(): void; - - /** - * Retrieve the App Component behind this exclusive App Component. - * - * @return The app component. - */ - getAppComponent(): T; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbility.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbility.ets deleted file mode 100644 index 5e152a6671f47509ac885eadf40cf8e806a3f3c4..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbility.ets +++ /dev/null @@ -1,419 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import UIAbility from '@ohos.app.ability.UIAbility'; -import window from '@ohos.window'; -import { FlutterAbilityDelegate, Host } from './FlutterAbilityDelegate'; -import Log from '../../util/Log'; -import FlutterEngine from '../engine/FlutterEngine'; -import FlutterShellArgs from '../engine/FlutterShellArgs'; -import FlutterAbilityLaunchConfigs from './FlutterAbilityLaunchConfigs'; -import common from '@ohos.app.ability.common'; -import Want from '@ohos.app.ability.Want'; -import display from '@ohos.display'; -import { FlutterPlugin } from '../engine/plugins/FlutterPlugin'; -import { AsyncCallback } from '@ohos.base'; -import AbilityConstant from '@ohos.app.ability.AbilityConstant'; -import I18n from '@ohos.i18n' -import { PlatformBrightness } from '../engine/systemchannels/SettingsChannel'; -import ConfigurationConstant from '@ohos.app.ability.ConfigurationConstant'; -import { DVModelContainer } from '../../view/DynamicView/dynamicView'; -import { RootDvModeManager } from '../../plugin/platform/RootDvModelManager'; -import { Configuration } from '@ohos.app.ability.Configuration'; - -const TAG = "FlutterAbility"; -const EVENT_BACK_PRESS = 'EVENT_BACK_PRESS'; -/** - * flutter ohos基础ability,请在让主ability继承自该类。 - * 该类主要职责: - * 1、持有FlutterAbilityDelegate并初始化; - * 2、生命周期传递; - */ -export class FlutterAbility extends UIAbility implements Host { - private delegate?: FlutterAbilityDelegate | null; - private windowStage?: window.WindowStage; - private mainWindow?: window.Window; - private viewportMetrics = new ViewportMetrics(); - private displayInfo?: display.Display; - - /** - * onCreate - * 1、create and attach delegate - * 2、config windows transparent noNeed? - * 3、lifecycle.onCreate - * 4. setContentView() noNeed - */ - async onCreate(want: Want, launchParam: AbilityConstant.LaunchParam) { - Log.i(TAG, "bundleCodeDir=" + this.context.bundleCodeDir); - // globalThis.flutterAbility = this - this.displayInfo = display.getDefaultDisplaySync(); - this.viewportMetrics.devicePixelRatio = this.displayInfo?.densityPixels - - this.delegate = new FlutterAbilityDelegate(this); - await this?.delegate?.onAttach(this.context); - Log.i(TAG, 'onAttach end'); - this?.delegate?.platformPlugin?.setUIAbilityContext(this.context); - this?.delegate?.onRestoreInstanceState(want); - this?.delegate?.sendSettings(); - - if (this.stillAttachedForEvent("onCreate")) { - this.delegate?.onCreate(); - } - - console.log('MyAbility onCreate'); - // globalThis.applicationContext = this.context.getApplicationContext(); - this.context.eventHub.on(EVENT_BACK_PRESS, () => { - this.delegate?.flutterEngine?.getNavigationChannel()?.popRoute(); - }); - } - - onDestroy() { - this.context.eventHub.off(EVENT_BACK_PRESS); - if (this.stillAttachedForEvent("onDestroy")) { - this?.delegate?.onDestroy(); - } - } - - /** - * window状态改变回调 - * @param windowStage - */ - async onWindowStageCreate(windowStage: window.WindowStage) { - this.windowStage = windowStage - try { - windowStage?.on('windowStageEvent', (data) => { - let stageEventType: window.WindowStageEventType = data; - switch (stageEventType) { - case window.WindowStageEventType.SHOWN: // 切到前台 - Log.i(TAG, 'windowStage foreground.'); - break; - case window.WindowStageEventType.ACTIVE: // 获焦状态 - Log.i(TAG, 'windowStage active.'); - if (this.stillAttachedForEvent("onWindowFocusChanged")) { - this?.delegate?.onWindowFocusChanged(true); - } - break; - case window.WindowStageEventType.INACTIVE: // 失焦状态 - Log.i(TAG, 'windowStage inactive.'); - if (this.stillAttachedForEvent("onWindowFocusChanged")) { - this?.delegate?.onWindowFocusChanged(false); - } - break; - case window.WindowStageEventType.HIDDEN: // 切到后台 - Log.i(TAG, 'windowStage background.'); - break; - default: - break; - } - }); - - this.mainWindow = windowStage?.getMainWindowSync() - this.mainWindow?.on('windowSizeChange', (data) => { - this.onWindowPropertiesUpdated(); - }); - - this.mainWindow?.on('avoidAreaChange', (data) => { - this.onWindowPropertiesUpdated(); - }); - - this.mainWindow?.on('keyboardHeightChange', (data) => { - this.onWindowPropertiesUpdated(); - }); - - this.loadContent(); - this.mainWindow?.setWindowLayoutFullScreen(true); - } catch (exception) { - Log.e(TAG, 'Failed to enable the listener for window stage event changes. Cause:' + JSON.stringify(exception)); - } - } - - loadContent() { - if (this.windowStage != null && this.stillAttachedForEvent("loadContent")) { - Log.i(TAG, 'loadContent'); - this.windowStage?.loadContent('pages/Index', (err, data) => { - if (err.code) { - Log.e(TAG, 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); - return; - } - this.onWindowPropertiesUpdated(); - Log.i(TAG, 'Succeeded in loading the content. Data: %{public}s', JSON.stringify(data) ?? ''); - }); - if (this.stillAttachedForEvent("onWindowStageCreate")) { - this?.delegate?.onWindowStageCreate(); - } - this?.delegate?.getFlutterNapi()?.updateRefreshRate(this.displayInfo!.refreshRate) - this.onFlutterEngineReady() - } - } - - onFlutterEngineReady(): void { - - } - - private updateViewportMetrics() { - this?.delegate?.getFlutterNapi()?.setViewportMetrics(this.viewportMetrics.devicePixelRatio, - this.viewportMetrics.physicalWidth, - this.viewportMetrics.physicalHeight, - this.viewportMetrics.physicalViewPaddingTop, - this.viewportMetrics.physicalViewPaddingRight, - this.viewportMetrics.physicalViewPaddingBottom, - this.viewportMetrics.physicalViewPaddingLeft, - this.viewportMetrics.physicalViewInsetTop, - this.viewportMetrics.physicalViewInsetRight, - this.viewportMetrics.physicalViewInsetBottom, - this.viewportMetrics.physicalViewInsetLeft, - this.viewportMetrics.systemGestureInsetTop, - this.viewportMetrics.systemGestureInsetRight, - this.viewportMetrics.systemGestureInsetBottom, - this.viewportMetrics.systemGestureInsetLeft, - this.viewportMetrics.physicalTouchSlop, - new Array(0), - new Array(0), - new Array(0)) - } - - onWindowStageDestroy() { - if (this.stillAttachedForEvent("onWindowStageDestroy")) { - this?.delegate?.onWindowStageDestroy(); - } - } - - onForeground() { - if (this.stillAttachedForEvent("onForeground")) { - this?.delegate?.onForeground(); - } - } - - onBackground() { - if (this.stillAttachedForEvent("onBackground")) { - this?.delegate?.onBackground(); - } - } - - release() { - if (this?.delegate != null) { - this?.delegate?.release(); - this.delegate = null; - } - } - - /** - * host所有实现方法开始======start - */ - - getAbility(): UIAbility { - return this; - } - - shouldDispatchAppLifecycleState(): boolean { - return true; - } - - provideFlutterEngine(context: common.Context): FlutterEngine | null { - return null; - } - - configureFlutterEngine(flutterEngine: FlutterEngine) { - - } - - cleanUpFlutterEngine(flutterEngine: FlutterEngine) { - - } - - getFlutterShellArgs(): FlutterShellArgs { - return FlutterShellArgs.fromWant(this.getWant()); - } - - getDartEntrypointArgs(): Array { - if (this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_DART_ENTRYPOINT_ARGS]) { - return this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_DART_ENTRYPOINT_ARGS] as Array; - } - return new Array() - } - - detachFromFlutterEngine() { - if (this?.delegate != null) { - this?.delegate?.onDetach(); - } - } - - popSystemNavigator(): boolean { - return false; - } - - shouldAttachEngineToActivity(): boolean { - return true; - } - - getDartEntrypointLibraryUri(): string { - return ""; - } - - getAppBundlePath(): string { - return ""; - } - - getDartEntrypointFunctionName(): string { - if (this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_DART_ENTRYPOINT]) { - return this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_DART_ENTRYPOINT] as string; - } - return FlutterAbilityLaunchConfigs.DEFAULT_DART_ENTRYPOINT - } - - getInitialRoute(): string { - if (this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_INITIAL_ROUTE]) { - return this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_INITIAL_ROUTE] as string; - } - return "" - } - - getWant(): Want { - return this.launchWant; - } - - shouldDestroyEngineWithHost(): boolean { - return true; - } - - shouldRestoreAndSaveState(): boolean{ - if (this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_CACHED_ENGINE_ID] != undefined) { - return this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_CACHED_ENGINE_ID] as boolean; - } - if (this.getCachedEngineId() != null) { - // Prevent overwriting the existing state in a cached engine with restoration state. - return false; - } - return true; - } - - getCachedEngineId(): string { - return this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_CACHED_ENGINE_ID] as string - } - - getCachedEngineGroupId(): string { - return this.launchWant.parameters![FlutterAbilityLaunchConfigs.EXTRA_CACHED_ENGINE_GROUP_ID] as string - } - - /** - * host所有实现方法结束======end - */ - private stillAttachedForEvent(event: string) { - Log.i(TAG, 'Ability ' + event); - if (this?.delegate == null) { - Log.w(TAG, "FlutterAbility " + event + " call after release."); - return false; - } - if (!this?.delegate?.isAttached) { - Log.w(TAG, "FlutterAbility " + event + " call after detach."); - return false; - } - return true; - } - - addPlugin(plugin: FlutterPlugin): void { - if (this?.delegate != null) { - this?.delegate?.addPlugin(plugin) - } - } - - removePlugin(plugin: FlutterPlugin): void { - if (this?.delegate != null) { - this?.delegate?.removePlugin(plugin) - } - } - - private onWindowPropertiesUpdated(){ - if (this.delegate == null || !this.delegate.isAttached) { - return; - } - let systemAvoidArea = this.mainWindow?.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM); - let gestureAvoidArea = this.mainWindow?.getWindowAvoidArea(window.AvoidAreaType.TYPE_SYSTEM_GESTURE); - let keyboardAvoidArea = this.mainWindow?.getWindowAvoidArea(window.AvoidAreaType.TYPE_KEYBOARD); - const properties = this.mainWindow?.getWindowProperties(); - this.viewportMetrics.physicalWidth = properties!.windowRect.width; - this.viewportMetrics.physicalHeight = properties!.windowRect.height; - - this.viewportMetrics.physicalViewPaddingTop = systemAvoidArea!.topRect.height - this.viewportMetrics.physicalViewPaddingLeft = systemAvoidArea!.leftRect.width - this.viewportMetrics.physicalViewPaddingBottom = systemAvoidArea!.bottomRect.height - this.viewportMetrics.physicalViewPaddingRight = systemAvoidArea!.rightRect.width - - this.viewportMetrics.physicalViewInsetTop = keyboardAvoidArea!.topRect.height - this.viewportMetrics.physicalViewInsetLeft = keyboardAvoidArea!.leftRect.width - this.viewportMetrics.physicalViewInsetBottom = keyboardAvoidArea!.bottomRect.height - this.viewportMetrics.physicalViewInsetRight = keyboardAvoidArea!.rightRect.width - - this.viewportMetrics.systemGestureInsetTop = gestureAvoidArea!.topRect.height - this.viewportMetrics.systemGestureInsetLeft = gestureAvoidArea!.leftRect.width - this.viewportMetrics.systemGestureInsetBottom = gestureAvoidArea!.bottomRect.height - this.viewportMetrics.systemGestureInsetRight = gestureAvoidArea!.rightRect.width - - this.updateViewportMetrics() - } - - onMemoryLevel(level: AbilityConstant.MemoryLevel): void { - Log.i(TAG, 'onMemoryLevel: ' + level); - if (level === AbilityConstant.MemoryLevel.MEMORY_LEVEL_CRITICAL) { - this?.delegate?.onLowMemory(); - } - } - - onConfigurationUpdated(config: Configuration){ - Log.i(TAG, 'onConfigurationUpdated config:' + JSON.stringify(config)); - this?.delegate?.flutterEngine?.getSettingsChannel()?.startMessage() - .setAlwaysUse24HourFormat(I18n.System.is24HourClock()) - .setPlatformBrightness(config.colorMode != ConfigurationConstant.ColorMode.COLOR_MODE_DARK - ? PlatformBrightness.LIGHT : PlatformBrightness.DARK); - } - - getWindowId(callback: AsyncCallback): void { - if (callback === null) { - return; - } - try { - window.getLastWindow(this.context, (error, win) => { - if (error.code) { - callback(error, -1); - return; - } - let windowId = win.getWindowProperties().id; - callback(error, windowId); - }); - } catch (err) { - Log.e(TAG, "get window id error!"); - callback(err, -1); - } - } -} - -export class ViewportMetrics { - devicePixelRatio: number = 1.0; - physicalWidth: number = 0; - physicalHeight: number = 0; - physicalViewPaddingTop: number = 0; - physicalViewPaddingRight: number = 0; - physicalViewPaddingBottom: number = 0; - physicalViewPaddingLeft: number = 0; - physicalViewInsetTop: number = 0; - physicalViewInsetRight: number = 0; - physicalViewInsetBottom: number = 0; - physicalViewInsetLeft: number = 0; - systemGestureInsetTop: number = 0; - systemGestureInsetRight: number = 0; - systemGestureInsetBottom: number = 0; - systemGestureInsetLeft: number = 0; - physicalTouchSlop = -1; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbilityDelegate.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbilityDelegate.ets deleted file mode 100644 index af0946ca03adcd28b6735e09ffcd05345c77c9eb..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbilityDelegate.ets +++ /dev/null @@ -1,457 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import common from '@ohos.app.ability.common'; -import FlutterEngineConfigurator from './FlutterEngineConfigurator'; -import FlutterEngineProvider from './FlutterEngineProvider'; -import FlutterEngine from '../engine/FlutterEngine'; -import PlatformPlugin, { PlatformPluginDelegate } from '../../plugin/PlatformPlugin'; -import Want from '@ohos.app.ability.Want'; -import FlutterShellArgs from '../engine/FlutterShellArgs'; -import DartExecutor, { DartEntrypoint } from '../engine/dart/DartExecutor'; -import FlutterAbilityLaunchConfigs from './FlutterAbilityLaunchConfigs'; -import Log from '../../util/Log'; -import FlutterInjector from '../../FlutterInjector'; -import UIAbility from '@ohos.app.ability.UIAbility'; -import ExclusiveAppComponent from './ExclusiveAppComponent'; -import AbilityConstant from '@ohos.app.ability.AbilityConstant'; -import TextInputPlugin from '../../plugin/editing/TextInputPlugin'; -import { FlutterPlugin } from '../engine/plugins/FlutterPlugin'; -import FlutterEngineCache from '../engine/FlutterEngineCache'; -import FlutterEngineGroupCache from '../engine/FlutterEngineGroupCache'; -import FlutterEngineGroup, { Options } from '../engine/FlutterEngineGroup'; -import MouseCursorPlugin, { MouseCursorViewDelegate } from '../../plugin/mouse/MouseCursorPlugin'; -import Settings from './Settings'; -import FlutterNapi from '../engine/FlutterNapi'; - -const TAG = "FlutterAbilityDelegate"; -const PLUGINS_RESTORATION_BUNDLE_KEY = "plugins"; -const FRAMEWORK_RESTORATION_BUNDLE_KEY = "framework"; - -/** - * 主要职责: - * 1、初始化engine - * 2、处理ability生命周期回调 - */ -class FlutterAbilityDelegate implements ExclusiveAppComponent { - private host?: Host | null; - flutterEngine?: FlutterEngine | null; - platformPlugin?: PlatformPlugin; - private context?: common.Context; - private textInputPlugin?: TextInputPlugin; - private isFlutterEngineFromHost: boolean = false; - private engineGroup?: FlutterEngineGroup; - private settings?: Settings; - - constructor(host: Host) { - this.host = host; - } - - /** - * 是否还attach在ability上 - */ - isAttached = false; - - async onAttach(context: common.Context): Promise { - this.context = context; - this.ensureAlive(); - if (this.flutterEngine == null) { - await this.setupFlutterEngine(); - } - //shouldAttachEngineToActivity - if (this.host?.shouldAttachEngineToActivity()) { - // Notify any plugins that are currently attached to our FlutterEngine that they - // are now attached to an Ability. - Log.d(TAG, "Attaching FlutterEngine to the Ability that owns this delegate."); - this.flutterEngine?.getAbilityControlSurface()?.attachToAbility(this); - } - - //providePlatformPlugin - - //configureFlutterEngine - this.isAttached = true; - Log.d(TAG, "onAttach end start loadcontent") - this.host?.loadContent() - if (this.flutterEngine) { - this.textInputPlugin = new TextInputPlugin(this.flutterEngine.getTextInputChannel()!); - this.platformPlugin = new PlatformPlugin(this.flutterEngine.getPlatformChannel()!, this.context); - this.settings = new Settings(this.flutterEngine.getSettingsChannel()!); - this.flutterEngine.getSystemLanguages(); - } - } - - /** - * 加载app.so资源或者snapshot - */ - private doInitialFlutterViewRun(): void { - let initialRoute = this.host?.getInitialRoute(); - if (initialRoute == null && this.host != null) { - initialRoute = this.maybeGetInitialRouteFromIntent(this.host.getWant()); - if (initialRoute == null) { - initialRoute = FlutterAbilityLaunchConfigs.DEFAULT_INITIAL_ROUTE; - } - } - const libraryUri = this.host?.getDartEntrypointLibraryUri(); - Log.d(TAG, "Executing Dart entrypoint: " + this.host?.getDartEntrypointFunctionName() + ", library uri: " + libraryUri == null ? "\"\"" : libraryUri + ", and sending initial route: " + initialRoute); - - // The engine needs to receive the Flutter app's initial route before executing any - // Dart code to ensure that the initial route arrives in time to be applied. - this.flutterEngine?.getNavigationChannel()?.setInitialRoute(initialRoute ?? ''); - - let appBundlePathOverride = this.host?.getAppBundlePath(); - if (appBundlePathOverride == null || appBundlePathOverride == '') { - appBundlePathOverride = FlutterInjector.getInstance().getFlutterLoader().findAppBundlePath(); - } - - const dartEntrypoint: DartEntrypoint = new DartEntrypoint( - appBundlePathOverride, - this.host?.getDartEntrypointLibraryUri() ?? '', - this.host?.getDartEntrypointFunctionName() ?? '' - ); - this.flutterEngine?.dartExecutor.executeDartEntrypoint(dartEntrypoint, this.host?.getDartEntrypointArgs()); - } - - private maybeGetInitialRouteFromIntent(want: Want): string { - return ''; - } - - - /** - * 通过参数,配置flutterEngine - * @param want - */ - onRestoreInstanceState(want: Want) { - let frameworkState = want.parameters != null - ? want.parameters[FRAMEWORK_RESTORATION_BUNDLE_KEY] as Uint8Array - : new Uint8Array(); - if (this.host?.shouldRestoreAndSaveState()) { - this.flutterEngine?.getRestorationChannel()?.setRestorationData(frameworkState); - } - } - - /** - * 初始化flutterEngine - */ - async setupFlutterEngine() { - // First, check if the host wants to use a cached FlutterEngine. - const cachedEngineId = this.host?.getCachedEngineId(); - Log.d(TAG, "cachedEngineId=" + cachedEngineId); - if (cachedEngineId && cachedEngineId.length > 0) { - this.flutterEngine = FlutterEngineCache.getInstance().get(cachedEngineId); - this.isFlutterEngineFromHost = true; - if (this.flutterEngine == null) { - throw new Error( - "The requested cached FlutterEngine did not exist in the FlutterEngineCache: '" - + cachedEngineId - + "'"); - } - return; - } - - // Second, defer to subclasses for a custom FlutterEngine. - if (this.host && this.context) { - this.flutterEngine = this.host.provideFlutterEngine(this.context); - } - if (this.flutterEngine != null) { - this.isFlutterEngineFromHost = true; - return; - } - - // Third, check if the host wants to use a cached FlutterEngineGroup - // and create new FlutterEngine using FlutterEngineGroup#createAndRunEngine - const cachedEngineGroupId = this.host?.getCachedEngineGroupId(); - Log.d(TAG, "cachedEngineGroupId=" + cachedEngineGroupId); - if (cachedEngineGroupId != null) { - const flutterEngineGroup = FlutterEngineGroupCache.instance.get(cachedEngineGroupId); - if (flutterEngineGroup == null) { - throw new Error( - "The requested cached FlutterEngineGroup did not exist in the FlutterEngineGroupCache: '" - + cachedEngineGroupId - + "'"); - } - - if (this.context != null) { - this.flutterEngine = await flutterEngineGroup.createAndRunEngineByOptions( - this.addEntrypointOptions(new Options(this.context))); - } - this.isFlutterEngineFromHost = false; - return; - } - - // Our host did not provide a custom FlutterEngine. Create a FlutterEngine to back our - // FlutterView. - Log.d( - TAG, - "No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterAbility."); - - let group = this.engineGroup; - if (group == null && this.context != null && this.host != null) { - group = new FlutterEngineGroup(); - await group.checkLoader(this.context, this.host.getFlutterShellArgs().toArray() ?? []); - this.engineGroup = group; - } - if (this.context) { - this.flutterEngine = await group?.createAndRunEngineByOptions(this.addEntrypointOptions(new Options(this.context) - .setAutomaticallyRegisterPlugins(false) - .setWaitForRestorationData(this.host?.shouldRestoreAndSaveState() || false))); - } - this.isFlutterEngineFromHost = false; - } - - addEntrypointOptions(options: Options): Options { - let appBundlePathOverride = this.host?.getAppBundlePath(); - if (appBundlePathOverride == null || appBundlePathOverride.length == 0) { - appBundlePathOverride = FlutterInjector.getInstance().getFlutterLoader().findAppBundlePath(); - } - - const dartEntrypoint = new DartEntrypoint(appBundlePathOverride ?? '', - '', - this.host?.getDartEntrypointFunctionName() ?? ''); - let initialRoute = this.host?.getInitialRoute(); - if (initialRoute == null && this.host != null) { - initialRoute = this.maybeGetInitialRouteFromIntent(this.host.getWant()); - if (initialRoute == null) { - initialRoute = FlutterAbilityLaunchConfigs.DEFAULT_INITIAL_ROUTE; - } - } - return options - .setDartEntrypoint(dartEntrypoint) - .setInitialRoute(initialRoute ?? '') - .setDartEntrypointArgs(this.host?.getDartEntrypointArgs() ?? []); - } - - /** - * 释放所有持有对象 - */ - release() { - this.host = null; - this.flutterEngine = null; - } - - onDetach() { - if (this.host?.shouldAttachEngineToActivity()) { - // Notify plugins that they are no longer attached to an Activity. - Log.d(TAG, "Detaching FlutterEngine from the Ability"); - this.flutterEngine?.getAbilityControlSurface()?.detachFromAbility(); - } - } - - onLowMemory(): void { - this.getFlutterNapi()?.notifyLowMemoryWarning(); - this.flutterEngine?.getSystemChannel()?.sendMemoryPressureWarning(); - } - - /** - * 生命周期回调 - */ - - onCreate() { - this.ensureAlive(); - if (this.shouldDispatchAppLifecycleState()) { - this.flutterEngine?.getLifecycleChannel()?.appIsInactive(); - } - } - - onDestroy() { - this.ensureAlive(); - if (this.shouldDispatchAppLifecycleState()) { - this.flutterEngine?.getLifecycleChannel()?.appIsDetached(); - } - this.textInputPlugin?.detach(); - } - - onWindowStageCreate() { - this.ensureAlive(); - this.doInitialFlutterViewRun(); - if (this.shouldDispatchAppLifecycleState()) { - this.flutterEngine?.getLifecycleChannel()?.appIsResumed(); - } - } - - onWindowStageDestroy() { - - } - - onWindowFocusChanged(hasFocus: boolean):void { - if (this.shouldDispatchAppLifecycleState()) { - this.flutterEngine?.getAbilityControlSurface()?.onWindowFocusChanged(hasFocus); - if (hasFocus) { - this.flutterEngine?.getLifecycleChannel()?.aWindowIsFocused(); - } else { - this.flutterEngine?.getLifecycleChannel()?.noWindowsAreFocused(); - } - } - } - - onForeground() { - this.ensureAlive(); - if (this.shouldDispatchAppLifecycleState()) { - this.flutterEngine?.getLifecycleChannel()?.appIsResumed(); - } - } - - onBackground() { - if (this.shouldDispatchAppLifecycleState()) { - this.flutterEngine?.getLifecycleChannel()?.appIsPaused(); - } - } - - /** - * 生命周期回调结束 - */ - - shouldDispatchAppLifecycleState(): boolean { - if (this.host == null) { - return false; - } - return this.host.shouldDispatchAppLifecycleState() && this.isAttached; - } - - ensureAlive() { - if (this.host == null) { - throw new Error("Cannot execute method on a destroyed FlutterAbilityDelegate."); - } - } - - getFlutterNapi() : FlutterNapi | null { - return this.flutterEngine?.getFlutterNapi() ?? null - } - - detachFromFlutterEngine() { - if (this.host?.shouldDestroyEngineWithHost()) { - // The host owns the engine and should never have its engine taken by another exclusive - // activity. - throw new Error( - "The internal FlutterEngine created by " - + this.host - + " has been attached to by another activity. To persist a FlutterEngine beyond the " - + "ownership of this ablity, explicitly create a FlutterEngine"); - } - - // Default, but customizable, behavior is for the host to call {@link #onDetach} - // deterministically as to not mix more events during the lifecycle of the next exclusive - // activity. - this.host?.detachFromFlutterEngine(); - } - - getAppComponent(): UIAbility { - const ability = this.host?.getAbility(); - if (ability == null) { - throw new Error( - "FlutterActivityAndFragmentDelegate's getAppComponent should only " - + "be queried after onAttach, when the host's ability should always be non-null"); - } - return ability; - } - - onNewWant(want: Want, launchParams: AbilityConstant.LaunchParam): void { - this.ensureAlive() - if (this.flutterEngine != null) { - Log.i(TAG, "Forwarding onNewWant() to FlutterEngine and sending pushRouteInformation message."); - this.flutterEngine?.getAbilityControlSurface()?.onNewWant(want, launchParams); - const initialRoute = this.maybeGetInitialRouteFromIntent(want); - if (initialRoute && initialRoute.length > 0) { - this.flutterEngine?.getNavigationChannel()?.pushRouteInformation(initialRoute); - } - } else { - Log.w(TAG, "onNewIntent() invoked before FlutterFragment was attached to an Activity."); - } - } - - onSaveState(reason: AbilityConstant.StateType, wantParam: Record): AbilityConstant.OnSaveResult { - Log.i(TAG, "onSaveInstanceState. Giving framework and plugins an opportunity to save state."); - this.ensureAlive(); - if (this.host?.shouldRestoreAndSaveState()) { - wantParam[FRAMEWORK_RESTORATION_BUNDLE_KEY] = this.flutterEngine!.getRestorationChannel()!.getRestorationData(); - } - if (this.host?.shouldAttachEngineToActivity()) { - const plugins:Record = {} - const result = this.flutterEngine?.getAbilityControlSurface()?.onSaveState(reason, plugins); - wantParam[PLUGINS_RESTORATION_BUNDLE_KEY] = plugins; - return result ?? AbilityConstant.OnSaveResult.ALL_REJECT - } - return AbilityConstant.OnSaveResult.ALL_REJECT - } - - addPlugin(plugin: FlutterPlugin): void { - this.flutterEngine?.getPlugins()?.add(plugin) - } - - removePlugin(plugin: FlutterPlugin): void { - this.flutterEngine?.getPlugins()?.remove(plugin.getUniqueClassName()) - } - - sendSettings(): void { - this.settings?.sendSettings() - } -} - - -/** - * FlutterAbility句柄 - */ -interface Host extends FlutterEngineProvider, FlutterEngineConfigurator, PlatformPluginDelegate, MouseCursorViewDelegate { - - getAbility(): UIAbility; - - loadContent():void; - - shouldDispatchAppLifecycleState(): boolean; - - detachFromFlutterEngine(); - - shouldAttachEngineToActivity(): boolean; - - getCachedEngineId(): string; - - getCachedEngineGroupId(): string; - - /** - * Returns true if the {@link io.flutter.embedding.engine.FlutterEngine} used in this delegate - * should be destroyed when the host/delegate are destroyed. - */ - shouldDestroyEngineWithHost(): boolean; - - /** Returns the {@link FlutterShellArgs} that should be used when initializing Flutter. */ - getFlutterShellArgs(): FlutterShellArgs; - - /** Returns arguments that passed as a list of string to Dart's entrypoint function. */ - getDartEntrypointArgs(): Array; - - /** - * Returns the URI of the Dart library which contains the entrypoint method (example - * "package:foo_package/main.dart"). If null, this will default to the same library as the - * `main()` function in the Dart program. - */ - getDartEntrypointLibraryUri(): string; - - /** Returns the path to the app bundle where the Dart code exists. */ - getAppBundlePath(): string; - - /** - * Returns the Dart entrypoint that should run when a new {@link - * io.flutter.embedding.engine.FlutterEngine} is created. - */ - getDartEntrypointFunctionName(): string; - - /** Returns the initial route that Flutter renders. */ - getInitialRoute(): string; - - getWant(): Want; - - shouldRestoreAndSaveState(): boolean; -} - -export { Host, FlutterAbilityDelegate } \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbilityLaunchConfigs.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbilityLaunchConfigs.ets deleted file mode 100644 index 996f455b9d045411425025f5c68089aee3f8938c..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterAbilityLaunchConfigs.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/** The mode of the background of a Flutter {@code Activity}, either opaque or transparent. */ -enum BackgroundMode { - /** Indicates a FlutterActivity with an opaque background. This is the default. */ - opaque, - /** Indicates a FlutterActivity with a transparent background. */ - transparent -} - -export default class FlutterAbilityLaunchConfigs { - - static DART_ENTRYPOINT_META_DATA_KEY = "io.flutter.Entrypoint"; - static DART_ENTRYPOINT_URI_META_DATA_KEY = "io.flutter.EntrypointUri"; - static INITIAL_ROUTE_META_DATA_KEY = "io.flutter.InitialRoute"; - static SPLASH_SCREEN_META_DATA_KEY = "io.flutter.embedding.android.SplashScreenDrawable"; - static NORMAL_THEME_META_DATA_KEY = "io.flutter.embedding.android.NormalTheme"; - static HANDLE_DEEPLINKING_META_DATA_KEY = "flutter_deeplinking_enabled"; - // Intent extra arguments. - static EXTRA_DART_ENTRYPOINT = "dart_entrypoint"; - static EXTRA_INITIAL_ROUTE = "route"; - static EXTRA_BACKGROUND_MODE = "background_mode"; - static EXTRA_CACHED_ENGINE_ID = "cached_engine_id"; - static EXTRA_DART_ENTRYPOINT_ARGS = "dart_entrypoint_args"; - static EXTRA_CACHED_ENGINE_GROUP_ID = "cached_engine_group_id"; - static EXTRA_DESTROY_ENGINE_WITH_ACTIVITY = "destroy_engine_with_activity"; - static EXTRA_ENABLE_STATE_RESTORATION = "enable_state_restoration"; - - // Default configuration. - static DEFAULT_DART_ENTRYPOINT = "main"; - static DEFAULT_INITIAL_ROUTE = "/"; - static DEFAULT_BACKGROUND_MODE = BackgroundMode.opaque -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterEngineConfigurator.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterEngineConfigurator.ets deleted file mode 100644 index 7953cad0836a9be4bf6bfd940594fdc787f45d66..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterEngineConfigurator.ets +++ /dev/null @@ -1,23 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import FlutterEngine from '../engine/FlutterEngine'; - -export default interface FlutterEngineConfigurator { - - configureFlutterEngine(flutterEngine: FlutterEngine); - - cleanUpFlutterEngine(flutterEngine: FlutterEngine); -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterEngineProvider.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterEngineProvider.ets deleted file mode 100644 index a8eea36514d690e00aba5c987f61907cf4292515..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterEngineProvider.ets +++ /dev/null @@ -1,21 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import FlutterEngine from '../engine/FlutterEngine'; -import common from '@ohos.app.ability.common'; - -export default interface FlutterEngineProvider { - provideFlutterEngine(context: common.Context): FlutterEngine | null; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterPage.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterPage.ets deleted file mode 100644 index 05695111937b486f3f498e9c87c12bdb85d829c5..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/FlutterPage.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -import { PlatformViewWrapper } from '../../plugin/platform/PlatformViewWrapper'; -import { RootDvModeManager } from '../../plugin/platform/RootDvModelManager'; -import { DVModel, - DVModelChildren, - DVModelContainer, - DVModelEvents, - DVModelParameters, DynamicView } from '../../view/DynamicView/dynamicView'; -import { createDVModelFromJson } from '../../view/DynamicView/dynamicViewJson'; - -/** - * 基础page组件,承载XComponent组件 - */ -@Component -export struct FlutterPage { - @State message: string = 'Hello World'; - - @State rootDvModel: DVModelContainer = RootDvModeManager.getRootDvMode(); - - build() { - DynamicView({ - model: this.rootDvModel.model as DVModel, - params: this.rootDvModel.model.params as DVModelParameters, - events: this.rootDvModel.model.events as DVModelEvents, - children: this.rootDvModel.model.children as DVModelChildren, - customBuilder: this.rootDvModel.model.builder as ($$: Record<"params",DVModelParameters >) => void - //customBuilder: this.rootDvModel.model.builder as ($$: { params: DVModelParameters }) => void - }) - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/OhosTouchProcessor.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/OhosTouchProcessor.ets deleted file mode 100644 index 53f0f0a6c8f5e2ec858ad802a4e4653ed164c31e..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/OhosTouchProcessor.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { TouchEvent } from '@ohos.multimodalInput.touchEvent'; - -export default class OhosTouchProcessor { - private static POINTER_DATA_FIELD_COUNT: number = 35; - - static BYTES_PER_FIELD: number = 8; - - private static POINTER_DATA_FLAG_BATCHED: number = 1; - - public onTouchEvent(event: TouchEvent, transformMatrix: ESObject): void { - - } -} - -export enum PointerChange { - CANCEL = 0, - ADD = 1, - REMOVE = 2, - HOVER = 3, - DOWN = 4, - MOVE = 5, - UP = 6, - PAN_ZOOM_START = 7, - PAN_ZOOM_UPDATE = 8, - PAN_ZOOM_END = 9 -} - -export enum PointerDeviceKind { - TOUCH = 0, - MOUSE = 1, - STYLUS = 2, - INVERTED_STYLUS = 3, - TRACKPAD = 4, - UNKNOWN = 5 -} - -export enum PointerSignalKind { - NONE = 0, - SCROLL = 1, - SCROLL_INERTIA_CANCEL = 2, - SCALE = 3, - UNKNOWN = 4 -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/Settings.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/Settings.ets deleted file mode 100644 index d8ced27e5a16fffa1be79bc836bb790bfc81d07e..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/Settings.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import SettingsChannel, { PlatformBrightness } from '../engine/systemchannels/SettingsChannel' -import I18n from '@ohos.i18n' - -export default class Settings { - settingsChannel: SettingsChannel | null; - - constructor(settingsChannel: SettingsChannel | null) { - this.settingsChannel = settingsChannel; - } - - sendSettings(): void { - this.settingsChannel?.startMessage() - .setAlwaysUse24HourFormat(I18n.System.is24HourClock()) - .setTextScaleFactor(1.0) - .setNativeSpellCheckServiceDefined(false) - .setBrieflyShowPassword(false) - .setPlatformBrightness(PlatformBrightness.LIGHT) - .send(); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/TouchEventTracker.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/TouchEventTracker.ets deleted file mode 100644 index b51743116ed023a1eb9b84448a8a77c7defd4b2f..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/TouchEventTracker.ets +++ /dev/null @@ -1,87 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -/** Tracks the motion events received by the FlutterView. */ -import PlainArray from '@ohos.util.PlainArray'; -import { TouchEvent } from '@ohos.multimodalInput.touchEvent'; -import Queue from '@ohos.util.Queue'; - -export class TouchEventTracker { - private eventById : PlainArray; - private unusedEvents : Queue; - private static INSTANCE:TouchEventTracker; - - public static getInstance(): TouchEventTracker { - if (TouchEventTracker.INSTANCE == null) { - TouchEventTracker.INSTANCE = new TouchEventTracker(); - } - return TouchEventTracker.INSTANCE; - } - - constructor() { - this.eventById = new PlainArray(); - this.unusedEvents = new Queue(); - } - - /** Tracks the event and returns a unique MotionEventId identifying the event. */ - public track(event :TouchEvent) : TouchEventId { - const eventId:TouchEventId = TouchEventId.createUnique(); - this.eventById.add(eventId.getId(), event); - this.unusedEvents.add(eventId.getId()); - return eventId; - } - - /** - * Returns the MotionEvent corresponding to the eventId while discarding all the motion events - * that occurred prior to the event represented by the eventId. Returns null if this event was - * popped or discarded. - */ - public pop(eventId : TouchEventId) : TouchEvent { - // remove all the older events. - while (this.unusedEvents.length != 0 && this.unusedEvents.getFirst() < eventId.getId()) { - this.eventById.remove(this.unusedEvents.pop()); - } - - // remove the current event from the heap if it exists. - if (this.unusedEvents.length != 0 && this.unusedEvents.getFirst() == eventId.getId()) { - this.unusedEvents.pop(); - } - - const event : TouchEvent = this.eventById.get(eventId.getId()); - this.eventById.remove(eventId.getId()); - return event; - } -} - -/** Represents a unique identifier corresponding to a motion event. */ -export class TouchEventId { - private static ID_COUNTER : number = 0; - private id : number; - - constructor(id : number) { - this.id = id; - } - - public static from(id : number) : TouchEventId { - return new TouchEventId(id); - } - - public static createUnique() : TouchEventId { - return new TouchEventId(TouchEventId.ID_COUNTER++); - } - - public getId() : number { - return this.id; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/WindowInfoRepositoryCallbackAdapterWrapper.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/WindowInfoRepositoryCallbackAdapterWrapper.ets deleted file mode 100644 index ae2c6cfd5202c3f2c912720217df452a727f35b6..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/embedding/ohos/WindowInfoRepositoryCallbackAdapterWrapper.ets +++ /dev/null @@ -1,23 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import UIAbility from '@ohos.app.ability.UIAbility'; - -export default class WindowInfoRepositoryCallbackAdapterWrapper { - - constructor() { - } - -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/PlatformPlugin.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/PlatformPlugin.ets deleted file mode 100644 index 8c757c2a47ed5ef253920e1fb88f15e0f332a5c9..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/PlatformPlugin.ets +++ /dev/null @@ -1,301 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -import PlatformChannel, { - AppSwitcherDescription, - Brightness, - ClipboardContentFormat, - HapticFeedbackType, - PlatformMessageHandler, - SoundType, - SystemChromeStyle, - SystemUiMode, - SystemUiOverlay -} from '../embedding/engine/systemchannels/PlatformChannel'; -import pasteboard from '@ohos.pasteboard'; -import Log from '../util/Log'; -import vibrator from '@ohos.vibrator'; -import window from '@ohos.window'; -import common from '@ohos.app.ability.common'; - -/** - * ohos实现platform plugin - */ -export default class PlatformPlugin { - private static TAG = "PlatformPlugin"; - private callback = new PlatformPluginCallback(); - - constructor(platformChannel: PlatformChannel, context: common.Context, platformPluginDelegate?: PlatformPluginDelegate) { - this.callback.platformChannel = platformChannel; - this.callback.context = context; - this.callback.applicationContext = context?.getApplicationContext(); - this.callback.platform = this; - - try { - window.getLastWindow(context, (err, data) => { - if (err.code) { - Log.e(PlatformPlugin.TAG, "Failed to obtain the top window. Cause: " + JSON.stringify(err)); - return; - } - this.callback.windowClass = data; - }); - } catch (err) { - Log.e(PlatformPlugin.TAG, "Failed to obtain the top window. Cause: " + JSON.stringify(err)); - } - this.callback.platformPluginDelegate = platformPluginDelegate ?? null; - this.callback.platformChannel?.setPlatformMessageHandler(this.callback); - } - - - updateSystemUiOverlays(): void { - this.callback.windowClass?.setWindowSystemBarEnable(this.callback.showBarOrNavigation); - if (this.callback.currentTheme != null) { - this.callback.setSystemChromeSystemUIOverlayStyle(this.callback.currentTheme); - } - } - - setUIAbilityContext(context: common.UIAbilityContext): void { - this.callback.uiAbilityContext = context; - } - - setSystemChromeChangeListener(): void { - if (this.callback.callbackId == null && this.callback.applicationContext != null) { - let that = this; - this.callback.callbackId = this.callback.applicationContext?.on('environment', { - onConfigurationUpdated(config) { - Log.d(PlatformPlugin.TAG, "onConfigurationUpdated: " + that.callback.showBarOrNavigation); - that.callback.platformChannel?.systemChromeChanged(that.callback.showBarOrNavigation.includes('status')); - }, - onMemoryLevel(level) { - } - }) - } - } -} - -export interface PlatformPluginDelegate { - popSystemNavigator(): boolean; -} - -class PlatformPluginCallback implements PlatformMessageHandler { - private static TAG = "PlatformPluginCallback"; - platform: PlatformPlugin | null = null; - windowClass: window.Window | null = null; - platformChannel: PlatformChannel | null = null; - platformPluginDelegate: PlatformPluginDelegate | null = null; - context: common.Context | null = null; - showBarOrNavigation: ('status' | 'navigation')[] = ['status', 'navigation']; - uiAbilityContext: common.UIAbilityContext | null = null; - callbackId: number | null = null; - applicationContext: common.ApplicationContext | null = null; - currentTheme: SystemChromeStyle | null = null; - - playSystemSound(soundType: SoundType) { - } - - vibrateHapticFeedback(feedbackType: HapticFeedbackType) { - switch (feedbackType) { - case HapticFeedbackType.STANDARD: - vibrator.startVibration({ type: 'time', duration: 75 }, - { id: 0, usage: 'touch' }); - break; - case HapticFeedbackType.LIGHT_IMPACT: - vibrator.startVibration({ type: 'time', duration: 25 }, - { id: 0, usage: 'touch' }); - break; - case HapticFeedbackType.MEDIUM_IMPACT: - vibrator.startVibration({ type: 'time', duration: 150 }, - { id: 0, usage: 'touch' }); - break; - case HapticFeedbackType.HEAVY_IMPACT: - vibrator.startVibration({ type: 'time', duration: 300 }, - { id: 0, usage: 'touch' }); - break; - case HapticFeedbackType.SELECTION_CLICK: - vibrator.startVibration({ type: 'time', duration: 100 }, - { id: 0, usage: 'touch' }); - break; - } - } - - setPreferredOrientations(ohosOrientation: number) { - Log.d(PlatformPluginCallback.TAG, "ohosOrientation: " + ohosOrientation); - this.windowClass?.setPreferredOrientation(ohosOrientation); - } - - setApplicationSwitcherDescription(description: AppSwitcherDescription) { - // representation described in the given {@code description}. - } - - showSystemOverlays(overlays: SystemUiOverlay[]) { - this.setSystemChromeEnabledSystemUIOverlays(overlays); - } - - showSystemUiMode(mode: SystemUiMode) { - this.setSystemChromeEnabledSystemUIMode(mode); - } - - setSystemUiChangeListener() { - this.platform?.setSystemChromeChangeListener(); - } - - restoreSystemUiOverlays() { - this.platform?.updateSystemUiOverlays(); - } - - setSystemUiOverlayStyle(systemUiOverlayStyle: SystemChromeStyle) { - Log.d(PlatformPluginCallback.TAG, "systemUiOverlayStyle:" + JSON.stringify(systemUiOverlayStyle)); - this.setSystemChromeSystemUIOverlayStyle(systemUiOverlayStyle); - } - - popSystemNavigator() { - if (this.platformPluginDelegate != null && this.platformPluginDelegate?.popSystemNavigator()) { - return; - } - if (this.uiAbilityContext != null) { - this.uiAbilityContext.terminateSelf(); - } - } - - getClipboardData(format: ClipboardContentFormat): string { - // todo - return ""; - } - - setClipboardData(text: string) { - let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_PLAIN, text); - let clipboard = pasteboard.getSystemPasteboard(); - clipboard.setData(pasteData); - } - - clipboardHasStrings(): boolean { - return false; - } - - setSystemChromeEnabledSystemUIMode(mode: SystemUiMode): void { - Log.d(PlatformPluginCallback.TAG, "mode: " + mode); - let uiConfig: ('status' | 'navigation')[] = []; - if (mode == SystemUiMode.LEAN_BACK) { - //全屏显示,通过点击显示器上的任何位置都可以显示状态和导航栏 - this.windowClass?.setWindowLayoutFullScreen(false); - - } else if (mode == SystemUiMode.IMMERSIVE) { - //全屏显示,通过在显示器边缘的滑动手势可以显示状态和导航栏,应用程序不会接收到此手势 - this.windowClass?.setWindowLayoutFullScreen(true); - - } else if (mode == SystemUiMode.IMMERSIVE_STICKY) { - //全屏显示,通过在显示器边缘的滑动手势可以显示状态和导航栏,此手势由应用程序接收 - this.windowClass?.setWindowLayoutFullScreen(true); - - } else if (mode == SystemUiMode.EDGE_TO_EDGE) { - //全屏显示,在应用程序上呈现状态和导航元素 - this.windowClass?.setWindowLayoutFullScreen(false); - uiConfig = ['status', 'navigation']; - - } else { - return; - } - this.showBarOrNavigation = uiConfig; - this.platform?.updateSystemUiOverlays(); - } - - setSystemChromeSystemUIOverlayStyle(systemChromeStyle: SystemChromeStyle): void { - let isStatusBarLightIconValue: boolean = false; - let statusBarColorValue: string | undefined = undefined; - let statusBarContentColorValue: string | undefined = undefined; - let navigationBarColorValue: string | undefined = undefined; - let isNavigationBarLightIconValue: boolean = false; - let navigationBarContentColorValue: string | undefined = undefined; - if (systemChromeStyle.statusBarIconBrightness != null) { - switch (systemChromeStyle.statusBarIconBrightness) { - case Brightness.DARK: - isStatusBarLightIconValue = false; - break; - case Brightness.LIGHT: - isStatusBarLightIconValue = true; - break; - } - } - - if (systemChromeStyle.statusBarColor != null) { - statusBarColorValue = "#" + systemChromeStyle.statusBarColor.toString(16); - } - - if (systemChromeStyle.systemStatusBarContrastEnforced != null) { - - } - - if (systemChromeStyle.systemNavigationBarIconBrightness != null) { - switch (systemChromeStyle.systemNavigationBarIconBrightness) { - case Brightness.DARK: - isNavigationBarLightIconValue = true; - break; - case Brightness.LIGHT: - isNavigationBarLightIconValue = false; - } - } - - if (systemChromeStyle.systemNavigationBarColor != null) { - navigationBarColorValue = "#" + systemChromeStyle.systemNavigationBarColor.toString(16); - } - - if (systemChromeStyle.systemNavigationBarContrastEnforced != null) { - - } - this.currentTheme = systemChromeStyle; - let systemBarProperties = new SystemBarProperties(); - systemBarProperties.statusBarColor = statusBarColorValue; - systemBarProperties.isStatusBarLightIcon = isStatusBarLightIconValue; - systemBarProperties.statusBarContentColor = statusBarContentColorValue; - systemBarProperties.navigationBarColor = navigationBarColorValue; - systemBarProperties.isNavigationBarLightIcon = isNavigationBarLightIconValue; - systemBarProperties.navigationBarContentColor = navigationBarContentColorValue; - Log.d(PlatformPluginCallback.TAG, "systemBarProperties: " + JSON.stringify(systemBarProperties)); - this.windowClass?.setWindowSystemBarProperties(systemBarProperties); - } - - setSystemChromeEnabledSystemUIOverlays(overlays: SystemUiOverlay[]): void { - let uiConfig: ('status' | 'navigation')[] = []; - if (overlays.length == 0) { - - } - for (let index = 0; index < overlays.length; ++index) { - let overlayToShow = overlays[index]; - switch (overlayToShow) { - case SystemUiOverlay.TOP_OVERLAYS: - uiConfig.push('status'); //hide navigation - break; - case SystemUiOverlay.BOTTOM_OVERLAYS: - uiConfig.push('navigation'); //hide bar - break; - } - } - this.showBarOrNavigation = uiConfig; - this.platform?.updateSystemUiOverlays(); - } -} - -class SystemBarProperties { - statusBarColor?: string; - - isStatusBarLightIcon?: boolean; - - statusBarContentColor?: string; - - navigationBarColor?: string; - - isNavigationBarLightIcon?: boolean; - - navigationBarContentColor?: string; -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BasicMessageChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BasicMessageChannel.ets deleted file mode 100644 index 796f8edb8936927b11819282e8721b41da55a103..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BasicMessageChannel.ets +++ /dev/null @@ -1,171 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import MessageChannelUtils from '../../util/MessageChannelUtils'; -import { BinaryMessageHandler } from './BinaryMessenger'; -import Log from '../../util/Log'; -import { BinaryReply } from './BinaryMessenger'; -import { TaskQueue } from './BinaryMessenger'; -import MessageCodec from './MessageCodec'; -import { BinaryMessenger } from './BinaryMessenger'; -import StringUtils from '../../util/StringUtils'; - -/** - * A named channel for communicating with the Flutter application using basic, asynchronous message - * passing. - * - *

Messages are encoded into binary before being sent, and binary messages received are decoded - * into Java objects. The {@link MessageCodec} used must be compatible with the one used by the - * Flutter application. This can be achieved by creating a BasicMessageChannel - * counterpart of this channel on the Dart side. The static Java type of messages sent and received - * is {@code Object}, but only values supported by the specified {@link MessageCodec} can be used. - * - *

The logical identity of the channel is given by its name. Identically named channels will - * interfere with each other's communication. - */ -export default class BasicMessageChannel { - public static TAG = "BasicMessageChannel#"; - public static CHANNEL_BUFFERS_CHANNEL = "dev.flutter/channel-buffers"; - private messenger: BinaryMessenger; - private name: string; - private codec: MessageCodec; - private taskQueue?: TaskQueue; - - constructor(messenger: BinaryMessenger, name: string, codec: MessageCodec, taskQueue?: TaskQueue) { - this.messenger = messenger - this.name = name - this.codec = codec - this.taskQueue = taskQueue - } - - /** - * Sends the specified message to the Flutter application, optionally expecting a reply. - * - *

Any uncaught exception thrown by the reply callback will be caught and logged. - * - * @param message the message, possibly null. - * @param callback a {@link Reply} callback, possibly null. - */ - send(message: T, callback?: (reply: T)=>void): void { - this.messenger.send(this.name, this.codec.encodeMessage(message), callback == null ? null : new IncomingReplyHandler(callback, this.codec)); - } - - /** - * Registers a message handler on this channel for receiving messages sent from the Flutter - * application. - * - *

Overrides any existing handler registration for (the name of) this channel. - * - *

If no handler has been registered, any incoming message on this channel will be handled - * silently by sending a null reply. - * - * @param handler a {@link MessageHandler}, or null to deregister. - */ - setMessageHandler(handler: MessageHandler): void { - // We call the 2 parameter variant specifically to avoid breaking changes in - // mock verify calls. - // See https://github.com/flutter/flutter/issues/92582. - if (this.taskQueue != null) { - this.messenger.setMessageHandler(this.name, new IncomingMessageHandler(handler, this.codec), this.taskQueue); - } else { - this.messenger.setMessageHandler(this.name, new IncomingMessageHandler(handler, this.codec)); - } - } - - /** - * Adjusts the number of messages that will get buffered when sending messages to channels that - * aren't fully set up yet. For example, the engine isn't running yet or the channel's message - * handler isn't set up on the Dart side yet. - */ - resizeChannelBuffer(newSize: number): void { - MessageChannelUtils.resizeChannelBuffer(this.messenger, this.name, newSize); - } -} - - -export interface Reply { - /** - * Handles the specified message reply. - * - * @param reply the reply, possibly null. - */ - reply: (reply: T) => void; -} - -export interface MessageHandler { - - /** - * Handles the specified message received from Flutter. - * - *

Handler implementations must reply to all incoming messages, by submitting a single reply - * message to the given {@link Reply}. Failure to do so will result in lingering Flutter reply - * handlers. The reply may be submitted asynchronously and invoked on any thread. - * - *

Any uncaught exception thrown by this method, or the preceding message decoding, will be - * caught by the channel implementation and logged, and a null reply message will be sent back - * to Flutter. - * - *

Any uncaught exception thrown during encoding a reply message submitted to the {@link - * Reply} is treated similarly: the exception is logged, and a null reply is sent to Flutter. - * - * @param message the message, possibly null. - * @param reply a {@link Reply} for sending a single message reply back to Flutter. - */ - onMessage(message: T, reply: Reply): void; -} - -class IncomingReplyHandler implements BinaryReply { - private callback: (reply: T)=>void; - private codec: MessageCodec - - constructor(callback:(reply: T)=>void, codec: MessageCodec) { - this.callback = callback - this.codec = codec - } - - reply(reply: ArrayBuffer) { - try { - this.callback(this.codec.decodeMessage(reply)); - } catch (e) { - Log.e(BasicMessageChannel.TAG, "Failed to handle message reply", e); - } - } -} - -class IncomingMessageHandler implements BinaryMessageHandler { - private handler: MessageHandler - private codec: MessageCodec - - constructor(handler: MessageHandler, codec: MessageCodec) { - this.handler = handler; - this.codec = codec - } - - onMessage(message: ArrayBuffer, callback: BinaryReply) { - try { - this.handler.onMessage( - this.codec.decodeMessage(message), - { - reply: (reply: T): void => { - callback.reply(this.codec.encodeMessage(reply)); - } - }); - } catch (e) { - Log.e(BasicMessageChannel.TAG, "Failed to handle message", e); - callback.reply(StringUtils.stringToArrayBuffer("")); - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BinaryCodec.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BinaryCodec.ets deleted file mode 100644 index 578436417dc4a23cfaf2c5adbb9c8340efa5795d..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BinaryCodec.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import MessageCodec from './MessageCodec'; - -/** - * A {@link MessageCodec} using unencoded binary messages, represented as {@link ByteBuffer}s. - * - *

This codec is guaranteed to be compatible with the corresponding BinaryCodec on the - * Dart side. These parts of the Flutter SDK are evolved synchronously. - * - *

On the Dart side, messages are represented using {@code ByteData}. - */ - -export default class BinaryCodec implements MessageCodec { - private returnsDirectByteBufferFromDecoding: boolean = false; - static readonly INSTANCE_DIRECT = new BinaryCodec(true); - - constructor(returnsDirectByteBufferFromDecoding: boolean) { - this.returnsDirectByteBufferFromDecoding = returnsDirectByteBufferFromDecoding; - } - - encodeMessage(message: ArrayBuffer): ArrayBuffer { - return message - } - - decodeMessage(message: ArrayBuffer): ArrayBuffer { - if (message == null) { - return message; - } else if (this.returnsDirectByteBufferFromDecoding) { - return message; - } else { - return message.slice(0, message.byteLength); - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BinaryMessenger.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BinaryMessenger.ets deleted file mode 100644 index e0b55276beb3893f0347d9893ecaab9d2754174c..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/BinaryMessenger.ets +++ /dev/null @@ -1,158 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/** - * An abstraction over the threading policy used to invoke message handlers. - * - *

These are generated by calling methods like {@link - * BinaryMessenger#makeBackgroundTaskQueue(TaskQueueOptions)} and can be passed into platform - * channels' constructors to control the threading policy for handling platform channels' - * messages. - */ -export interface TaskQueue {} - -/** Options that control how a TaskQueue should operate and be created. */ -export class TaskQueueOptions { - private isSerial = true; - - getIsSerial() { - return this.isSerial; - } - - setIsSerial(isSerial: boolean): TaskQueueOptions { - this.isSerial = isSerial; - return this; - } -} - -/** - * Binary message reply callback. Used to submit a reply to an incoming message from Flutter. Also - * used in the dual capacity to handle a reply received from Flutter after sending a message. - */ -export interface BinaryReply { - /** - * Handles the specified reply. - * - * @param reply the reply payload, a direct-allocated {@link ByteBuffer} or null. Senders of - * outgoing replies must place the reply bytes between position zero and current position. - * Reply receivers can read from the buffer directly. - */ - reply(reply: ArrayBuffer): void; -} - -/** Handler for incoming binary messages from Flutter. */ -export interface BinaryMessageHandler { - /** - * Handles the specified message. - * - *

Handler implementations must reply to all incoming messages, by submitting a single reply - * message to the given {@link BinaryReply}. Failure to do so will result in lingering Flutter - * reply handlers. The reply may be submitted asynchronously. - * - *

Any uncaught exception thrown by this method will be caught by the messenger - * implementation and logged, and a null reply message will be sent back to Flutter. - * - * @param message the message {@link ByteBuffer} payload, possibly null. - * @param reply A {@link BinaryReply} used for submitting a reply back to Flutter. - */ - onMessage(message: ArrayBuffer, reply: BinaryReply): void; -} - -/** - * Facility for communicating with Flutter using asynchronous message passing with binary messages. - * The Flutter Dart code should use BinaryMessages to - * participate. - * - *

{@code BinaryMessenger} is expected to be utilized from a single thread throughout the - * duration of its existence. If created on the main thread, then all invocations should take place - * on the main thread. If created on a background thread, then all invocations should take place on - * that background thread. - * - * @see BasicMessageChannel , which supports message passing with Strings and semi-structured - * messages. - * @see MethodChannel , which supports communication using asynchronous method invocation. - * @see EventChannel , which supports communication using event streams. - */ -export interface BinaryMessenger { - makeBackgroundTaskQueue(options?: TaskQueueOptions): TaskQueue; - - /** - * Sends a binary message to the Flutter application. - * - * @param channel the name {@link String} of the logical channel used for the message. - * @param message the message payload, a direct-allocated {@link ByteBuffer} with the message - * bytes between position zero and current position, or null. - */ - send(channel: String, message: ArrayBuffer): void; - - /** - * Sends a binary message to the Flutter application, optionally expecting a reply. - * - *

Any uncaught exception thrown by the reply callback will be caught and logged. - * - * @param channel the name {@link String} of the logical channel used for the message. - * @param message the message payload, a direct-allocated {@link ByteBuffer} with the message - * bytes between position zero and current position, or null. - * @param callback a {@link BinaryReply} callback invoked when the Flutter application responds to - * the message, possibly null. - */ - send(channel: String, message: ArrayBuffer, callback?: BinaryReply | null): void; - - /** - * Registers a handler to be invoked when the Flutter application sends a message to its host - * platform. - * - *

Registration overwrites any previous registration for the same channel name. Use a null - * handler to deregister. - * - *

If no handler has been registered for a particular channel, any incoming message on that - * channel will be handled silently by sending a null reply. - * - * @param channel the name {@link String} of the channel. - * @param handler a {@link BinaryMessageHandler} to be invoked on incoming messages, or null. - * @param taskQueue a {@link BinaryMessenger.TaskQueue} that specifies what thread will execute - * the handler. Specifying null means execute on the platform thread. - */ - //setMessageHandler(channel: String, handler: BinaryMessageHandler) - setMessageHandler(channel: String, handler: BinaryMessageHandler, taskQueue?: TaskQueue): void; - // { - // if (taskQueue != null) { - // throw new Error("setMessageHandler called with nonnull taskQueue is not supported.") - // } - // } - - /** - * Enables the ability to queue messages received from Dart. - * - *

This is useful when there are pending channel handler registrations. For example, Dart may - * be initialized concurrently, and prior to the registration of the channel handlers. This - * implies that Dart may start sending messages while plugins are being registered. - */ - enableBufferingIncomingMessages(): void; - // { - // throw new Error("enableBufferingIncomingMessages not implemented."); - // } - - /** - * Disables the ability to queue messages received from Dart. - * - *

This can be used after all pending channel handlers have been registered. - */ - disableBufferingIncomingMessages(): void; - // { - // throw new Error("disableBufferingIncomingMessages not implemented."); - // } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/EventChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/EventChannel.ets deleted file mode 100644 index 166659a32e819580f2d433886f763dc453d8a597..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/EventChannel.ets +++ /dev/null @@ -1,263 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - - -/** - * A named channel for communicating with the Flutter application using asynchronous event streams. - * - *

Incoming requests for event stream setup are decoded from binary on receipt, and Java - * responses and events are encoded into binary before being transmitted back to Flutter. The {@link - * MethodCodec} used must be compatible with the one used by the Flutter application. This can be - * achieved by creating an EventChannel - * counterpart of this channel on the Dart side. The Java type of stream configuration arguments, - * events, and error details is {@code Object}, but only values supported by the specified {@link - * MethodCodec} can be used. - * - *

The logical identity of the channel is given by its name. Identically named channels will - * interfere with each other's communication. - */ -import Log from '../../util/Log'; -import { BinaryMessageHandler, BinaryMessenger, BinaryReply, TaskQueue } from './BinaryMessenger'; -import MethodCodec from './MethodCodec'; -import StandardMethodCodec from './StandardMethodCodec'; - -const TAG = "EventChannel#"; - -export default class EventChannel { - private messenger: BinaryMessenger; - private name: string; - private codec: MethodCodec; - private taskQueue: TaskQueue; - - constructor(messenger: BinaryMessenger, name: string, codec?: MethodCodec, taskQueue?: TaskQueue) { - this.messenger = messenger - this.name = name - this.codec = codec ? codec : StandardMethodCodec.INSTANCE - this.taskQueue = taskQueue - } - - - /** - * Registers a stream handler on this channel. - * - *

Overrides any existing handler registration for (the name of) this channel. - * - *

If no handler has been registered, any incoming stream setup requests will be handled - * silently by providing an empty stream. - * - * @param handler a {@link StreamHandler}, or null to deregister. - */ - setStreamHandler(handler: StreamHandler): void { - // We call the 2 parameter variant specifically to avoid breaking changes in - // mock verify calls. - // See https://github.com/flutter/flutter/issues/92582. - if (this.taskQueue != null) { - this.messenger.setMessageHandler( - this.name, handler == null ? null : new IncomingStreamRequestHandler(handler, this.name, this.codec, this.messenger), this.taskQueue); - } else { - this.messenger.setMessageHandler( - this.name, handler == null ? null : new IncomingStreamRequestHandler(handler, this.name, this.codec, this.messenger)); - } - } -} - -/** - * Handler of stream setup and teardown requests. - * - *

Implementations must be prepared to accept sequences of alternating calls to {@link - * #onListen(Object, EventChannel.EventSink)} and {@link #onCancel(Object)}. Implementations - * should ideally consume no resources when the last such call is not {@code onListen}. In typical - * situations, this means that the implementation should register itself with platform-specific - * event sources {@code onListen} and deregister again {@code onCancel}. - */ -export interface StreamHandler { - /** - * Handles a request to set up an event stream. - * - *

Any uncaught exception thrown by this method will be caught by the channel implementation - * and logged. An error result message will be sent back to Flutter. - * - * @param arguments stream configuration arguments, possibly null. - * @param events an {@link EventSink} for emitting events to the Flutter receiver. - */ - onListen(args: ESObject, events: EventSink): void; - - /** - * Handles a request to tear down the most recently created event stream. - * - *

Any uncaught exception thrown by this method will be caught by the channel implementation - * and logged. An error result message will be sent back to Flutter. - * - *

The channel implementation may call this method with null arguments to separate a pair of - * two consecutive set up requests. Such request pairs may occur during Flutter hot restart. Any - * uncaught exception thrown in this situation will be logged without notifying Flutter. - * - * @param arguments stream configuration arguments, possibly null. - */ - onCancel(args: ESObject): void; -} - -/** - * Event callback. Supports dual use: Producers of events to be sent to Flutter act as clients of - * this interface for sending events. Consumers of events sent from Flutter implement this - * interface for handling received events (the latter facility has not been implemented yet). - */ -export interface EventSink { - /** - * Consumes a successful event. - * - * @param event the event, possibly null. - */ - success(event: ESObject): void; - - /** - * Consumes an error event. - * - * @param errorCode an error code String. - * @param errorMessage a human-readable error message String, possibly null. - * @param errorDetails error details, possibly null - */ - error(errorCode: string, errorMessage: string, errorDetails: ESObject): void; - - /** - * Consumes end of stream. Ensuing calls to {@link #success(Object)} or {@link #error(String, - * String, Object)}, if any, are ignored. - */ - endOfStream(): void; -} - -class IncomingStreamRequestHandler implements BinaryMessageHandler { - private handler: StreamHandler; - private activeSink = new AtomicReference(null); - private codec: MethodCodec; - private name: string; - private messenger: BinaryMessenger; - - constructor(handler: StreamHandler, name: string, codec: MethodCodec, messenger: BinaryMessenger) { - this.handler = handler; - this.codec = codec; - this.name = name; - this.messenger = messenger; - } - - onMessage(message: ArrayBuffer, reply: BinaryReply): void { - const call = this.codec.decodeMethodCall(message); - if (call.method == "listen") { - this.onListen(call.args, reply); - } else if (call.method == "cancel") { - this.onCancel(call.args, reply); - } else { - reply.reply(null); - } - } - - onListen(args: ESObject, callback: BinaryReply): void { - const eventSink = new EventSinkImplementation(this.activeSink, this.name, this.codec, this.messenger); - const oldSink = this.activeSink.getAndSet(eventSink); - if (oldSink != null) { - // Repeated calls to onListen may happen during hot restart. - // We separate them with a call to onCancel. - try { - this.handler.onCancel(null); - } catch (e) { - Log.e(TAG + this.name, "Failed to close existing event stream", e); - } - } - try { - this.handler.onListen(args, eventSink); - callback.reply(this.codec.encodeSuccessEnvelope(null)); - } catch (e) { - this.activeSink.set(null); - Log.e(TAG + this.name, "Failed to open event stream", e); - callback.reply(this.codec.encodeErrorEnvelope("error", e.getMessage(), null)); - } - } - - onCancel(args: ESObject, callback: BinaryReply): void { - const oldSink = this.activeSink.getAndSet(null); - if (oldSink != null) { - try { - this.handler.onCancel(args); - callback.reply(this.codec.encodeSuccessEnvelope(null)); - } catch (e) { - Log.e(TAG + this.name, "Failed to close event stream", e); - callback.reply(this.codec.encodeErrorEnvelope("error", e.getMessage(), null)); - } - } else { - callback.reply(this.codec.encodeErrorEnvelope("error", "No active stream to cancel", null)); - } - } -} - -class EventSinkImplementation implements EventSink { - private hasEnded = false; - private activeSink: AtomicReference; - private messenger: BinaryMessenger; - private codec: MethodCodec; - private name: string; - - constructor(activeSink: AtomicReference, name: string, codec: MethodCodec, messenger: BinaryMessenger) { - this.activeSink = activeSink; - this.codec = codec; - this.name = name; - this.messenger = messenger; - } - - success(event: ESObject): void { - if (this.hasEnded || this.activeSink.get() != this) { - return; - } - this.messenger.send(this.name, this.codec.encodeSuccessEnvelope(event)); - } - - error(errorCode: string, errorMessage: string, errorDetails: ESObject) { - if (this.hasEnded || this.activeSink.get() != this) { - return; - } - this.messenger.send( - this.name, this.codec.encodeErrorEnvelope(errorCode, errorMessage, errorDetails)); - } - - endOfStream(): void { - if (this.hasEnded || this.activeSink.get() != this) { - return; - } - this.hasEnded = true; - this.messenger.send(this.name, null); - } -} - -class AtomicReference { - private value: T; - - constructor(value: T) { - this.value = value - } - - get(): T { - return this.value; - } - - set(newValue: T): void { - this.value = newValue; - } - - getAndSet(newValue: T) { - const oldValue = this.value; - this.value = newValue; - return oldValue; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/FlutterException.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/FlutterException.ets deleted file mode 100644 index 204dd8e3eabf85edcdecf84a78e86517f424f4cb..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/FlutterException.ets +++ /dev/null @@ -1,28 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export default class FlutterException implements Error { - stack?: string; - message: string; - name: string = ""; - code: string; - details: ESObject - - constructor(code: string, message: string, details: ESObject) { - this.message = message; - this.code = code; - this.details =details; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMessageCodec.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMessageCodec.ets deleted file mode 100644 index 6224740ed6d838efdeaea84a3f81d829a5e14ac1..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMessageCodec.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -import StringUtils from '../../util/StringUtils'; - -import MessageCodec from './MessageCodec'; -import MethodCodec from './MethodCodec'; -import StringCodec from './StringCodec'; - -/** - * A {@link MethodCodec} using UTF-8 encoded JSON method calls and result envelopes. - * - *

This codec is guaranteed to be compatible with the corresponding JSONMethodCodec on - * the Dart side. These parts of the Flutter SDK are evolved synchronously. - * - *

On the Dart side, JSON messages are handled by the JSON facilities of the dart:convert package. - */ -export default class JSONMessageCodec implements MessageCodec { - static INSTANCE = new JSONMessageCodec(); - - encodeMessage(message: ESObject): ArrayBuffer { - if (message == null) { - return StringUtils.stringToArrayBuffer(""); - } - return StringCodec.INSTANCE.encodeMessage(JSON.stringify(message)); - } - - decodeMessage(message: ArrayBuffer): ESObject { - if (message == null) { - return null; - } - try { - const jsonStr = StringCodec.INSTANCE.decodeMessage(message); - return JSON.parse(jsonStr); - } catch (e) { - throw new Error("Invalid JSON"); - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets deleted file mode 100644 index 7b5bf1d0891fe841d7380e0e6166ca5b82793e7b..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/JSONMethodCodec.ets +++ /dev/null @@ -1,97 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -import Log from '../../util/Log'; - -import ToolUtils from '../../util/ToolUtils'; -import FlutterException from './FlutterException'; -import JSONMessageCodec from './JSONMessageCodec'; -import MethodCall from './MethodCall'; -import MethodCodec from './MethodCodec'; - -/** - * A {@link MethodCodec} using UTF-8 encoded JSON method calls and result envelopes. - * - *

This codec is guaranteed to be compatible with the corresponding JSONMethodCodec on - * the Dart side. These parts of the Flutter SDK are evolved synchronously. - * - *

Values supported as methods arguments and result payloads are those supported by {@link - * JSONMessageCodec}. - */ -export default class JSONMethodCodec implements MethodCodec { - static INSTANCE = new JSONMethodCodec(); - - encodeMethodCall(methodCall: MethodCall): ArrayBuffer { - try { - const map: Record = { - "method": methodCall.method, "args": methodCall.args - } - - return JSONMessageCodec.INSTANCE.encodeMessage(map); - } catch (e) { - throw new Error("Invalid JSON"); - } - } - - decodeMethodCall(message: ArrayBuffer): MethodCall { - try { - const json: ESObject = JSONMessageCodec.INSTANCE.decodeMessage(message); - if (ToolUtils.isObj(json)) { - const method: string = json["method"]; - const args: ESObject = json["args"]; - if (typeof method == 'string') { - return new MethodCall(method, args); - } - } - throw new Error("Invalid method call: " + json); - } catch (e) { - throw new Error("Invalid JSON:" + JSON.stringify(e)); - } - } - - encodeSuccessEnvelope(result: ESObject): ArrayBuffer { - return JSONMessageCodec.INSTANCE.encodeMessage([result]); - } - - encodeErrorEnvelope(errorCode: ESObject, errorMessage: string, errorDetails: ESObject) { - return JSONMessageCodec.INSTANCE.encodeMessage([errorCode, errorMessage, errorDetails]); - } - - encodeErrorEnvelopeWithStacktrace(errorCode: string, errorMessage: string, errorDetails: ESObject, errorStacktrace: string): ArrayBuffer { - return JSONMessageCodec.INSTANCE.encodeMessage([errorCode, errorMessage, errorDetails, errorStacktrace]) - } - - decodeEnvelope(envelope: ArrayBuffer): ESObject { - try { - const json: ESObject = JSONMessageCodec.INSTANCE.decodeMessage(envelope); - if (json instanceof Array) { - if (json.length == 1) { - return json[0]; - } - if (json.length == 3) { - const code: string = json[0]; - const message: string = json[1]; - const details: ESObject = json[2]; - if (typeof code == 'string' && (message == null || typeof message == 'string')) { - throw new FlutterException(code, message, details); - } - } - } - throw new Error("Invalid envelope: " + json); - } catch (e) { - throw new Error("Invalid JSON"); - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MessageCodec.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MessageCodec.ets deleted file mode 100644 index 663d57af19c70523e44a5f48cc61e22ab0dc5b33..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MessageCodec.ets +++ /dev/null @@ -1,30 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/** - * A message encoding/decoding mechanism. - */ -export default interface MessageCodec { - /** - * Encodes the specified message into binary. - */ - encodeMessage(message: T) : ArrayBuffer; - - /** - * Decodes the specified message from binary. - * - */ - decodeMessage(message: ArrayBuffer): T; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets deleted file mode 100644 index 0042c25c3b21f484cda8158e5485bb57e73dfd82..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCall.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import ToolUtils from '../../util/ToolUtils'; -/** Command object representing a method call on a {@link MethodChannel}. */ -export default class MethodCall { - /** The name of the called method. */ - method: string; - - /** - * Arguments for the call. - * - *

Consider using {@link #arguments()} for cases where a particular run-time type is expected. - * Consider using {@link #argument(String)} when that run-time type is {@link Map} or {@link - * JSONObject}. - */ - args: ESObject; - - constructor(method: string, args: ESObject) { - this.method = method - this.args = args - } - - argument(key: string): ESObject { - if (this.args == null) { - return null; - } else if (this.args instanceof Map) { - return (this.args as Map).get(key); - } else if (ToolUtils.isObj(this.args)) { - return this.args[key] - } else { - throw new Error("ClassCastException"); - } - } - - hasArgument(key: string): boolean { - if (arguments == null) { - return false; - } else if (arguments instanceof Map) { - return (this.args as Map).has(key); - } else if (ToolUtils.isObj(this.args)) { - return this.args.hasOwnProperty(key); - } else { - throw new Error("ClassCastException"); - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodChannel.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodChannel.ets deleted file mode 100644 index 31da9ff4890d7ca576e03a26a1c0bea2a49bd0c7..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodChannel.ets +++ /dev/null @@ -1,217 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import Log from '../../util/Log'; -import MessageChannelUtils from '../../util/MessageChannelUtils'; -import StringUtils from '../../util/StringUtils'; -import { BinaryMessageHandler, BinaryMessenger, BinaryReply, TaskQueue } from './BinaryMessenger'; -import MethodCall from './MethodCall'; -import MethodCodec from './MethodCodec'; -import StandardMethodCodec from './StandardMethodCodec'; -/** - * A named channel for communicating with the Flutter application using asynchronous method calls. - * - *

Incoming method calls are decoded from binary on receipt, and Java results are encoded into - * binary before being transmitted back to Flutter. The {@link MethodCodec} used must be compatible - * with the one used by the Flutter application. This can be achieved by creating a MethodChannel - * counterpart of this channel on the Dart side. The Java type of method call arguments and results - * is {@code Object}, but only values supported by the specified {@link MethodCodec} can be used. - * - *

The logical identity of the channel is given by its name. Identically named channels will - * interfere with each other's communication. - */ - -export default class MethodChannel { - static TAG = "MethodChannel#"; - private messenger: BinaryMessenger; - private name: string; - private codec: MethodCodec; - private taskQueue?: TaskQueue; - - constructor(messenger: BinaryMessenger, name: string, codec: MethodCodec = StandardMethodCodec.INSTANCE, taskQueue?: TaskQueue) { - this.messenger = messenger - this.name = name - this.codec = codec - this.taskQueue = taskQueue - } - - /** - * Invokes a method on this channel, optionally expecting a result. - * - *

Any uncaught exception thrown by the result callback will be caught and logged. - * - * @param method the name String of the method. - * @param arguments the arguments for the invocation, possibly null. - * @param callback a {@link Result} callback for the invocation result, or null. - */ - invokeMethod(method: string, args: ESObject, callback?: MethodResult): void { - this.messenger.send(this.name, this.codec.encodeMethodCall(new MethodCall(method, args)), callback == null ? null : new IncomingResultHandler(callback, this.codec)); - } - - /** - * Registers a method call handler on this channel. - * - *

Overrides any existing handler registration for (the name of) this channel. - * - *

If no handler has been registered, any incoming method call on this channel will be handled - * silently by sending a null reply. This results in a MissingPluginException - * on the Dart side, unless an OptionalMethodChannel - * is used. - * - * @param handler a {@link MethodCallHandler}, or null to deregister. - */ - setMethodCallHandler(handler: MethodCallHandler): void { - // We call the 2 parameter variant specifically to avoid breaking changes in - // mock verify calls. - // See https://github.com/flutter/flutter/issues/92582. - if (this.taskQueue != null) { - this.messenger.setMessageHandler( - this.name, new IncomingMethodCallHandler(handler, this.codec), this.taskQueue); - } else { - this.messenger.setMessageHandler( - this.name, new IncomingMethodCallHandler(handler, this.codec)); - } - } - - /** - * Adjusts the number of messages that will get buffered when sending messages to channels that - * aren't fully set up yet. For example, the engine isn't running yet or the channel's message - * handler isn't set up on the Dart side yet. - */ - resizeChannelBuffer(newSize: number): void { - MessageChannelUtils.resizeChannelBuffer(this.messenger, this.name, newSize); - } -} - -/** A handler of incoming method calls. */ -export interface MethodCallHandler { - /** - * Handles the specified method call received from Flutter. - * - *

Handler implementations must submit a result for all incoming calls, by making a single - * call on the given {@link Result} callback. Failure to do so will result in lingering Flutter - * result handlers. The result may be submitted asynchronously and on any thread. Calls to - * unknown or unimplemented methods should be handled using {@link Result#notImplemented()}. - * - *

Any uncaught exception thrown by this method will be caught by the channel implementation - * and logged, and an error result will be sent back to Flutter. - * - *

The handler is called on the platform thread (Android main thread) by default, or - * otherwise on the thread specified by the {@link BinaryMessenger.TaskQueue} provided to the - * associated {@link MethodChannel} when it was created. See also Threading in - * the Flutter Engine. - * - * @param call A {@link MethodCall}. - * @param result A {@link Result} used for submitting the result of the call. - */ - onMethodCall(call: MethodCall, result: MethodResult): void; -} - -/** - * Method call result callback. Supports dual use: Implementations of methods to be invoked by - * Flutter act as clients of this interface for sending results back to Flutter. Invokers of - * Flutter methods provide implementations of this interface for handling results received from - * Flutter. - * - *

All methods of this class can be invoked on any thread. - */ -export interface MethodResult { - /** - * Handles a successful result. - * - * @param result The result, possibly null. The result must be an Object type supported by the - * codec. For instance, if you are using {@link StandardMessageCodec} (default), please see - * its documentation on what types are supported. - */ - success: (result: ESObject) => void; - - /** - * Handles an error result. - * - * @param errorCode An error code String. - * @param errorMessage A human-readable error message String, possibly null. - * @param errorDetails Error details, possibly null. The details must be an Object type - * supported by the codec. For instance, if you are using {@link StandardMessageCodec} - * (default), please see its documentation on what types are supported. - */ - error: (errorCode: string, errorMessage: string, errorDetails: ESObject) => void; - - /** Handles a call to an unimplemented method. */ - notImplemented: () => void; -} - -class IncomingResultHandler implements BinaryReply { - private callback: MethodResult; - private codec: MethodCodec; - - constructor(callback: MethodResult, codec: MethodCodec) { - this.callback = callback; - this.codec = codec - } - - reply(reply: ArrayBuffer): void { - try { - if (reply == null) { - this.callback.notImplemented(); - } else { - try { - this.callback.success(this.codec.decodeEnvelope(reply)); - } catch (e) { - this.callback.error(e.code, e.getMessage(), e.details); - } - } - } catch (e) { - Log.e(MethodChannel.TAG, "Failed to handle method call result", e); - } - } -} - -class IncomingMethodCallHandler implements BinaryMessageHandler { - private handler: MethodCallHandler; - private codec: MethodCodec; - - constructor(handler: MethodCallHandler, codec: MethodCodec) { - this.handler = handler; - this.codec = codec - } - - onMessage(message: ArrayBuffer, reply: BinaryReply): void { - const call = this.codec.decodeMethodCall(message); - try { - this.handler.onMethodCall( - call, { - success: (result: ESObject): void => { - reply.reply(this.codec.encodeSuccessEnvelope(result)); - }, - - error: (errorCode: string, errorMessage: string, errorDetails: ESObject): void => { - reply.reply(this.codec.encodeErrorEnvelope(errorCode, errorMessage, errorDetails)); - }, - - notImplemented: (): void => { - Log.w(MethodChannel.TAG,"method not implemented"); - reply.reply(StringUtils.stringToArrayBuffer("")); - } - }); - } catch (e) { - Log.e(MethodChannel.TAG, "Failed to handle method call", e); - reply.reply(this.codec.encodeErrorEnvelopeWithStacktrace("error", e.getMessage(), null, e)); - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCodec.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCodec.ets deleted file mode 100644 index 86ed92aca6d512fa8247d963619acf67f29b7fe4..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/MethodCodec.ets +++ /dev/null @@ -1,87 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import MethodCall from './MethodCall'; -/** - * A codec for method calls and enveloped results. - * - *

Method calls are encoded as binary messages with enough structure that the codec can extract a - * method name String and an arguments Object. These data items are used to populate a {@link - * MethodCall}. - * - *

All operations throw {@link IllegalArgumentException}, if conversion fails. - */ -export default interface MethodCodec { - /** - * Encodes a message call into binary. - * - * @param methodCall a {@link MethodCall}. - * @return a {@link ByteBuffer} containing the encoding between position 0 and the current - * position. - */ - encodeMethodCall(methodCall: MethodCall): ArrayBuffer; - - /** - * Decodes a message call from binary. - * - * @param methodCall the binary encoding of the method call as a {@link ByteBuffer}. - * @return a {@link MethodCall} representation of the bytes between the given buffer's current - * position and its limit. - */ - decodeMethodCall(methodCall: ArrayBuffer): MethodCall; - - /** - * Encodes a successful result into a binary envelope message. - * - * @param result The result value, possibly null. - * @return a {@link ByteBuffer} containing the encoding between position 0 and the current - * position. - */ - encodeSuccessEnvelope(result: ESObject): ArrayBuffer; - - /** - * Encodes an error result into a binary envelope message. - * - * @param errorCode An error code String. - * @param errorMessage An error message String, possibly null. - * @param errorDetails Error details, possibly null. Consider supporting {@link Throwable} in your - * codec. This is the most common value passed to this field. - * @return a {@link ByteBuffer} containing the encoding between position 0 and the current - * position. - */ - encodeErrorEnvelope(errorCode: string, errorMessage: string, errorDetails: ESObject): ArrayBuffer; - - /** - * Encodes an error result into a binary envelope message with the native stacktrace. - * - * @param errorCode An error code String. - * @param errorMessage An error message String, possibly null. - * @param errorDetails Error details, possibly null. Consider supporting {@link Throwable} in your - * codec. This is the most common value passed to this field. - * @param errorStacktrace Platform stacktrace for the error. possibly null. - * @return a {@link ByteBuffer} containing the encoding between position 0 and the current - * position. - */ - encodeErrorEnvelopeWithStacktrace(errorCode: string, errorMessage: string, errorDetails: ESObject, errorStacktrace: string): ArrayBuffer - - /** - * Decodes a result envelope from binary. - * - * @param envelope the binary encoding of a result envelope as a {@link ByteBuffer}. - * @return the enveloped result Object. - * @throws FlutterException if the envelope was an error envelope. - */ - decodeEnvelope(envelope: ArrayBuffer): ESObject -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/PluginRegistry.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/PluginRegistry.ets deleted file mode 100644 index cb92c8eb1acc0406e2f14229e8d29d0ef19b3030..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/PluginRegistry.ets +++ /dev/null @@ -1,14 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets deleted file mode 100644 index d9b52ff3efb983a94766e8b8fbee154f9834071a..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMessageCodec.ets +++ /dev/null @@ -1,331 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { ByteBuffer } from '../../util/ByteBuffer'; -import StringUtils from '../../util/StringUtils'; -import MessageCodec from './MessageCodec'; - -/** - * MessageCodec using the Flutter standard binary encoding. - * - *

This codec is guaranteed to be compatible with the corresponding StandardMessageCodec - * on the Dart side. These parts of the Flutter SDK are evolved synchronously. - * - *

Supported messages are acyclic values of these forms: - * - *

    - *
  • null - *
  • Booleans - *
  • number - *
  • BigIntegers (see below) - *
  • Int8Array, Int32Array, Float32Array, Float64Array - *
  • Strings - *
  • Array[] - *
  • Lists of supported values - *
  • Maps with supported keys and values - *
- * - *

On the Dart side, these values are represented as follows: - * - *

    - *
  • null: null - *
  • Boolean: bool - *
  • Byte, Short, Integer, Long: int - *
  • Float, Double: double - *
  • String: String - *
  • byte[]: Uint8List - *
  • int[]: Int32List - *
  • long[]: Int64List - *
  • float[]: Float32List - *
  • double[]: Float64List - *
  • List: List - *
  • Map: Map - *
- * - *

BigIntegers are represented in Dart as strings with the hexadecimal representation of the - * integer's value. - * - *

To extend the codec, overwrite the writeValue and readValueOfType methods. - */ -export default class StandardMessageCodec implements MessageCodec { - private static TAG = "StandardMessageCodec#"; - static INSTANCE = new StandardMessageCodec(); - - encodeMessage(message: ESObject): ArrayBuffer { - const stream = ByteBuffer.from(new ArrayBuffer(1024)) - this.writeValue(stream, message); - return stream.buffer - } - - decodeMessage(message: ArrayBuffer): ESObject { - if (message == null) { - return null - } - const buffer = ByteBuffer.from(message) - return this.readValue(buffer) - } - - private static NULL = 0; - private static TRUE = 1; - private static FALSE = 2; - private static INT32 = 3; - private static INT64 = 4; - private static BIGINT = 5; - private static FLOAT64 = 6; - private static STRING = 7; - private static UINT8_ARRAY = 8; - private static INT32_ARRAY = 9; - private static INT64_ARRAY = 10; - private static FLOAT64_ARRAY = 11; - private static LIST = 12; - private static MAP = 13; - private static FLOAT32_ARRAY = 14; - - - writeValue(stream: ByteBuffer, value: ESObject): ESObject { - if (value == null || value == undefined) { - stream.writeInt8(StandardMessageCodec.NULL) - } else if (typeof value === "boolean") { - stream.writeInt8(value ? StandardMessageCodec.TRUE : StandardMessageCodec.FALSE) - } else if (typeof value === "number") { - if (Number.isInteger(value)) { //整型 - if (-0x7fffffff - 1 <= value && value <= 0x7fffffff) { //int32 - stream.writeInt8(StandardMessageCodec.INT32) - stream.writeInt32(value, true) - } else if(Number.MIN_SAFE_INTEGER <= value && value <= Number.MAX_SAFE_INTEGER) { //int64 number整型取值范围 - stream.writeInt8(StandardMessageCodec.INT64) - stream.writeBigInt64(BigInt(value), true) - } else { //被判为整型的double型 - stream.writeInt8(StandardMessageCodec.FLOAT64) - this.writeAlignment(stream, 8); - stream.writeFloat64(value, true) - } - } else { //浮点型 - stream.writeInt8(StandardMessageCodec.FLOAT64) - this.writeAlignment(stream, 8); - stream.writeFloat64(value, true) - } - }else if (typeof value === "bigint") { - stream.writeInt8(StandardMessageCodec.INT64) - stream.writeBigInt64(value, true) - } else if (typeof value === "string") { - stream.writeInt8(StandardMessageCodec.STRING) - let stringBuff = StringUtils.stringToArrayBuffer(value) - this.writeBytes(stream, new Uint8Array(stringBuff)) - } else if (value instanceof Uint8Array) { - stream.writeInt8(StandardMessageCodec.UINT8_ARRAY) - this.writeBytes(stream, value) - } else if (value instanceof Int32Array) { - stream.writeInt8(StandardMessageCodec.INT32_ARRAY) - this.writeSize(stream, value.length); - this.writeAlignment(stream, 4); - value.forEach(item => stream.writeInt32(item, true)) - } else if(value instanceof BigInt64Array) { - stream.writeInt8(StandardMessageCodec.INT64_ARRAY) - this.writeSize(stream, value.length); - this.writeAlignment(stream, 8); - value.forEach(item => stream.writeBigInt64(item, true)) - } else if (value instanceof Float32Array) { - stream.writeInt8(StandardMessageCodec.FLOAT32_ARRAY) - this.writeSize(stream, value.length); - this.writeAlignment(stream, 4); - value.forEach(item => stream.writeFloat32(item, true)) - } else if (value instanceof Float64Array) { - stream.writeInt8(StandardMessageCodec.FLOAT64_ARRAY) - this.writeSize(stream, value.length); - this.writeAlignment(stream, 8); - value.forEach(item => stream.writeFloat64(item, true)) - } else if (value instanceof Array || value instanceof Int8Array || value instanceof Int16Array - || value instanceof Uint16Array || value instanceof Uint32Array) { - stream.writeInt8(StandardMessageCodec.LIST) - this.writeSize(stream, value.length); - value.forEach((item: ESObject): void => this.writeValue(stream, item)) - } else if (value instanceof Map) { - stream.writeInt8(StandardMessageCodec.MAP) - this.writeSize(stream, value.size); - value.forEach((value: ESObject, key: ESObject) => { - this.writeValue(stream, key); - this.writeValue(stream, value); - }) - } else if (typeof value == 'object') { - let map: Map = new Map(); - Object.keys(value).forEach(key => { - map.set(key, value[key]); - }); - this.writeValue(stream, map); - } else { - throw new Error("Unsupported value: " + value); - stream.writeInt8(StandardMessageCodec.NULL); - } - return stream - } - - writeAlignment(stream: ByteBuffer, alignment: number) { - let mod: number = stream.byteOffset % alignment; - if (mod != 0) { - for (let i = 0; i < alignment - mod; i++) { - stream.writeInt8(0); - } - } - } - - writeSize(stream: ByteBuffer, value: number) { - if (value < 254) { - stream.writeInt8(value); - } else if (value <= 0xffff) { - stream.writeInt8(254); - stream.writeInt16(value, true); - } else { - stream.writeInt8(255); - stream.writeInt32(value, true); - } - } - - writeBytes(stream: ByteBuffer, bytes: Uint8Array) { - this.writeSize(stream, bytes.length) - stream.writeUint8Array(bytes); - } - - readSize(buffer: ByteBuffer) { - let value = buffer.readInt8() & 0xff; - if (value < 254) { - return value; - } else if (value == 254) { - return buffer.readInt16(true); - } else { - return buffer.readInt32(true); - } - } - - readAlignment(buffer: ByteBuffer, alignment: number) { - let mod = buffer.byteOffset % alignment; - if (mod != 0) { - buffer.skip(alignment - mod); - } - } - - readValue(buffer: ByteBuffer): ESObject { - let type = buffer.readInt8() - return this.readValueOfType(type, buffer); - } - - readBytes(buffer: ByteBuffer): Uint8Array { - let length = this.readSize(buffer); - let bytes = new Uint8Array(length) - for (let i = 0; i < length; i++) { - bytes[i] = buffer.readUint8() - } - return bytes; - } - - readValueOfType(type: number, buffer: ByteBuffer): ESObject { - let result: ESObject; - switch (type) { - case StandardMessageCodec.NULL: - result = null; - break; - case StandardMessageCodec.TRUE: - result = true; - break; - case StandardMessageCodec.FALSE: - result = false; - break; - case StandardMessageCodec.INT32: - result = buffer.readInt32(true); - break; - case StandardMessageCodec.INT64: - result = buffer.readInt64(true); - break; - case StandardMessageCodec.BIGINT: - result = buffer.readBigInt64(true) - break; - case StandardMessageCodec.FLOAT64: - this.readAlignment(buffer, 8); - result = buffer.readFloat64(true) - break; - case StandardMessageCodec.STRING: { - let bytes = this.readBytes(buffer); - result = StringUtils.arrayBufferToString(bytes.buffer); - break; - } - case StandardMessageCodec.UINT8_ARRAY: { - result = this.readBytes(buffer); - break; - } - case StandardMessageCodec.INT32_ARRAY: { - let length = this.readSize(buffer); - let array = new Int32Array(length) - this.readAlignment(buffer, 4); - for (let i = 0; i < length; i++) { - array[i] = buffer.readInt32(true) - } - result = array; - break; - } - case StandardMessageCodec.INT64_ARRAY: { - let length = this.readSize(buffer); - let array = new BigInt64Array(length) - this.readAlignment(buffer, 8); - for (let i = 0; i < length; i++) { - array[i] = buffer.readBigInt64(true) - } - result = array; - break; - } - case StandardMessageCodec.FLOAT64_ARRAY: { - let length = this.readSize(buffer); - let array = new Float64Array(length) - this.readAlignment(buffer, 8); - for (let i = 0; i < length; i++) { - array[i] = buffer.readFloat64(true) - } - result = array; - break; - } - case StandardMessageCodec.LIST: { - let length = this.readSize(buffer); - let array: Array = new Array(length) - for (let i = 0; i < length; i++) { - array[i] = this.readValue(buffer) - } - result = array; - break; - } - case StandardMessageCodec.MAP: { - let size = this.readSize(buffer); - let map: Map = new Map() - for (let i = 0; i < size; i++) { - map.set(this.readValue(buffer), this.readValue(buffer)); - } - result = map; - break; - } - case StandardMessageCodec.FLOAT32_ARRAY: { - let length = this.readSize(buffer); - let array = new Float32Array(length); - this.readAlignment(buffer, 4); - for (let i = 0; i < length; i++) { - array[i] = buffer.readFloat32(true) - } - result = array; - break; - } - default: - throw new Error("Message corrupted"); - } - return result; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMethodCodec.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMethodCodec.ets deleted file mode 100644 index d4417c54eb56d55355b73104ee8626a17836735f..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StandardMethodCodec.ets +++ /dev/null @@ -1,116 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { ByteBuffer } from '../../util/ByteBuffer'; -import FlutterException from './FlutterException'; -import MethodCall from './MethodCall'; -import MethodCodec from './MethodCodec'; -import StandardMessageCodec from './StandardMessageCodec'; - -/** - * A {@link MethodCodec} using the Flutter standard binary encoding. - * - *

This codec is guaranteed to be compatible with the corresponding StandardMethodCodec - * on the Dart side. These parts of the Flutter SDK are evolved synchronously. - * - *

Values supported as method arguments and result payloads are those supported by {@link - * StandardMessageCodec}. - */ -export default class StandardMethodCodec implements MethodCodec { - private static TAG = "StandardMethodCodec"; - public static INSTANCE = new StandardMethodCodec(StandardMessageCodec.INSTANCE); - - private messageCodec: StandardMessageCodec; - - /** Creates a new method codec based on the specified message codec. */ - constructor(messageCodec: StandardMessageCodec) { - this.messageCodec = messageCodec; - } - - encodeMethodCall(methodCall: MethodCall): ArrayBuffer { - const stream = ByteBuffer.from(new ArrayBuffer(1024)); - this.messageCodec.writeValue(stream, methodCall.method); - this.messageCodec.writeValue(stream, methodCall.args); - return stream.buffer; - } - - decodeMethodCall(methodCall: ArrayBuffer): MethodCall { - const buffer = ByteBuffer.from(methodCall); - const method: ESObject = this.messageCodec.readValue(buffer); - const args: ESObject = this.messageCodec.readValue(buffer); - if (typeof method == 'string' && !buffer.hasRemaining()) { - return new MethodCall(method, args); - } - throw new Error("Method call corrupted"); - } - - encodeSuccessEnvelope(result: ESObject): ArrayBuffer { - const stream = ByteBuffer.from(new ArrayBuffer(1024)); - stream.writeInt8(0); - this.messageCodec.writeValue(stream, result); - return stream.buffer; - } - - encodeErrorEnvelope(errorCode: string, errorMessage: string, errorDetails: ESObject): ArrayBuffer { - const stream = ByteBuffer.from(new ArrayBuffer(1024)); - stream.writeInt8(1); - this.messageCodec.writeValue(stream, errorCode); - this.messageCodec.writeValue(stream, errorMessage); - if (errorDetails instanceof Error) { - this.messageCodec.writeValue(stream, errorDetails.stack); - } else { - this.messageCodec.writeValue(stream, errorDetails); - } - return stream.buffer; - } - - encodeErrorEnvelopeWithStacktrace(errorCode: string, errorMessage: string, errorDetails: ESObject, errorStacktrace: string): ArrayBuffer { - const stream = ByteBuffer.from(new ArrayBuffer(1024)); - stream.writeInt8(1); - this.messageCodec.writeValue(stream, errorCode); - this.messageCodec.writeValue(stream, errorMessage); - if (errorDetails instanceof Error) { - this.messageCodec.writeValue(stream, errorDetails.stack); - } else { - this.messageCodec.writeValue(stream, errorDetails); - } - this.messageCodec.writeValue(stream, errorStacktrace); - return stream.buffer; - } - - decodeEnvelope(envelope: ArrayBuffer): ESObject { - const buffer = ByteBuffer.from(envelope); - const flag = buffer.readInt8(); - switch (flag) { - case 0: { - const result: ESObject = this.messageCodec.readValue(buffer); - if (!buffer.hasRemaining()) { - return result; - } - // Falls through intentionally. - } - case 1: { - const code: ESObject = this.messageCodec.readValue(buffer); - const message: ESObject = this.messageCodec.readValue(buffer); - const details: ESObject = this.messageCodec.readValue(buffer); - if (typeof code == 'string' && (message == null || typeof message == 'string') && !buffer.hasRemaining()) { - throw new FlutterException(code, message, details); - } - } - } - throw new Error("Envelope corrupted"); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StringCodec.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StringCodec.ets deleted file mode 100644 index b824ac1f901b1dc9d1ae36f49e7fc74954595f4f..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/common/StringCodec.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import StringUtils from '../../util/StringUtils'; -import MessageCodec from './MessageCodec'; - -/** - * A {@link MessageCodec} using UTF-8 encoded String messages. - * - *

This codec is guaranteed to be compatible with the corresponding StringCodec on the - * Dart side. These parts of the Flutter SDK are evolved synchronously. - */ -export default class StringCodec implements MessageCodec { - static readonly INSTANCE = new StringCodec(); - - encodeMessage(message: string): ArrayBuffer { - if (message == null) { - return StringUtils.stringToArrayBuffer(""); - } - return StringUtils.stringToArrayBuffer(message); - } - - decodeMessage(message: ArrayBuffer): string { - if (message == null) { - return ""; - } - return StringUtils.arrayBufferToString(message); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/ListenableEditingState.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/ListenableEditingState.ets deleted file mode 100644 index 1ea2049bd252b4e54d9d5ce58a60b7a15989a653..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/ListenableEditingState.ets +++ /dev/null @@ -1,263 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { TextEditState } from '../../embedding/engine/systemchannels/TextInputChannel'; -import Log from '../../util/Log'; -import inputMethod from '@ohos.inputMethod'; -import ArrayList from '@ohos.util.ArrayList'; -import { TextEditingDelta } from './TextEditingDelta'; - -const TAG = "ListenableEditingState"; -export class ListenableEditingState { - //Cache used to storage software keyboard input action - private mStringCache: string; - private mSelectionStartCache: number = 0; - private mSelectionEndCache: number = 0; - private mComposingStartCache: number = 0; - private mComposingEndCache: number = 0; - //used to compare with Cache - - private mListeners: ArrayList = new ArrayList(); - private mPendingListeners: ArrayList = new ArrayList(); - private mBatchTextEditingDeltas: ArrayList = new ArrayList(); - private mChangeNotificationDepth: number = 0; - private mBatchEditNestDepth: number = 0; - - private mTextWhenBeginBatchEdit: string; - private mSelectionStartWhenBeginBatchEdit: number = 0; - private mSelectionEndWhenBeginBatchEdit: number = 0; - private mComposingStartWhenBeginBatchEdit: number = 0; - private mComposingEndWhenBeginBatchEdit: number = 0; - - - constructor() { - this.mStringCache = ""; - this.mTextWhenBeginBatchEdit = ""; - this.mSelectionStartCache = 0; - this.mSelectionEndCache = 0; - this.mComposingStartCache = -1; - this.mComposingEndCache = -1; - } - - - getSelectionStart(): number { - return this.mSelectionStartCache; - } - - getSelectionEnd(): number { - return this.mSelectionEndCache; - } - - getComposingStart(): number { - return this.mComposingStartCache; - } - - getComposingEnd(): number { - return this.mComposingEndCache; - } - - getStringCache(): string { - return this.mStringCache; - } - - setSelectionStart(newSelectionStart: number): void { - this.mSelectionStartCache = newSelectionStart; - } - - setSelectionEnd(newSelectionEnd: number): void { - this.mSelectionEndCache = newSelectionEnd; - } - - setComposingStart(newComposingStart: number): void { - this.mComposingStartCache = newComposingStart; - } - - setComposingEnd(newComposingEnd: number): void { - this.mComposingEndCache = newComposingEnd; - } - - setStringCache(newStringCache: string): void { - this.mStringCache = newStringCache; - } - - notifyListener(listener: EditingStateWatcher, - textChanged: boolean, - selectionChanged: boolean, - composingChanged: boolean): void { - this.mChangeNotificationDepth++; - listener.didChangeEditingState(textChanged, selectionChanged, composingChanged); - this.mChangeNotificationDepth--; - } - - notifyListenersIfNeeded(textChanged: boolean, selectionChanged: boolean, composingChanged: boolean) { - if (textChanged || selectionChanged || composingChanged) { - for(const listener of this.mListeners) { - this.notifyListener(listener, textChanged, selectionChanged, composingChanged); - } - - } - } - - handleInsertTextEvent(text: string): void { - if(this.mStringCache.length == this.mSelectionStartCache) { - //Insert text one by one - this.mStringCache += text; - this.setSelectionStart(this.mStringCache.length); - this.setSelectionEnd(this.mStringCache.length); - - } else if(this.mStringCache.length > this.mSelectionStartCache) { - //Insert text in the middle of string - let tempStr: string = this.mStringCache.substring(0, this.mSelectionStartCache) + text + this.mStringCache.substring(this.mSelectionStartCache); - this.mStringCache = tempStr; - this.mSelectionStartCache += text.length; - this.mSelectionEndCache = this.mSelectionStartCache; - } - if(this.mListeners == null) { - Log.e(TAG, "mListeners is null"); - return; - } - this.notifyListenersIfNeeded(true, true, false); - } - - updateTextInputState(state: TextEditState): void { - this.beginBatchEdit(); - this.setStringCache(state.text); - if(state.hasSelection()) { - this.setSelectionStart(state.selectionStart); - this.setSelectionEnd(state.selectionEnd); - } else { - this.setSelectionStart(0); - this.setSelectionEnd(0); - } - this.endBatchEdit(); - } - - beginBatchEdit(): void { - this.mBatchEditNestDepth++; - if(this.mChangeNotificationDepth > 0) { - Log.e(TAG, "editing state should not be changed in a listener callback"); - } - if(this.mBatchEditNestDepth == 1 && !this.mListeners.isEmpty()) { - this.mTextWhenBeginBatchEdit = this.getStringCache(); - this.mSelectionStartWhenBeginBatchEdit = this.getSelectionStart(); - this.mSelectionEndWhenBeginBatchEdit = this.getSelectionEnd(); - this.mComposingStartWhenBeginBatchEdit = this.getComposingStart(); - this.mComposingEndWhenBeginBatchEdit = this.getComposingEnd(); - } - } - - endBatchEdit(): void { - if (this.mBatchEditNestDepth == 0) { - Log.e(TAG, "endBatchEdit called without a matching beginBatchEdit"); - return; - } - if(this.mBatchEditNestDepth == 1) { - Log.d(TAG,"mBatchEditNestDepth == 1"); - for(const listener of this.mPendingListeners) { - this.notifyListener(listener, true, true, true); - } - - if(!this.mListeners.isEmpty()) { - Log.d(TAG, "didFinishBatchEdit with " + this.mListeners.length + " listener(s)"); - const textChanged = !(this.mStringCache == this.mTextWhenBeginBatchEdit); - const selectionChanged = this.mSelectionStartWhenBeginBatchEdit != this.getSelectionStart() - || this.mSelectionEndWhenBeginBatchEdit != this.getSelectionEnd(); - const composingRegionChanged = this.mComposingStartWhenBeginBatchEdit != this.getComposingStart() - || this.mComposingEndWhenBeginBatchEdit != this.getComposingEnd(); - Log.d(TAG,"textChanged: " + textChanged + " selectionChanged: " + selectionChanged + - " composingRegionChanged: " + composingRegionChanged); - this.notifyListenersIfNeeded(textChanged, selectionChanged, composingRegionChanged); - } - } - for(const listener of this.mPendingListeners) { - this.mListeners.add(listener); - } - this.mPendingListeners.clear(); - this.mBatchEditNestDepth--; - - } - - addEditingStateListener(listener: EditingStateWatcher): void { - if(this.mChangeNotificationDepth > 0) { - Log.e(TAG, "adding a listener " + JSON.stringify(listener) + " in a listener callback"); - } - if(this.mBatchEditNestDepth > 0) { - Log.d(TAG, "a listener was added to EditingState while a batch edit was in progress"); - this.mPendingListeners.add(listener); - } else { - this.mListeners.add(listener); - } - } - - removeEditingStateListener(listener: EditingStateWatcher): void { - if(this.mChangeNotificationDepth > 0) { - Log.e(TAG, "removing a listener " + JSON.stringify(listener) + " in a listener callback"); - } - this.mListeners.remove(listener); - if(this.mBatchEditNestDepth > 0) { - this.mPendingListeners.remove(listener); - } - } - - handleDeleteEvent(leftOrRight: boolean, length: number): void { - if(leftOrRight == false) { - //delete left - if(this.mSelectionStartCache == 0) { - return; - } - this.mSelectionStartCache -= length; - let tempStr: string = this.mStringCache.slice(0, this.mSelectionStartCache) + this.mStringCache.slice(this.mSelectionStartCache + length); - this.mStringCache = tempStr; - this.mSelectionEndCache = this.mSelectionStartCache; - } else if(leftOrRight == true) { - //delete right - if(this.mSelectionStartCache == this.mStringCache.length) { - return; - } - this.mSelectionEndCache += length; - let tempStr: string = this.mStringCache.slice(0,this.mSelectionStartCache) + this.mStringCache.slice(this.mSelectionEndCache); - this.mStringCache = tempStr; - this.mSelectionStartCache = this.mSelectionEndCache; - } - this.notifyListenersIfNeeded(true, true, false); - } - - handleFunctionKey(functionKey: inputMethod.FunctionKey): void { - switch (functionKey.enterKeyType) { - case inputMethod.EnterKeyType.PREVIOUS: - case inputMethod.EnterKeyType.UNSPECIFIED: - case inputMethod.EnterKeyType.NONE: - case inputMethod.EnterKeyType.GO: - case inputMethod.EnterKeyType.SEARCH: - case inputMethod.EnterKeyType.SEND: - case inputMethod.EnterKeyType.NEXT: - case inputMethod.EnterKeyType.DONE: - - } - } - - handleSelectByRange(range: inputMethod.Range): void { - Log.d(TAG, "handleSelectByRange start: " + range.start +" end: " + range.end); - } - - - -} - -export interface EditingStateWatcher { - // Changing the editing state in a didChangeEditingState callback may cause unexpected - // behavior. - didChangeEditingState(textChanged: boolean, selectionChanged: boolean, composingRegionChanged: boolean); -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/TextEditingDelta.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/TextEditingDelta.ets deleted file mode 100644 index 1aa1b2d87245f029c1b8a630fecf02bceb41ea8d..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/TextEditingDelta.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import Log from '../../util/Log'; - -export class TextEditingDelta { - private static TAG = "TextEditingDelta"; - private oldText: string = ""; - private deltaText: string = ""; - private deltaStart: number = 0; - private deltaEnd: number = 0; - private newSelectionStart: number; - private newSelectionEnd: number; - private newComposingStart: number; - private newComposingEnd: number; - - constructor(oldEditable: string, - selectionStart: number, - selectionEnd: number, - composingStart: number, - composingEnd: number, - replacementDestinationStart?: number, - replacementDestinationEnd?: number, - replacementSource?: string,) { - this.newSelectionStart = selectionStart; - this.newSelectionEnd = selectionEnd; - this.newComposingStart = composingStart; - this.newComposingEnd = composingEnd; - if(replacementDestinationStart === undefined || - replacementDestinationEnd === undefined || - replacementSource === undefined) { - this.setDeltas(oldEditable, "", -1, -1); - } else { - this.setDeltas( - oldEditable, - replacementSource, - replacementDestinationStart, - replacementDestinationEnd); - } - - } - - setDeltas(oldText: string, newText: string, newStart: number, newExtent: number): void { - this.oldText = oldText; - this.deltaText = newText; - this.deltaStart = newStart; - this.deltaEnd = newExtent; - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/TextInputPlugin.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/TextInputPlugin.ets deleted file mode 100644 index 16aa44aa78ec96be676109ad800c933999ce4586..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/editing/TextInputPlugin.ets +++ /dev/null @@ -1,264 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import TextInputChannel, { Configuration, TextEditState, - TextInputMethodHandler, - TextInputType } from '../../embedding/engine/systemchannels/TextInputChannel'; -import inputMethod from '@ohos.inputMethod'; -import Log from '../../util/Log'; -import { EditingStateWatcher, ListenableEditingState } from './ListenableEditingState'; - -export default class TextInputPlugin implements EditingStateWatcher{ - private static TAG = "TextInputPlugin"; - private textInputChannel: TextInputChannel; - private mTextInputHandler: TextInputMethodHandlerImpl; - - constructor(textInputChannel: TextInputChannel) { - this.textInputChannel = textInputChannel; - this.mTextInputHandler = new TextInputMethodHandlerImpl(this); - this.textInputChannel.setTextInputMethodHandler(this.mTextInputHandler); - } - - public clearTextInputClient() { - this.textInputChannel.textInputMethodHandler?.clearClient(); - } - - setTextInputEditingState(state: TextEditState) { - - } - - didChangeEditingState(textChanged: boolean, selectionChanged: boolean, composingRegionChanged: boolean): void { - let editable = this.mTextInputHandler.mEditable; - let inputTarget = this.mTextInputHandler.inputTarget; - this.textInputChannel.updateEditingState(inputTarget.id, editable.getStringCache(), - editable.getSelectionStart(), editable.getSelectionEnd(), - editable.getComposingStart(), editable.getComposingEnd()) - } - - detach(): void { - this.mTextInputHandler.inputMethodController.detach((err) => { - if(err) { - Log.e(TextInputPlugin.TAG, "Failed to detach: " + JSON.stringify(err)); - } - }) - } - -} - -class TextInputMethodHandlerImpl implements TextInputMethodHandler { - private static TAG = "TextInputMethodHandlerImpl"; - private textConfig: inputMethod.TextConfig; - inputMethodController: inputMethod.InputMethodController; - inputTarget: InputTarget; - private configuration: Configuration | null = null; - mEditable: ListenableEditingState; - private mRestartInputPending: boolean = false; - private plugin: EditingStateWatcher; - - private imcFlag: boolean = false; - - constructor(plugin: TextInputPlugin) { - this.textConfig = { - inputAttribute: { - textInputType: 0, - enterKeyType: 1 - }}; - this.plugin = plugin; - this.mEditable = new ListenableEditingState(); - this.inputMethodController = inputMethod.getController(); - this.inputTarget = new InputTarget(Type.NO_TARGET, 0); - } - - show(): void { - this.showTextInput(); - } - - hide(): void { - this.hideTextInput(); - } - - requestAutofill(): void { - - } - - finishAutofillContext(shouldSave: boolean): void { - - } - - setClient(textInputClientId: number, configuration: Configuration | null): void { - Log.d(TextInputMethodHandlerImpl.TAG,"textInputClientId: " + textInputClientId); - this.setTextInputClient(textInputClientId, configuration); - } - - setPlatformViewClient(id: number, usesVirtualDisplay: boolean): void { - - } - - setEditableSizeAndTransform(width: number, height: number, transform: number[]): void { - - } - - setEditingState(editingState: TextEditState): void { - Log.d(TextInputMethodHandlerImpl.TAG, "text:" + editingState.text +" selectionStart:" + editingState.selectionStart + " selectionEnd:" - + editingState.selectionEnd + " composingStart:" + editingState.composingStart + " composingEnd" + editingState.composingEnd); - this.mEditable.updateTextInputState(editingState); - } - - clearClient(): void { - this.clearTextInputClient(); - } - - private async showTextInput(): Promise { - await this.attach(true); - if(this.imcFlag != true) { - this.listenKeyBoardEvent(); - } - this.inputMethodController.showTextInput().then(()=> { - Log.d(TextInputMethodHandlerImpl.TAG, "Succeeded in showing softKeyboard"); - }).catch((err: ESObject) => { - Log.e(TextInputMethodHandlerImpl.TAG, "Failed to show softKeyboard:" + JSON.stringify(err)); - }); - } - - private async hideTextInput(): Promise { - this.inputMethodController.hideTextInput().then(() => { - Log.d(TextInputMethodHandlerImpl.TAG, "Succeeded in hide softKeyboard"); - }).catch((err: ESObject) => { - Log.e(TextInputMethodHandlerImpl.TAG, "Failed to hide softKeyboard:" + JSON.stringify(err)); - }) - } - - async attach(showKeyboard: boolean): Promise { - try { - await this.inputMethodController.attach(showKeyboard, this.textConfig); - } catch (err) { - Log.e(TextInputMethodHandlerImpl.TAG, "Failed to attach:" + JSON.stringify(err)); - } - } - - setTextInputClient(client: number, configuration: Configuration | null): void { - this.configuration = configuration; - if(this.canShowTextInput()) { - this.inputTarget = new InputTarget(Type.FRAMEWORK_CLIENT, client); - } else { - this.inputTarget = new InputTarget(Type.NO_TARGET, client); - } - this.mEditable.removeEditingStateListener(this.plugin); - this.mEditable = new ListenableEditingState(); - - this.mRestartInputPending = true; - this.mEditable.addEditingStateListener(this.plugin); - } - - canShowTextInput(): boolean { - if(this.configuration == null || this.configuration.inputType == null) { - return true; - } - return this.configuration.inputType.type != TextInputType.NONE; - } - - listenKeyBoardEvent(): void { - try { - this.inputMethodController.on('insertText', (text) => { - Log.d(TextInputMethodHandlerImpl.TAG, "insertText: " + text); - this.mEditable.handleInsertTextEvent(text); - }); - } catch (err) { - Log.e(TextInputMethodHandlerImpl.TAG, "Failed to subscribe insertText:" + JSON.stringify(err)); - this.cancelListenKeyBoardEvent(); - return; - } - - try { - this.inputMethodController.on('deleteLeft', (length) => { - this.mEditable.handleDeleteEvent(false, length); - }) - } catch (err) { - Log.e(TextInputMethodHandlerImpl.TAG, "Failed to subscribe deleteLeft:" + JSON.stringify(err)); - this.cancelListenKeyBoardEvent(); - return; - } - - try { - this.inputMethodController.on('deleteRight', (length) => { - this.mEditable.handleDeleteEvent(true, length); - }) - } catch (err) { - Log.e(TextInputMethodHandlerImpl.TAG, "Failed to subscribe deleteRight:" + JSON.stringify(err)); - this.cancelListenKeyBoardEvent(); - return; - } - - try { - this.inputMethodController.on('sendFunctionKey', (functionKey) => { - this.mEditable.handleFunctionKey(functionKey); - }) - } catch (err) { - Log.e(TextInputMethodHandlerImpl.TAG, "Failed to subscribe sendFunctionKey:" + JSON.stringify(err)); - this.cancelListenKeyBoardEvent(); - return; - } - - try { - this.inputMethodController.on('selectByRange', (range: inputMethod.Range) => { - this.mEditable.handleSelectByRange(range); - }) - } catch (err) { - Log.e(TextInputMethodHandlerImpl.TAG, "Failed to subscribe selectByRange:" + JSON.stringify(err)); - this.cancelListenKeyBoardEvent(); - return; - } - Log.d(TextInputMethodHandlerImpl.TAG, "listenKeyBoardEvent success"); - this.imcFlag = true; - } - - cancelListenKeyBoardEvent(): void { - this.inputMethodController.off('insertText'); - this.inputMethodController.off('deleteLeft'); - this.inputMethodController.off('deleteRight'); - this.inputMethodController.off('sendFunctionKey'); - this.inputMethodController.off('selectByRange'); - } - - public clearTextInputClient(): void { - if(this.inputTarget.type == Type.VIRTUAL_DISPLAY_PLATFORM_VIEW) { - return; - } - this.mEditable.removeEditingStateListener(this.plugin); - this.configuration = null; - this.inputTarget = new InputTarget(Type.NO_TARGET, 0); - } -} - -enum Type { - NO_TARGET, - // InputConnection is managed by the TextInputPlugin, and events are forwarded to the Flutter - // framework. - FRAMEWORK_CLIENT, - // InputConnection is managed by a platform view that is presented on a virtual display. - VIRTUAL_DISPLAY_PLATFORM_VIEW, - PHYSICAL_DISPLAY_PLATFORM_VIEW, -} - -export class InputTarget { - type: Type; - id: number; - - constructor(type: Type, id: number) { - this.type = type; - this.id = id; - } - -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/localization/LocalizationPlugin.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/localization/LocalizationPlugin.ets deleted file mode 100644 index 78ed1c729717344a6e387d3d3dbe62fb4e4df86c..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/localization/LocalizationPlugin.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import LocalizationChannel, { LocalizationMessageHandler } from '../../embedding/engine/systemchannels/LocalizationChannel' -import common from '@ohos.app.ability.common'; -import intl from '@ohos.intl'; -import Log from '../../util/Log'; -import i18n from '@ohos.i18n'; - -const TAG = "LocalizationPlugin"; -export default class LocalizationPlugin { - private localizationChannel:LocalizationChannel; - private context: common.Context; - - localeFromString(localeString: string): intl.Locale { - localeString = localeString.replace('_','-'); - let parts: string[] = localeString.split('-',-1); - let languageCode = parts[0]; - let scriptCode = ""; - let countryCode = ""; - let index: number = 1; - - if (parts.length > index && parts[index].length == 4) { - scriptCode = parts[index]; - index++; - } - - if (parts.length > index && parts[index].length >= 2 && parts[index].length <= 3) { - countryCode = parts[index]; - index++; - } - return new intl.Locale(languageCode+'-'+ countryCode +'-' + scriptCode); - } - - private localizationMessageHandler: LocalizationMessageHandler =new enterGetStringResource(()=>{ - Log.i(TAG, "getResource enter"); - return "" - }) - constructor(context: common.Context, localizationChannel: LocalizationChannel) { - this.context = context; - this.localizationChannel = localizationChannel; - this.localizationChannel.setLocalizationMessageHandler(this.localizationMessageHandler); - } - - sendLocaleToFlutter(): void { - let systemLanguages = i18n.System.getSystemLanguages(); - this.localizationChannel.sendLocales(systemLanguages); - } -} -class enterGetStringResource{ - getStringResource : (key: string, localeString: string)=>string - - constructor(getStringResource: (key: string, localeString: string)=>string) { - this.getStringResource = getStringResource - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/mouse/MouseCursorPlugin.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/mouse/MouseCursorPlugin.ets deleted file mode 100644 index 0f8bf873c41d36a2455442b857216b215418efbe..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/mouse/MouseCursorPlugin.ets +++ /dev/null @@ -1,129 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import MouseCursorChannel, { MouseCursorMethodHandler } from '../../embedding/engine/systemchannels/MouseCursorChannel'; -import pointer from '@ohos.multimodalInput.pointer'; -import HashMap from '@ohos.util.HashMap'; -import Log from '../../util/Log'; -import { AsyncCallback } from '@ohos.base'; - -const TAG: string = "MouseCursorPlugin"; -export default class MouseCursorPlugin implements MouseCursorMethodHandler{ - private mView: MouseCursorViewDelegate; - - private mouseCursorChannel: MouseCursorChannel; - - private systemCursorConstants: HashMap | null = null; - - constructor(mouseCursorView: MouseCursorViewDelegate, mouseCursorChannel: MouseCursorChannel) { - this.mView = mouseCursorView; - this.mouseCursorChannel = mouseCursorChannel; - this.mouseCursorChannel.setMethodHandler(this); - } - - activateSystemCursor(kind: string): void { - this.mView.getWindowId((error, windowId) => { - if (windowId < 0) { - Log.w(TAG, "set point style failed windowId is invalid"); - return; - } - let pointStyle: pointer.PointerStyle = this.resolveSystemCursor(kind); - try { - pointer.setPointerStyle(windowId, pointStyle, (err: ESObject) => { - Log.i(TAG, "set point style success kind : " + kind); - }) - } catch (e) { - Log.e(TAG, "set point style failed : " + kind + " " + JSON.stringify(e)); - } - }); - } - - /** - * Return mouse cursor point style - * - *

This method guarantees to return a non-null object. - * - * @param kind mouse cursor type - * @returns point style - */ - private resolveSystemCursor(kind: string): pointer.PointerStyle { - if (this.systemCursorConstants == null) { - this.systemCursorConstants = new HashMap(); - this.systemCursorConstants.set("alias", pointer.PointerStyle.DEFAULT); - this.systemCursorConstants.set("allScroll", pointer.PointerStyle.MOVE); - this.systemCursorConstants.set("basic", pointer.PointerStyle.DEFAULT); - this.systemCursorConstants.set("cell", pointer.PointerStyle.DEFAULT); - this.systemCursorConstants.set("click", pointer.PointerStyle.HAND_POINTING); - this.systemCursorConstants.set("contextMenu", pointer.PointerStyle.DEFAULT); - this.systemCursorConstants.set("copy", pointer.PointerStyle.CURSOR_COPY); - this.systemCursorConstants.set("forbidden", pointer.PointerStyle.CURSOR_FORBID); - this.systemCursorConstants.set("grab", pointer.PointerStyle.HAND_OPEN); - this.systemCursorConstants.set("grabbing", pointer.PointerStyle.HAND_GRABBING); - this.systemCursorConstants.set("help", pointer.PointerStyle.HELP); - this.systemCursorConstants.set("move", pointer.PointerStyle.MOVE); - this.systemCursorConstants.set("none", pointer.PointerStyle.DEFAULT); - this.systemCursorConstants.set("noDrop", pointer.PointerStyle.DEFAULT); - this.systemCursorConstants.set("precise", pointer.PointerStyle.CROSS); - this.systemCursorConstants.set("text", pointer.PointerStyle.TEXT_CURSOR); - this.systemCursorConstants.set("resizeColum", pointer.PointerStyle.NORTH_SOUTH); - this.systemCursorConstants.set("resizeDown", pointer.PointerStyle.SOUTH); - this.systemCursorConstants.set("resizeUpLeft", pointer.PointerStyle.NORTH_WEST); - this.systemCursorConstants.set("resizeDownRight", pointer.PointerStyle.SOUTH_EAST); - this.systemCursorConstants.set("resizeLeft", pointer.PointerStyle.WEST); - this.systemCursorConstants.set("resizeLeftRight", pointer.PointerStyle.RESIZE_LEFT_RIGHT); - this.systemCursorConstants.set("resizeRight", pointer.PointerStyle.EAST); - this.systemCursorConstants.set("resizeRow", pointer.PointerStyle.WEST_EAST); - this.systemCursorConstants.set("resizeUp", pointer.PointerStyle.NORTH); - this.systemCursorConstants.set("resizeUpDown", pointer.PointerStyle.RESIZE_UP_DOWN); - this.systemCursorConstants.set("resizeUpLeft", pointer.PointerStyle.NORTH_WEST); - this.systemCursorConstants.set("resizeUpRight", pointer.PointerStyle.NORTH_EAST); - this.systemCursorConstants.set("resizeUpLeftDownRight", pointer.PointerStyle.MOVE); - this.systemCursorConstants.set("resizeUpRightDownLeft", pointer.PointerStyle.MOVE); - this.systemCursorConstants.set("verticalText", pointer.PointerStyle.TEXT_CURSOR); - this.systemCursorConstants.set("wait", pointer.PointerStyle.DEFAULT); - this.systemCursorConstants.set("zoomIn", pointer.PointerStyle.ZOOM_IN); - this.systemCursorConstants.set("zoomOut", pointer.PointerStyle.ZOOM_OUT); - } - let pointStyle:pointer.PointerStyle = this.systemCursorConstants.get(kind); - if (pointStyle === null) { - return pointer.PointerStyle.DEFAULT; - } - return pointStyle; - } - - /** - * Detaches the text input plugin from the platform views controller; - * - *

The MouseCursorPlugin instance should not be used after call this. - */ - destroy(): void { - this.mouseCursorChannel.setMethodHandler(null); - } -} - -/** - * Delegate interface for requesting the system to display a pointer icon object. - * - *

Typically implemented by an component, such as a{@code FlutterView} - */ -export interface MouseCursorViewDelegate { - /** - * get window id to set mouse style - *

component need to implement this interface to get windowId - * - * @param callback windowId - * */ - getWindowId(callback: AsyncCallback): void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/AccessibilityEventsDelegate.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/AccessibilityEventsDelegate.ets deleted file mode 100644 index ea9450d4aa0f140dceeb4a7925f46383a65d0ea3..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/AccessibilityEventsDelegate.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import AccessibilityBridge from '../../view/AccessibilityBridge'; - -export class AccessibilityEventsDelegate { - private accessibilityBridge: AccessibilityBridge | null = null; - - requestSendAccessibilityEvent(accessibilityBridge: AccessibilityBridge): boolean { - if (accessibilityBridge == null) { - return false; - } - return true; - } - - onAccessibilityHoverEvent(accessibilityBridge: AccessibilityBridge): boolean { - if (accessibilityBridge == null) { - return false; - } - return true; - } - - setAccessibilityBridge (accessibilityBridge: AccessibilityBridge): void { - this.accessibilityBridge = accessibilityBridge; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformOverlayView.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformOverlayView.ets deleted file mode 100644 index 64e8c7f780dc9253f3fd79c05663805a13c8d839..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformOverlayView.ets +++ /dev/null @@ -1,28 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { AccessibilityEventsDelegate } from './AccessibilityEventsDelegate'; - -export class PlatformOverlayView { - private accessibilityEventsDelegate: AccessibilityEventsDelegate; - - constructor(context: Context, width: Number, height: Number, accessibilityEventsDelegate: AccessibilityEventsDelegate) { - this.accessibilityEventsDelegate= accessibilityEventsDelegate; - } - - public onHoverEvent(): boolean { - return false; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformView.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformView.ets deleted file mode 100644 index ddf5f59a71c4d1c7d51082bcf104990e0faa08c6..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformView.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { DVModel, DynamicView } from '../../view/DynamicView/dynamicView' - -/** A handle to an DynamicView to be embedded in the Flutter hierarchy. */ -export default abstract class PlatformView { - /** Returns the DynamicView to be embedded in the Flutter hierarchy. */ - abstract getView(): DVModel; - - /** - * Called by the {@link io.flutter.embedding.engine.FlutterEngine} that owns this {@code - * PlatformView} when the DynamicView responsible for rendering a Flutter UI is - * associated with the {@link io.flutter.embedding.engine.FlutterEngine}. - * - *

This means that our associated {@link io.flutter.embedding.engine.FlutterEngine} can now - * render a UI and interact with the user. - * - *

Some platform views may have unusual dependencies on the {@link View} that renders Flutter - * UIs, such as unique keyboard interactions. That {@link View} is provided here for those - * purposes. Use of this {@link View} should be avoided if it is not absolutely necessary, because - * depending on this {@link View} will tend to make platform view code more brittle to future - * changes. - */ - onFlutterViewAttached(dvModel: DVModel): void {} - - /** - * Called by the {@link io.flutter.embedding.engine.FlutterEngine} that owns this {@code - * PlatformView} when the DynamicView responsible for rendering a Flutter UI is detached - * and disassociated from the {@link io.flutter.embedding.engine.FlutterEngine}. - * - *

This means that our associated {@link io.flutter.embedding.engine.FlutterEngine} no longer - * has a rendering surface, or a user interaction surface of any kind. - * - *

This platform view must release any references related to the DynamicView that was - * provided in {@link #onFlutterViewAttached(View)}. - */ - onFlutterViewDetached(): void {} - - /** - * Dispose this platform view. - * - *

The {@link PlatformView} object is unusable after this method is called. - * - *

Plugins implementing {@link PlatformView} must clear all references to the View object and - * the PlatformView after this method is called. Failing to do so will result in a memory leak. - * - *

References related to the DynamicView attached in {@link - * #onFlutterViewAttached(View)} must be released in {@code dispose()} to avoid memory leaks. - */ - abstract dispose(): void; - - /** - * Callback fired when the platform's input connection is locked, or should be used. - * - *

This hook only exists for rare cases where the plugin relies on the state of the input - * connection. This probably doesn't need to be implemented. - */ - onInputConnectionLocked(): void {} - - /** - * Callback fired when the platform input connection has been unlocked. - * - *

This hook only exists for rare cases where the plugin relies on the state of the input - * connection. This probably doesn't need to be implemented. - */ - onInputConnectionUnlocked(): void {} -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewFactory.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewFactory.ets deleted file mode 100644 index 373a7ea5a5906c812c330762fd3825d4ce420201..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewFactory.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import MessageCodec from '../common/MessageCodec'; -import PlatformView from './PlatformView' -import common from '@ohos.app.ability.common'; - -export default abstract class PlatformViewFactory { - private createArgsCodec: MessageCodec; - - /** @param createArgsCodec the codec used to decode the args parameter of {@link #create}. */ - constructor(createArgsCodec: MessageCodec) { - this.createArgsCodec = createArgsCodec; - } - - /** - * Creates a new Dynamic be embedded in the Flutter hierarchy. - * - * @param context the context to be used when creating the view, this is different than - * FlutterView's context. - * @param viewId unique identifier for the created instance, this value is known on the Dart side. - * @param args arguments sent from the Flutter app. The bytes for this value are decoded using the - * createArgsCodec argument passed to the constructor. This is null if createArgsCodec was - * null, or no arguments were sent from the Flutter app. - */ - public abstract create(context: common.Context, viewId: number, args: ESObject): PlatformView; - - /** Returns the codec to be used for decoding the args parameter of {@link #create}. */ - getCreateArgsCodec(): MessageCodec { - return this.createArgsCodec; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewRegistry.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewRegistry.ets deleted file mode 100644 index 2c49f5eeaddb54cece120df8eea307c69ad76ebf..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewRegistry.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import PlatformViewFactory from './PlatformViewFactory' - -/** - * Registry for platform view factories. - * - *

Plugins can register factories for specific view types. - */ -export default interface PlatformViewRegistry { - /** - * Registers a factory for a platform view. - * - * @param viewTypeId unique identifier for the platform view's type. - * @param factory factory for creating platform views of the specified type. - * @return true if succeeded, false if a factory is already registered for viewTypeId. - */ - registerViewFactory(viewTypeId: string, factory: PlatformViewFactory): boolean; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewRegistryImpl.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewRegistryImpl.ets deleted file mode 100644 index 98cb247d890cbe65150feb84242c01128047e7f9..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewRegistryImpl.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import HashMap from '@ohos.util.HashMap'; -import PlatformViewFactory from './PlatformViewFactory' -import PlatformViewRegistry from './PlatformViewRegistry' - -export default class PlatformViewRegistryImpl implements PlatformViewRegistry { - // Maps a platform view type id to its factory. - private viewFactories: HashMap; - - constructor() { - this.viewFactories = new HashMap(); - } - - registerViewFactory(viewTypeId: string, factory: PlatformViewFactory): boolean { - if (this.viewFactories.hasKey(viewTypeId)) { - return false; - } - - this.viewFactories.set(viewTypeId, factory); - return true; - } - - getFactory(viewTypeId: string): PlatformViewFactory { - return this.viewFactories.get(viewTypeId); - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets deleted file mode 100644 index dcd57072c319129d0edba82cd9acbe91cf002b1a..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewWrapper.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import OhosTouchProcessor from '../../embedding/ohos/OhosTouchProcessor'; -import { DVModel, DVModelParameters } from '../../view/DynamicView/dynamicView'; -import { createDVModelFromJson } from '../../view/DynamicView/dynamicViewJson'; -import { RootDvModeManager } from './RootDvModelManager'; -import matrix4 from '@ohos.matrix4' -import Log from '../../util/Log'; - -const TAG: string = "PlatformViewWrapper"; -export class PlatformViewWrapper { - private prevLeft: number = 0; - private prevTop: number = 0; - private left: number = 0; - private top: number = 0; - private bufferWidth: number = 0; - private bufferHeight: number = 0; - private touchProcessor: OhosTouchProcessor | null = null; - - - private model : DVModel = createDVModelFromJson( new DVModelParam("Column", [])); - - public setTouchProcessor(newTouchProcessor: OhosTouchProcessor): void { - this.touchProcessor = newTouchProcessor; - } - - constructor() { - } - - public getDvModel(): DVModel { - return this.model; - } - - setParams: (params: DVModelParameters, key: string, element: ESObject ) => void = (params: DVModelParameters, key: string, element: ESObject): void => { - let params2 = params as Record; - params2[key] =element; - } - - getParams: (params: DVModelParameters, element: string) => string | ESObject = (params: DVModelParameters, element: string): string | ESObject => { - let params2 = params as Record; - return params2[element]; - } - - public setLayoutParams(parameters : DVModelParameters): void { - if (!this.model) { - return; - } - if (this.model.params == null) { - this.model.params = new DVModelParameters(); - } - this.setParams(this.model.params, "marginLeft", this.getParams(parameters, "marginLeft")); - this.setParams(this.model.params, "marginTop", this.getParams(parameters, "marginTop")); - this.left = this.getParams(parameters, "marginLeft"); - this.top = this.getParams(parameters, "marginTop"); - - this.setParams(this.model.params, "width", this.getParams(parameters, "width")); - this.setParams(this.model.params, "height", this.getParams(parameters, "height")); - - // this.model.params.marginLeft = parameters.marginLeft; - // this.model.params.marginTop = parameters.marginTop; - // this.left = parameters.marginLeft; - // this.top = parameters.marginTop;; - - // this.model.params.width = parameters.width; - // this.model.params.height = parameters.height; - } - - public addDvModel(model: DVModel): void { - this.model?.children.push(model); - } -} - -class DVModelParam { - compType: string - children: [] - - constructor(compType: string, children: []) { - this.compType = compType; - this.children = children; - } -}; \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsAccessibilityDelegate.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsAccessibilityDelegate.ets deleted file mode 100644 index 62888046c561533a3ea096c77ce7f3f634503e4c..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsAccessibilityDelegate.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import AccessibilityBridge from '../../view/AccessibilityBridge'; - -export interface PlatformViewsAccessibilityDelegate { - /** - * Returns the root of the view hierarchy for the platform view with the requested id, or null if - * there is no corresponding view. - */ - getPlatformViewById(viewId: number): Object; - - /** Returns true if the platform view uses virtual displays. */ - usesVirtualDisplay(id: number): boolean; - - /** - * Attaches an accessibility bridge for this platform views accessibility delegate. - * - *

Accessibility events originating in platform views belonging to this delegate will be - * delegated to this accessibility bridge. - */ - attachAccessibilityBridge(accessibilityBridge: AccessibilityBridge): void; - - /** - * Detaches the current accessibility bridge. - * - *

Any accessibility events sent by platform views belonging to this delegate will be ignored - * until a new accessibility bridge is attached. - */ - detachAccessibilityBridge(): void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsController.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsController.ets deleted file mode 100644 index 0d244a9d96438029c8dc29cf39ef46d68063fe36..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/PlatformViewsController.ets +++ /dev/null @@ -1,505 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { PlatformViewsAccessibilityDelegate } from './PlatformViewsAccessibilityDelegate'; -import PlatformViewsChannel, { - PlatformViewBufferResized, - PlatformViewCreationRequest, - PlatformViewResizeRequest, - PlatformViewsHandler, PlatformViewTouch, PlatformViewBufferSize -} from '../../../ets/embedding/engine/systemchannels/PlatformViewsChannel'; -import PlatformView from './PlatformView'; -import { DVModel, DVModelContainer, DVModelParameters, DynamicView } from '../../view/DynamicView/dynamicView'; -import display from '@ohos.display'; -import { FlutterView } from '../../view/FlutterView'; -import { TextureRegistry } from '../../view/TextureRegistry'; -import TextInputPlugin from '../editing/TextInputPlugin'; -import { PlatformOverlayView } from './PlatformOverlayView'; -import { PlatformViewWrapper } from './PlatformViewWrapper'; -import { FlutterOverlaySurface } from '../../embedding/engine/FlutterOverlaySurface'; -import HashSet from '@ohos.util.HashSet'; -import PlatformViewRegistry from './PlatformViewRegistry'; -import PlatformViewRegistryImpl from './PlatformViewRegistryImpl'; -import DartExecutor from '../../embedding/engine/dart/DartExecutor'; -import { AccessibilityEventsDelegate } from './AccessibilityEventsDelegate'; -import AccessibilityBridge from '../../view/AccessibilityBridge'; -import { RootDvModeManager } from './RootDvModelManager'; -import { FlutterMutatorView } from '../../embedding/engine/mutatorsstack/FlutterMutatorView'; -import common from '@ohos.app.ability.common'; -import Log from '../../util/Log' -import OhosTouchProcessor from '../../embedding/ohos/OhosTouchProcessor' -import PlatformViewFactory from './PlatformViewFactory' -import { ByteBuffer } from '../../util/ByteBuffer'; - -const TAG = "PlatformViewsController" - -export default class PlatformViewsController implements PlatformViewsAccessibilityDelegate, PlatformViewsHandler { - private registry: PlatformViewRegistryImpl; - private context: Context | null = null; - private flutterView: FlutterView | null = null; - private textureRegistry: TextureRegistry | null = null; - private textInputPlugin: TextInputPlugin | null = null; - private platformViewsChannel: PlatformViewsChannel | null = null; - private accessibilityEventsDelegate: AccessibilityEventsDelegate; - private nextOverlayLayerId: number = 0; - private usesSoftwareRendering: boolean = false; - - private platformViews: Map; - private overlayLayerViews: Map; - private viewWrappers: Map; - private currentFrameUsedOverlayLayerIds: HashSet; - private currentFrameUsedPlatformViewIds: HashSet; - private rootDvModel: DVModelContainer | null = RootDvModeManager.getRootDvMode(); - private platformViewParent: Map; - - constructor() { - this.registry = new PlatformViewRegistryImpl(); - this.accessibilityEventsDelegate = new AccessibilityEventsDelegate(); - this.overlayLayerViews = new Map(); - this.currentFrameUsedOverlayLayerIds = new HashSet(); - this.currentFrameUsedPlatformViewIds = new HashSet(); - this.viewWrappers = new Map(); - this.platformViews = new Map(); - this.platformViewParent = new Map(); - } - - - getPlatformViewById(viewId: number): Object { - throw new Error('Method not implemented.'); - } - - usesVirtualDisplay(id: number): boolean { - throw new Error('Method not implemented.'); - } - - attachAccessibilityBridge(accessibilityBridge: AccessibilityBridge): void { - throw new Error('Method not implemented.'); - } - - detachAccessibilityBridge(): void { - throw new Error('Method not implemented.'); - } - - createForPlatformViewLayer(request: PlatformViewCreationRequest): void { - Log.i(TAG, "Enter createForPlatformViewLayer"); - this.ensureValidRequest(request); - - let platformView: PlatformView = this.createPlatformView(request, false); - - this.configureForHybridComposition(platformView, request); - } - - dispose(viewId: number): void { - let platformView: PlatformView | null = this.platformViews.get(viewId) || null; - if (platformView == null) { - Log.e(TAG, "Disposing unknown platform view with id: " + viewId); - return; - } - this.platformViews.delete(viewId); - - try { - platformView.dispose(); - } catch (err) { - Log.e(TAG, "Disposing platform view threw an exception", err); - } - - let viewWrapper: PlatformViewWrapper | null = this.viewWrappers.get(viewId) || null; - if (viewWrapper != null) { - let children = viewWrapper.getDvModel().children; - let index = RootDvModeManager.getRootDvMode().model.children.indexOf(viewWrapper.getDvModel()); - children.splice(0, children.length); - RootDvModeManager.getRootDvMode().model.children.splice(index, 1); - this.viewWrappers.delete(viewId); - } - - let parentView: FlutterMutatorView | null = this.platformViewParent.get(viewId) || null; - if (parentView != null) { - this.platformViewParent.delete(viewId); - } - } - - setParams: (params: DVModelParameters, key: string, element: ESObject ) => void = (params: DVModelParameters, key: string, element: ESObject): void => { - let params2 = params as Record; - params2[key] =element; - } - - resize(request: PlatformViewResizeRequest, onComplete: PlatformViewBufferResized): void { - let physicalWidth: number = this.toPhysicalPixels(request.newLogicalWidth); - let physicalHeight: number = this.toPhysicalPixels(request.newLogicalHeight); - let viewId: number = request.viewId; - Log.i(TAG, `Resize viewId ${viewId}, pw:${physicalWidth}, ph:${physicalHeight},lw:${request.newLogicalWidth}, lh:${request.newLogicalHeight}`); - - let platformView: PlatformView | null = this.platformViews.get(viewId) || null; - let viewWrapper: PlatformViewWrapper | null = this.viewWrappers.get(viewId) || null; - if (platformView == null || viewWrapper == null) { - Log.e(TAG, "Resizing unknown platform view with id: " + viewId); - return; - } - - let viewWrapperLayoutParams: DVModelParameters | undefined = viewWrapper.getDvModel()?.getLayoutParams(); - if (physicalWidth && viewWrapperLayoutParams) { - this.setParams(viewWrapperLayoutParams, "width", physicalWidth); - // viewWrapperLayoutParams.width = physicalWidth; - } - - if (physicalHeight && viewWrapperLayoutParams) { - this.setParams(viewWrapperLayoutParams, "height", physicalHeight); - // viewWrapperLayoutParams.height = physicalHeight; - } - - let embeddedView: DVModel = platformView.getView(); - if (embeddedView != null) { - let embeddedViewLayoutParams = embeddedView.getLayoutParams(); - if (physicalWidth) { - this.setParams(embeddedViewLayoutParams, "width", physicalWidth); - // embeddedViewLayoutParams.width = physicalWidth; - } - - if (physicalHeight) { - this.setParams(embeddedViewLayoutParams, "height", physicalHeight); - // embeddedViewLayoutParams.height = physicalHeight; - } - } - - onComplete.run(new PlatformViewBufferSize(request.newLogicalWidth, request.newLogicalHeight)); - } - - offset(viewId: number, top: number, left: number): void { - Log.i(TAG, `Offset is id${viewId}, t:${top}, l:${left}`); - let viewWrapper: PlatformViewWrapper | null = this.viewWrappers.get(viewId) || null; - if (viewWrapper == null) { - Log.e(TAG, "Setting offset for an unknown platform view with id: " + viewId); - return; - } - - let physicalTop = this.toPhysicalPixels(top); - let physicalLeft = this.toPhysicalPixels(left); - let params = viewWrapper.getDvModel()!.params; - this.setParams(params!, "marginTop", physicalTop); - this.setParams(params!, "marginLeft", physicalLeft); - viewWrapper.setLayoutParams(params!); - } - - onTouch(touch: PlatformViewTouch): void { - let viewId: number = touch.viewId; - let density: number = display.getDefaultDisplaySync().densityDPI; - - let platformView: PlatformView | null = this.platformViews.get(viewId) ?? null; - if (platformView == null) { - Log.e(TAG, "Sending touch to an unknown platform view with id: " + viewId); - return; - } - let dvModel: DVModel = platformView.getView(); - if (dvModel == null) { - Log.e(TAG, "Sending touch to a null dv model with id: " + viewId); - } - Log.e(TAG, "Sending touch to a dv model with id: " + viewId.toString()); - sendEventByKey(viewId.toString(), 10, ""); - } - - setDirection(viewId: number, direction: number): void { - if (!this.validateDirection(direction)) { - throw new Error("Trying to set unknown direction value: " - + direction - + "(view id: " - + viewId - + ")"); - } - - const platformView = this.platformViews.get(viewId); - if (platformView == null) { - Log.e(TAG, "Setting direction to an unknown view with id: " + viewId); - return; - } - const embeddedView = platformView.getView(); - if (embeddedView == null) { - Log.e(TAG, "Setting direction to a null view with id: " + viewId); - return; - } - this.setParams(embeddedView.params, "direction", direction); - // embeddedView.params.direction = direction; - } - - validateDirection(direction:number):boolean { - return direction == Direction.Ltr || direction == Direction.Rtl || direction == Direction.Auto; - } - - clearFocus(viewId: number): void { - const platformView = this.platformViews.get(viewId); - if (platformView == null) { - Log.e(TAG, "Setting direction to an unknown view with id: " + viewId); - return; - } - const embeddedView = platformView.getView(); - if (embeddedView == null) { - Log.e(TAG, "Setting direction to a null view with id: " + viewId); - return; - } - focusControl.requestFocus("flutterXComponent"); - } - synchronizeToNativeViewHierarchy(yes: boolean): void { - throw new Error('Method not implemented.'); - } - - public createForTextureLayer(request: PlatformViewCreationRequest): number { - Log.i(TAG, "Enter createForTextureLayer"); - this.ensureValidRequest(request); - - let viewId: number = request.viewId; - if (this.viewWrappers.get(request.viewId) != null) { - throw new Error( - "Trying to create an already created platform view, view id: " + viewId); - } - - let platformView: PlatformView = this.createPlatformView(request, true); - let dynamicView: DVModel = platformView.getView(); - return this.configureForTextureLayerComposition(platformView, request); - } - - private ensureValidRequest(request: PlatformViewCreationRequest): void { - if (!this.validateDirection(request.direction)) { - throw new Error("Trying to create a view with unknown direction value: " - + request.direction - + "(view id: " - + request.viewId - + ")") - } - } - - private createPlatformView(request: PlatformViewCreationRequest, wrapContext: boolean): PlatformView { - Log.i(TAG, "Enter createPlatformView"); - const viewFactory: PlatformViewFactory = this.registry.getFactory(request.viewType); - if (viewFactory == null) { - throw new Error("Trying to create a platform view of unregistered type: " + request.viewType) - } - - let createParams: ESObject = null; - if (request.params != null) { - let byteParas : ByteBuffer = request.params as ByteBuffer; - createParams = viewFactory.getCreateArgsCodec().decodeMessage(byteParas.buffer); - } - - if (this.context == null) { - throw new Error('PlatformView#context is null.'); - } - let platformView = viewFactory.create(this.context, request.viewId, createParams); - - let embeddedView: DVModel = platformView.getView(); - if (embeddedView == null) { - throw new Error("PlatformView#getView() returned null, but an dynamic view reference was expected."); - } - - this.setParams(embeddedView.params, "direction", request.direction); - // embeddedView.params.direction = request.direction; - - this.platformViews.set(request.viewId, platformView); - return platformView; - } - - // Configures the view for Hybrid Composition mode. - private configureForHybridComposition(platformView: PlatformView, request: PlatformViewCreationRequest): void { - Log.i(TAG, "Using hybrid composition for platform view: " + request.viewId); - } - - private configureForTextureLayerComposition(platformView: PlatformView, request: PlatformViewCreationRequest): number { - Log.i(TAG, "Hosting view in view hierarchy for platform view: " + request.viewId); - - let viewWrapper: PlatformViewWrapper = new PlatformViewWrapper(); - let textureId: number = 0; - - let physicalTop: number = this.toPhysicalPixels(request.logicalTop); - let physicalLeft: number = this.toPhysicalPixels(request.logicalLeft); - - Log.i(TAG, `View pW:${request.logicalWidth}, pH:${request.logicalHeight}, pT:${physicalTop}, pL:${physicalLeft}`); - - let param: DVModelParameters = new DVModelParameters(); - - this.setParams(param, "marginLeft", physicalLeft); - this.setParams(param, "marginTop", physicalTop); - // param.marginLeft = physicalLeft; - // param.marginTop = physicalTop; - - let model = platformView.getView(); - if (request.logicalWidth != null) { - let physicalWidth: number = this.toPhysicalPixels(request.logicalWidth); - this.setParams(model.params, "width", physicalWidth); - this.setParams(param, "width", physicalWidth); - // model.params.width = physicalWidth; - // param.width = physicalWidth; - } - - if (request.logicalHeight != null) { - let physicalHeight: number = this.toPhysicalPixels(request.logicalHeight); - this.setParams(model.params, "height", physicalHeight); - this.setParams(param, "height", physicalHeight); - // model.params.height = physicalHeight; - // param.height = physicalHeight; - } - - viewWrapper.setLayoutParams(param); - viewWrapper.addDvModel(model); - - RootDvModeManager.addDvModel(viewWrapper.getDvModel()!); - this.viewWrappers.set(request.viewId, viewWrapper); - Log.i(TAG, "Create platform view success"); - - return textureId; - } - - public attach(context: Context, textureRegistry: TextureRegistry | null, dartExecutor: DartExecutor): void { - if (this.context != null) { - - } - this.context = context; - this.textureRegistry = textureRegistry; - this.platformViewsChannel = new PlatformViewsChannel(dartExecutor); - this.platformViewsChannel.setPlatformViewsHandler(this); - } - - public detach(): void { - if (this.platformViewsChannel != null) { - this.platformViewsChannel.setPlatformViewsHandler(null); - } - this.destroyOverlaySurfaces(); - this.platformViewsChannel = null; - this.context = null; - this.textureRegistry = null; - } - - public attachToView() { - for (let wrapper of this.viewWrappers.values()) { - this.rootDvModel?.model.children.push(wrapper.getDvModel()!); - } - for (let mutator of this.platformViewParent.values()) { - this.rootDvModel?.model.children.push(mutator.getDvModel()!); - } - for (let platformView of this.platformViews.values()) { - platformView.onFlutterViewAttached(this.rootDvModel!.model); - } - } - - public detachFromView(): void { - for (let index = 0; index < this.viewWrappers.size; index++) { - this.rootDvModel?.model.children.pop(); - } - for (let index = 0; index < this.platformViewParent.size; index++) { - this.rootDvModel?.model.children.pop(); - } - this.destroyOverlaySurfaces(); - this.removeOverlaySurfaces(); - this.rootDvModel = null; - - for (let platformView of this.platformViews.values()) { - platformView.onFlutterViewDetached(); - } - } - - public attachTextInputPlugin(textInputPlugin: TextInputPlugin): void { - this.textInputPlugin = textInputPlugin; - } - - public detachTextInputPlugin(): void { - this.textInputPlugin = null; - } - - public getRegistry(): PlatformViewRegistry { - return this.registry; - } - - public onDetachedFromNapi(): void { - this.diposeAllViews(); - } - - public onPreEngineRestart(): void { - this.diposeAllViews(); - } - - private getDisplayDensity(): number { - return display.getDefaultDisplaySync().densityPixels; - } - private toPhysicalPixels(logicalPixels: number): number { - return Math.round(px2vp(logicalPixels * this.getDisplayDensity())); - } - - private toLogicalPixelsByDensity(physicalPixels: number, displayDensity: number): number { - return Math.round(physicalPixels / displayDensity); - } - - private toLogicalPixels(physicalPixels: number): number { - return this.toLogicalPixelsByDensity(physicalPixels, this.getDisplayDensity()); - } - - - private diposeAllViews(): void { - } - - private initializeRootImageViewIfNeeded(): void { - } - - initializePlatformViewIfNeeded(viewId: number): void { - let platformView: PlatformView = this.platformViews[viewId]; - if (platformView == null) { - throw new Error("Platform view hasn't been initialized from the platform view channel."); - } - if (this.platformViewParent[viewId] == null) { - return; - } - let dvModel: DVModel = platformView.getView(); - if (dvModel == null) { - throw new Error("PlatformView#getView() returned null, but an ohos dv model reference was expected."); - } - let parentView: FlutterMutatorView = new FlutterMutatorView(); - parentView.setOnDescendantFocusChangeListener(() => { - this.platformViewsChannel?.invokeViewFocused(viewId); - }, () => { - if (this.textInputPlugin != null) { - this.textInputPlugin.clearTextInputClient(); - } - }); - } - - public onDisplayOverlaySurface(id: number, x: number, y: number, width: number, height: number): void { - } - - public onBeginFrame(): void { - this.currentFrameUsedOverlayLayerIds.clear(); - this.currentFrameUsedPlatformViewIds.clear(); - } - - public onEndFrame(): void { - } - - private finishFrame(isFrameRenderedUsingImageReaders: boolean): void { - } - - public createOverlaySurfaceByPlatformOverlayView(imageView: PlatformOverlayView) { - let id = this.nextOverlayLayerId++; - this.overlayLayerViews.set(id, imageView); - return new FlutterOverlaySurface(this.nextOverlayLayerId++); - } - - public createOverlaySurface(): FlutterOverlaySurface { - return new FlutterOverlaySurface(this.nextOverlayLayerId++); - } - - private destroyOverlaySurfaces(): void { - } - - private removeOverlaySurfaces(): void { - if (!(this.flutterView instanceof FlutterView)) { - return; - } - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets deleted file mode 100644 index eec92e82e4c56679060d2be9003aece149b080c7..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/plugin/platform/RootDvModelManager.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import { DVModel, - DVModelContainer, - DVModelParameters } from '../../view/DynamicView/dynamicView'; -import { createDVModelFromJson } from '../../view/DynamicView/dynamicViewJson'; - -@Component -struct XComponentStruct { - private context:ESObject; - - build() { - XComponent({ id: 'flutterXComponent', type: 'texture', libraryname: 'flutter' }) - .onLoad((context) => { - this.context = context; - }) - .onDestroy(() => { - }) - } -} -interface $$type{ - param: DVModelParameters -} -@Builder function BuildXComponentStruct($$: $$type) { - XComponentStruct(); -} - -class DVModelJson{ - compType: string - children:Array - attributes:ESObject - - constructor(compType:string , children:Array , attributes:ESObject) { - this.compType = compType - this.children = children - this.attributes = attributes - } -} -export class RootDvModeManager { - private static xComponentModel:ESObject = - { - compType: "xComponent", - build: BuildXComponentStruct - }; - - private static model: DVModel = createDVModelFromJson(new DVModelJson("Stack", [RootDvModeManager.xComponentModel], {alignContent: Alignment.TopStart},) - - ); - - private static container : DVModelContainer = new DVModelContainer(RootDvModeManager.model); - - public static getRootDvMode(): DVModelContainer { - return RootDvModeManager.container; - } - - public static addDvModel(model: DVModel): void { - RootDvModeManager.container.model.children.push(model); - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/ByteBuffer.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/ByteBuffer.ets deleted file mode 100644 index 38d652b9368dd9c81dc8d6bb419e207785cc44eb..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/ByteBuffer.ets +++ /dev/null @@ -1,818 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import util from '@ohos.util' -import StringUtils from './StringUtils' - -/** - * A byte buffer. - * - * Supports the following data types: - * - Bool - * - Int (8, 16, 32, 64) - * - Uint (8, 16, 32, 64) - * - BigInt (64) - * - String (utf8, utf16, and delimited) - * - TypedArray - * - */ -export class ByteBuffer { - - /** - * Creates a byte buffer. - * @param source The data source. - * @param byteOffset The byte offset. - * @param byteLength The byte length. - * @returns A byte buffer. - */ - static from(source: ArrayBuffer, byteOffset?: number, byteLength?: number): ByteBuffer { - // if (ArrayBuffer.isView(source)) { - // byteOffset = source.byteOffset + (byteOffset || 0) - // } - const byteBuffer = new ByteBuffer() - byteBuffer.dataView = byteLength === undefined ? new DataView(source, byteOffset) : new DataView(source, byteOffset, Math.min(source.byteLength, byteLength)) - byteBuffer.mByteOffset = byteBuffer.dataView.byteOffset - return byteBuffer - } - - /** - * The dataView. - */ - private dataView?: DataView - - /** - * The byte offset. - */ - mByteOffset: number = 0 - - /** - * The byte offset. - * @returns The byte offset. - */ - get byteOffset(): number { - return this.mByteOffset - } - - /** - * The byte offset. - * @returns The byte offset. - */ - get byteLength(): number { - return this.dataView?.byteLength ?? 0 - } - - /** - * The number of remaining bytes. - * @returns The number of bytes remaining. - */ - get bytesRemaining(): number { - return this.dataView ? this.dataView.byteLength - this.mByteOffset : 0; - } - - hasRemaining(): boolean { - return this.dataView != undefined && this.mByteOffset < this.dataView.byteLength; - } - - get buffer(): ArrayBuffer { - const dataBuffer = new DataView(new ArrayBuffer(this.mByteOffset)); - for (let i = 0; i < this.mByteOffset; i++) { - dataBuffer.setUint8(i, this.dataView!.getUint8(i)); - } - return dataBuffer.buffer - } - - /** - * Skips the byte offset. - * @param byteLength The byte length. - */ - skip(byteLength: number): void { - this.mByteOffset += byteLength - } - - /** - * Resets the byte offset. - */ - reset(): void { - this.mByteOffset = this.dataView?.byteOffset ?? 0 - } - - /** - * Clears the byte buffer. - */ - clear(): void { - this.getUint8Array(0).fill(0) - } - - /** - * check buffer capacity. - */ - checkWriteCapacity(slen: number): void { - if (this.mByteOffset + slen > this.dataView!.byteLength) { - let checkBuffer = new DataView(new ArrayBuffer(this.dataView!.byteLength + slen + 512)); - for (let i = 0; i < this.mByteOffset; i++) { - checkBuffer.setUint8(i, this.dataView!.getUint8(i)); - } - this.dataView = checkBuffer; - } - } - - /** - * Gets a boolean. - * @param byteOffset The byte offset. - */ - getBool(byteOffset: number): boolean { - return this.getInt8(byteOffset) !== 0 - } - - /** - * Reads the next boolean. - */ - readBool(): boolean { - return this.getInt8(this.mByteOffset++) !== 0 - } - - /** - * Sets a boolean. - * @param byteOffset The byte offset. - * @param value The value. - */ - setBool(byteOffset: number, value: boolean): void { - this.dataView?.setInt8(byteOffset, value ? 1 : 0) - } - - /** - * Writes the next boolean. - * @param value The value. - */ - writeBool(value: boolean): void { - this.checkWriteCapacity(1) - this.setInt8(this.mByteOffset++, value ? 1 : 0) - } - - /** - * Gets an signed byte. - * @param byteOffset The byte offset. - * @returns The value. - */ - getInt8(byteOffset: number): number { - return this.dataView?.getInt8(byteOffset) || 0 - } - - /** - * Reads the next signed byte. - * @returns The value. - */ - readInt8(): number { - return this.getInt8(this.mByteOffset++) - } - - /** - * Sets a signed byte. - * @param byteOffset The byte offset. - * @param value The value. - */ - setInt8(byteOffset: number, value: number): void { - this.dataView?.setInt8(byteOffset, value) - } - - /** - * Writes the next signed byte. - * @param value The value. - */ - writeInt8(value: number): void { - this.checkWriteCapacity(1) - this.setInt8(this.mByteOffset++, value) - } - - /** - * Gets an unsigned byte. - * @param byteOffset The byte offset. - * @returns The value. - */ - getUint8(byteOffset: number): number { - return this.dataView?.getUint8(byteOffset) || 0 - } - - /** - * Reads the next unsigned byte. - * @returns The value. - */ - readUint8(): number { - return this.getUint8(this.mByteOffset++) - } - - /** - * Sets an unsigned byte. - * @param byteOffset The byte offset. - * @param value The value. - */ - setUint8(byteOffset: number, value: number): void { - this.dataView?.setUint8(byteOffset, value) - } - - /** - * Writes the next signed byte. - * @param value The value. - */ - writeUint8(value: number): void { - this.checkWriteCapacity(1) - this.setUint8(this.mByteOffset++, value) - } - - /** - * Gets an signed short. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getInt16(byteOffset: number, littleEndian?: boolean): number { - return this.dataView?.getInt16(byteOffset, littleEndian) || 0 - } - - /** - * Reads the next signed short. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readInt16(littleEndian?: boolean): number { - const value = this.getInt16(this.mByteOffset, littleEndian) - this.mByteOffset += 2 - return value - } - - /** - * Sets a signed short. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setInt16(byteOffset: number, value: number, littleEndian?: boolean): void { - this.dataView?.setInt16(byteOffset, value, littleEndian) - } - - /** - * Writes the next signed short. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeInt16(value: number, littleEndian?: boolean): void { - this.checkWriteCapacity(2) - this.setInt16(this.mByteOffset, value, littleEndian) - this.mByteOffset += 2 - } - - /** - * Gets an unsigned short. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getUint16(byteOffset: number, littleEndian?: boolean): number { - return this.dataView?.getUint16(byteOffset, littleEndian) || 0 - } - - /** - * Reads the next unsigned short. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readUint16(littleEndian?: boolean): number { - const value = this.getUint16(this.mByteOffset, littleEndian) - this.mByteOffset += 2 - return value - } - - /** - * Sets an unsigned short. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setUint16(byteOffset: number, value: number, littleEndian?: boolean): void { - this.dataView?.setUint16(byteOffset, value, littleEndian) - } - - /** - * Writes the next signed short. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeUint16(value: number, littleEndian?: boolean): void { - this.checkWriteCapacity(2) - this.setUint16(this.mByteOffset, value, littleEndian) - this.mByteOffset += 2 - } - - /** - * Gets an signed integer. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getInt32(byteOffset: number, littleEndian?: boolean): number { - return this.dataView?.getInt32(byteOffset, littleEndian) ?? 0 - } - - /** - * Reads the next signed integer. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readInt32(littleEndian?: boolean): number { - const value = this.getInt32(this.mByteOffset, littleEndian) - this.mByteOffset += 4 - return value - } - - /** - * Sets a signed integer. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setInt32(byteOffset: number, value: number, littleEndian?: boolean): void { - this.dataView?.setInt32(byteOffset, value, littleEndian) - } - - /** - * Writes the next signed integer. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeInt32(value: number, littleEndian?: boolean): void { - this.checkWriteCapacity(4) - this.setInt32(this.mByteOffset, value, littleEndian) - this.mByteOffset += 4 - } - - /** - * Gets an unsigned integer. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getUint32(byteOffset: number, littleEndian?: boolean): number { - return this.dataView?.getUint32(byteOffset, littleEndian) ?? 0 - } - - /** - * Reads the next unsigned integer. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readUint32(littleEndian?: boolean): number { - const value = this.getUint32(this.mByteOffset, littleEndian) - this.mByteOffset += 4 - return value - } - - /** - * Sets an unsigned integer. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setUint32(byteOffset: number, value: number, littleEndian?: boolean): void { - this.dataView?.setUint32(byteOffset, value, littleEndian) - } - - /** - * Writes the next signed integer. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeUint32(value: number, littleEndian?: boolean): void { - this.checkWriteCapacity(4) - this.setUint32(this.mByteOffset, value, littleEndian) - this.mByteOffset += 4 - } - - /** - * Gets a float. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getFloat32(byteOffset: number, littleEndian?: boolean): number { - return this.dataView?.getFloat32(byteOffset, littleEndian) ?? 0 - } - - /** - * Reads the next float. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readFloat32(littleEndian?: boolean): number { - const value = this.getFloat32(this.mByteOffset, littleEndian) - this.mByteOffset += 4 - return value - } - - /** - * Sets a float. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void { - this.dataView?.setFloat32(byteOffset, value, littleEndian) - } - - /** - * Writes the next float. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeFloat32(value: number, littleEndian?: boolean): void { - this.checkWriteCapacity(4) - this.setFloat32(this.mByteOffset, value, littleEndian) - this.mByteOffset += 4 - } - - /** - * Gets a double. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getFloat64(byteOffset: number, littleEndian?: boolean): number { - return this.dataView?.getFloat64(byteOffset, littleEndian) ?? 0 - } - - /** - * Reads the next double. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readFloat64(littleEndian?: boolean): number { - const value = this.getFloat64(this.mByteOffset, littleEndian) - this.mByteOffset += 8 - return value - } - - /** - * Sets a double. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void { - this.dataView?.setFloat64(byteOffset, value, littleEndian) - } - - /** - * Writes the next double. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeFloat64(value: number, littleEndian?: boolean): void { - this.checkWriteCapacity(8) - this.setFloat64(this.mByteOffset, value, littleEndian) - this.mByteOffset += 8 - } - - /** - * Gets an signed long. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getBigInt64(byteOffset: number, littleEndian?: boolean): bigint { - return this.dataView?.getBigInt64(byteOffset, littleEndian) ?? BigInt(0) - } - - /** - * Reads the next signed long. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readBigInt64(littleEndian?: boolean): bigint { - const value = this.getBigInt64(this.mByteOffset, littleEndian) - this.mByteOffset += 8 - return value - } - - /** - * Sets a signed long. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void { - this.dataView?.setBigInt64(byteOffset, value, littleEndian) - } - - /** - * Writes the next signed long. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeBigInt64(value: bigint, littleEndian?: boolean): void { - this.checkWriteCapacity(8) - this.setBigInt64(this.mByteOffset, value, littleEndian) - this.mByteOffset += 8 - } - - /** - * Gets an unsigned long. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getBigUint64(byteOffset: number, littleEndian?: boolean): bigint { - return this.dataView?.getBigUint64(byteOffset, littleEndian) ?? BigInt(0) - } - - /** - * Reads the next unsigned long. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readBigUint64(littleEndian?: boolean): bigint { - const value = this.getBigUint64(this.mByteOffset, littleEndian) - this.mByteOffset += 8 - return value - } - - /** - * Sets an unsigned long. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void { - this.dataView?.setBigUint64(byteOffset, value, littleEndian) - } - - /** - * Writes the next unsigned long. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeBigUint64(value: bigint, littleEndian?: boolean): void { - this.checkWriteCapacity(8) - this.setBigUint64(this.mByteOffset, value, littleEndian) - this.mByteOffset += 8 - } - - /** - * Gets an signed long. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getInt64(byteOffset: number, littleEndian?: boolean): bigint { - return this.getBigInt64(byteOffset, littleEndian) - } - - /** - * Reads the next signed long. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readInt64(littleEndian?: boolean): bigint { - const value = this.getInt64(this.mByteOffset, littleEndian) - this.mByteOffset += 8 - return value - } - - /** - * Sets a signed long. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setInt64(byteOffset: number, value: number, littleEndian?: boolean): void { - this.setBigInt64(byteOffset, BigInt(value), littleEndian) - } - - /** - * Writes the next signed long. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeInt64(value: number, littleEndian?: boolean): void { - this.checkWriteCapacity(8) - this.setInt64(this.mByteOffset, value, littleEndian) - this.mByteOffset += 8 - } - - /** - * Gets an unsigned long. - * @param byteOffset The byte offset. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - getUint64(byteOffset: number, littleEndian?: boolean): number { - return Number(this.getBigUint64(byteOffset, littleEndian)) - } - - /** - * Reads the next unsigned long. - * @param littleEndian If the value is little endian. - * @returns The value. - */ - readUint64(littleEndian?: boolean): number { - const value = this.getUint64(this.mByteOffset, littleEndian) - this.mByteOffset += 8 - return value - } - - /** - * Sets an unsigned long. - * @param byteOffset The byte offset. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - setUint64(byteOffset: number, value: number, littleEndian?: boolean): void { - this.setBigUint64(byteOffset, BigInt(value), littleEndian) - } - - /** - * Writes the next signed long. - * @param value The value. - * @param littleEndian If the value is little endian. - */ - writeUint64(value: number, littleEndian?: boolean): void { - this.checkWriteCapacity(8) - this.setUint64(this.mByteOffset, value, littleEndian) - this.mByteOffset += 8 - } - - /** - * Gets an array of unsigned bytes. - * @param byteOffset The byte offset. - * @param byteLength The byte length. - * @returns The value. - */ - getUint8Array(byteOffset: number, byteLength?: number): Uint8Array { - return this.dataView == null - ? new Uint8Array(StringUtils.stringToArrayBuffer(""), byteOffset, byteLength) - : new Uint8Array(this.dataView?.buffer, this.dataView?.byteOffset + byteOffset, byteLength) - } - - /** - * Reads the next array of unsigned bytes. - * @param byteLength The byte length. - * @returns The value. - */ - readUint8Array(byteLength?: number): Uint8Array { - const value = this.getUint8Array(this.mByteOffset, byteLength) - this.mByteOffset += value.byteLength - return value - } - - /** - * Sets an array of unsigned bytes. - * @param byteOffset The byte offset. - * @param value The value. - */ - setUint8Array(byteOffset: number, value: Uint8Array): void { - const byteLength = value.byteLength - this.getUint8Array(byteOffset, byteLength).set(value) - } - - /** - * Writes the next array of unsigned bytes. - * @param value The value. - */ - writeUint8Array(value: Uint8Array): void { - this.checkWriteCapacity(value.byteLength) - this.setUint8Array(this.mByteOffset, value) - this.mByteOffset += value.byteLength - } - - /** - * Gets an array of unsigned shorts. - * @param byteOffset The byte offset. - * @param byteLength The byte length. - * @returns The value. - */ - getUint16Array(byteOffset: number, byteLength?: number): Uint16Array { - if (byteLength !== undefined) { - byteLength = Math.floor(byteLength / 2) - } - return this.dataView == null - ? new Uint16Array(StringUtils.stringToArrayBuffer(""), byteOffset, byteLength) - : new Uint16Array(this.dataView.buffer, this.dataView.byteOffset + byteOffset, byteLength) - } - - /** - * Reads the next array of unsigned shorts. - * @param byteLength The byte length. - * @returns The value. - */ - readUint16Array(byteLength?: number): Uint16Array { - const value = this.getUint16Array(this.mByteOffset, byteLength) - this.mByteOffset += value.byteLength - return value - } - - /** - * Sets an array of unsigned bytes. - * @param byteOffset The byte offset. - * @param value The value. - */ - setUint16Array(byteOffset: number, value: Uint16Array): void { - const byteLength = value.byteLength - this.getUint16Array(byteOffset, byteLength).set(value) - } - - /** - * Writes the next array of unsigned bytes. - * @param value The value. - */ - writeUint16Array(value: Uint16Array): void { - this.checkWriteCapacity(value.byteLength) - this.setUint16Array(this.mByteOffset, value) - this.mByteOffset += value.byteLength - } - - /** - * Gets a string. - * @param byteOffset The byte offset. - * @param byteLength The byte length. - * @param byteEncoding The byte encoding. - * @returns The value. - */ - getString(byteOffset: number, byteLength?: number, byteEncoding?: string): string { - const decoder = new util.TextDecoder(byteEncoding || "utf-8") - const encoded = this.getUint8Array(byteOffset, byteLength) - return decoder.decode(encoded) - } - - /** - * Reads the next string. - * @param byteLength The byte length. - * @param byteEncoding The byte encoding. - * @returns The value. - */ - readString(byteLength?: number, byteEncoding?: string): string { - const value = this.getString(this.mByteOffset, byteLength, byteEncoding) - if (byteLength === undefined) { - this.mByteOffset = this.dataView?.byteLength ?? 0 - } else { - this.mByteOffset += byteLength - } - return value - } - - /** - * Sets a string. - * @param byteOffset The byte offset. - * @param value The string. - * @param byteEncoding The byte encoding. - * @returns The byte length. - */ - setString(byteOffset: number, value: string, byteEncoding?: string, write?: boolean): number { - if (byteEncoding && byteEncoding !== "utf-8") { - throw new TypeError("String encoding '" + byteEncoding + "' is not supported") - } - const encoder = new util.TextEncoder() - const byteLength = Math.min(this.dataView!.byteLength - byteOffset, value.length * 4) - if (write) { - this.checkWriteCapacity(byteLength) - } - const destination = this.getUint8Array(byteOffset, byteLength) - const written = encoder.encodeInto(value, destination).written - return written || 0 - } - - /** - * Writes the next a string. - * @param value The string. - * @param byteEncoding The byte encoding. - */ - writeString(value: string, byteEncoding?: string): void { - const byteLength = this.setString(this.mByteOffset, value, byteEncoding, true) - this.mByteOffset += byteLength - } - - /** - * Formats to a string. - * @param format The string format. - * @returns The string. - */ - toString(format?: string): string { - return [...this.getUint8Array(0)].map((byte: number) => { - switch(format) { - case "hex": - return ("00" + byte.toString(16)).slice(-2) - default: - return byte.toString(10) - } - }).join(" ") - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/Log.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/Log.ets deleted file mode 100644 index 437b52f18049b9ba77e47350033482a06368c5c4..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/Log.ets +++ /dev/null @@ -1,122 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import HiLog from '@ohos.hilog'; - -const DOMAIN: number = 0x00FF; -const TAG = "Flutter"; -const SYMBOL = " --> "; -// const FILTER_KEYS = [ -// new RegExp('hide', "gi") -// ] - -// export function filterKey(target: any, propKey: string, descriptor: PropertyDescriptor) { -// const original = descriptor.value; -// descriptor.value = function (...args: string[]) { -// let filterResult = args.map((str) => { -// let tempStr = str -// FILTER_KEYS.forEach((filterKey) => tempStr = tempStr.replace(filterKey, "**")) -// return tempStr -// }); -// const result = original.call(this, ...filterResult); -// return result; -// }; -// } - -/** - * Basic log class - */ -export default class Log { - /** - * Outputs debug-level logs. - * - * @param tag Identifies the log tag. - * @param format Indicates the log format string. - * @param args Indicates the log parameters. - * @since 7 - */ - static d(tag: string, format: string, ...args: ESObject[]) { - if (Log.isLoggable(HiLog.LogLevel.DEBUG)) { - HiLog.debug(DOMAIN, TAG, tag + SYMBOL + format, args); - } - } - - /** - * Outputs info-level logs. - * - * @param tag Identifies the log tag. - * @param format Indicates the log format string. - * @param args Indicates the log parameters. - * @since 7 - */ - static i(tag: string, format: string, ...args: ESObject[]) { - if (Log.isLoggable(HiLog.LogLevel.INFO)) { - HiLog.info(DOMAIN, TAG, tag + SYMBOL + format, args); - } - } - - /** - * Outputs warning-level logs. - * - * @param tag Identifies the log tag. - * @param format Indicates the log format string. - * @param args Indicates the log parameters. - * @since 7 - */ - static w(tag: string, format: string, ...args: ESObject[]) { - if (Log.isLoggable(HiLog.LogLevel.WARN)) { - HiLog.warn(DOMAIN, TAG, tag + SYMBOL + format, args); - } - } - - /** - * Outputs error-level logs. - * - * @param tag Identifies the log tag. - * @param format Indicates the log format string. - * @param args Indicates the log parameters. - * @since 7 - */ - static e(tag: string, format: string, ...args: ESObject[]) { - if (Log.isLoggable(HiLog.LogLevel.ERROR)) { - HiLog.error(DOMAIN, TAG, tag + SYMBOL + format, args); - } - } - - /** - * Outputs fatal-level logs. - * - * @param tag Identifies the log tag. - * @param format Indicates the log format string. - * @param args Indicates the log parameters. - * @since 7 - */ - static f(tag: string, format: string, ...args: ESObject[]) { - if (Log.isLoggable(HiLog.LogLevel.FATAL)) { - HiLog.fatal(DOMAIN, TAG, tag + SYMBOL + format, args); - } - } - - /** - * Checks whether logs of the specified tag, and level can be printed. - * - * @param tag Identifies the log tag. - * @param level log level - * @since 7 - */ - private static isLoggable(level: HiLog.LogLevel): boolean { - return HiLog.isLoggable(DOMAIN, TAG, level); - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/MessageChannelUtils.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/MessageChannelUtils.ets deleted file mode 100644 index 1899f74069a24a3e250378b11ac1c9492f03b8f3..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/MessageChannelUtils.ets +++ /dev/null @@ -1,25 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import BasicMessageChannel from '../plugin/common/BasicMessageChannel'; -import { BinaryMessenger } from '../plugin/common/BinaryMessenger'; -import StringUtils from './StringUtils'; - -export default class MessageChannelUtils { - static resizeChannelBuffer(messenger: BinaryMessenger, channel: string, newSize: number) { - const dataStr = `resize\r${channel}\r${newSize}` - messenger.send(BasicMessageChannel.CHANNEL_BUFFERS_CHANNEL, StringUtils.stringToArrayBuffer(dataStr)); - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/PathUtils.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/PathUtils.ets deleted file mode 100644 index 691ea0f360b40adb266bde566c2f66292a2aa0ff..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/PathUtils.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ -import common from '@ohos.app.ability.common'; -import fs from '@ohos.file.fs'; -import Log from './Log'; - -/** - * ohos路径获取工具 - */ -const TAG: string = "PathUtils"; - -export default class PathUtils { - static getFilesDir(context: common.Context): string { - return context.filesDir; - } - - static getCacheDirectory(context: common.Context): string { - return context.cacheDir; - } - - static getDataDirectory(context: common.Context): string { - const name = "flutter"; - const flutterDir = context.filesDir + "/" + name; - if (!fs.accessSync(flutterDir)) { - try { - fs.mkdirSync(flutterDir); - } catch (err) { - Log.e(TAG, "mkdirSync failed err:" + err); - return null; - } - } - return flutterDir; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/StringUtils.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/StringUtils.ets deleted file mode 100644 index 595f870a3360cb140dbb0f92a003c85c462d28f0..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/StringUtils.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import util from '@ohos.util' - -/** - * 默认字符串工具 - */ -export default class StringUtils { - static stringToArrayBuffer(str: string): ArrayBuffer { - let textEncoder = new util.TextEncoder("utf-8"); - return textEncoder.encodeInto(str).buffer; - } - - static arrayBufferToString(buffer: ArrayBuffer): string { - let textDecoder = util.TextDecoder.create('utf-8', { ignoreBOM : true }) - return textDecoder.decode(new Uint8Array(buffer)) - } - - static isNotEmpty(str: string): boolean { - return str != null && str.length > 0; - } - - static isEmpty(str: string): boolean { - return (!str) || str.length == 0; - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/ToolUtils.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/ToolUtils.ets deleted file mode 100644 index c3879f4a40ea307f7491a4808ad3b816cc98b13e..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/ToolUtils.ets +++ /dev/null @@ -1,24 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export default class ToolUtils { - static isObj(object: Object): boolean { - return object && typeof (object) == 'object'; - } - - static implementsInterface(obj: ESObject, method: string): boolean { - return Reflect.has(obj, method) && typeof obj[method] === 'function' - } -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/TraceSection.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/TraceSection.ets deleted file mode 100644 index 3caaadea7aa0cb84be3542be9c4595139cd25af4..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/util/TraceSection.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import hiTraceMeter from '@ohos.hiTraceMeter' - -export class TraceSection { - - static taskId: number = 1; - - private static cropSectionName(sectionName: string): string { - return sectionName.length < 124 ? sectionName : sectionName.substring(0, 124) + "..."; - } - - /** - * Wraps Trace.beginSection to ensure that the line length stays below 127 code units. - * - * @param sectionName The string to display as the section name in the trace. - */ - public static begin(sectionName: string): void { - hiTraceMeter.startTrace(TraceSection.cropSectionName(sectionName), TraceSection.taskId++); - } - - /** Wraps Trace.endSection. */ - public static end(sectionName: string): void { - hiTraceMeter.finishTrace(TraceSection.cropSectionName(sectionName), TraceSection.taskId); - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/AccessibilityBridge.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/AccessibilityBridge.ets deleted file mode 100644 index 0e08f41fe9171658365b4e2c806b075807ddc423..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/AccessibilityBridge.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export default class AccessibilityBridge { - constructor(){ - - } -} - -export enum Action { - TAP = 1 << 0, - LONG_PRESS = 1 << 1, - SCROLL_LEFT = 1 << 2, - SCROLL_RIGHT = 1 << 3, - SCROLL_UP = 1 << 4, - SCROLL_DOWN = 1 << 5, - INCREASE = 1 << 6, - DECREASE = 1 << 7, - SHOW_ON_SCREEN = 1 << 8, - MOVE_CURSOR_FORWARD_BY_CHARACTER = 1 << 9, - MOVE_CURSOR_BACKWARD_BY_CHARACTER = 1 << 10, - SET_SELECTION = 1 << 11, - COPY = 1 << 12, - CUT = 1 << 13, - PASTE = 1 << 14, - DID_GAIN_ACCESSIBILITY_FOCUS = 1 << 15, - DID_LOSE_ACCESSIBILITY_FOCUS = 1 << 16, - CUSTOM_ACTION = 1 << 17, - DISMISS = 1 << 18, - MOVE_CURSOR_FORWARD_BY_WORD = 1 << 19, - MOVE_CURSOR_BACKWARD_BY_WORD = 1 << 20, - SET_NEXT = 1 << 21, -}; \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets deleted file mode 100644 index 1c5f696e9fc0fbb279c4e3b854fe14def41c96e5..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicView.ets +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import matrix4 from '@ohos.matrix4'; -import Log from '../../util/Log'; - -/** - * Dynamic View creation - * from a recursive data structure - * - * exported @Component: DynamicView - * exported view model classes: - * - DVModelContainer - * - DVModel - * - DVModelParameters - * - DVModelEvents - * - DVModelChildren - * - * The purpose of exporting the DVModel classes - * is to make them available to the converter from - * JD's XML format and the expression parser. These - * components are expected to generate and update the - * DVModel. - * - * An application written by JS should only import - * DynamicView, DVModelContainer to be used in their own ArkUI - * container view. - */ - -/** - * View Model classes - */ - -@Observed -export class DVModelParameters extends Object { - /* empty, just get any instance wrapped inside an ObservedObject - with the help of the decoration */ -} - -@Observed -export class DVModelEvents extends Object { - /* empty, just get any instance wrapped inside an ObservedObject - with the help of the decoration */ -} - -@Observed -export class DVModelChildren extends Array { - /* empty, just get any instance wrapped inside an ObservedObject - with the help of the decoration */ -} - -let nextId: number = 1; - -@Observed -export class DVModel { - id_: number; - compType: string; - params: DVModelParameters; - events: DVModelEvents; - children: DVModelChildren; - builder: ESObject; - - constructor(compType: string, params: DVModelParameters, events: DVModelEvents, children: DVModelChildren, builder?: ESObject) { - this.id_ = nextId++; - this.compType = compType; - this.params = params ?? new DVModelParameters; - this.events = events; - this.children = children; - this.builder = builder; - } - - public getLayoutParams(): DVModelParameters { - return this.params; - } -} - -// includes the root DVModel objects. -export class DVModelContainer { - model: DVModel; - - constructor(model: DVModel) { - this.model = model; - } -} - -/** - DynamicView is the @Component that does all the work: - - The following 4 features are the key solution elements for dynamic View - construction and update: - - 1. The if statement decides which framework component to create. - We can not use a factory function here, because that would requite calling - a regular function inside build() or a @Builder function. - - 2. Take note of the @Builder for Row, Column containers: - These functions create DynamicView Views inside a DynamicView - view. This behaviour is why we talk about DynamicView as a 'recursive' View. - All @Builder functions are member functions of the DynamicView @Component to - retain access ('this.xyz') to its decorated state variables. - - 3. The @Extend functions execute attribute and event handler registration functions - for all attributes and events permissable on the framework component, irrespective - if DVModelParameters or DVModelEvents objects includes a value or not. If not - the attribute or event is set to 'undefined' by intention. This is required to unset - any previously set value. - - 4. The scope ('this') of any lambda registered as an event hander function, e.g. for onClick, - is the @Component, in which the DVModel object is initialized. This said, it is advised to initialize - the DVModel object in the @Component that is parent to outmost DynamicView. Thereby, - any event handler function is able to mutate decorated state variables of that @Component - - */ - -@Component -export struct DynamicView { - @ObjectLink model: DVModel; - @ObjectLink children: DVModelChildren; - @ObjectLink params: DVModelParameters; - @ObjectLink events: DVModelEvents; - @BuilderParam customBuilder?: ($$: BuilderParams) => void; - - - getParams: (params: DVModelParameters, element: string) => string | ESObject = (params: DVModelParameters, element: string): string | ESObject => { - let params2 = params as Record; - return params2[element]; - } - - getEvents: (events: DVModelEvents, element: string) => ESObject = (events: DVModelEvents, element: string): ESObject => { - let events2 = events as Record; - return events2[element]; - } - /* - we use this @Styles member function to set all common attributes and event handlers - and set component specific attribute and event handler functions in the @Builder function - */ - @Styles common_attrs() { - .width(this.getParams(this.params, "width")) - .height(this.getParams(this.params, "height")) - .backgroundColor(this.getParams(this.params, "backgroundColor")) - .onClick(this.getEvents(this.events, "onClick")) - .margin({ - left: this.getParams(this.params, "marginLeft"), - right: this.getParams(this.params, "marginRight"), - top: this.getParams(this.params, "marginTop"), - bottom: this.getParams(this.params, "marginBottom") - }) - .onTouch(this.getEvents(this.events, "onTouch")) - .onFocus(this.getEvents(this.events, "onFocus")) - .onBlur(this.getEvents(this.events, "onBlur")) - .translate({ - x: this.getParams(this.params, "translateX"), - y: this.getParams(this.params, "translateY"), - z: this.getParams(this.params, "translateZ") - }) - .transform(this.getParams(this.params, "matrix")) - .direction(this.getParams(this.params, "direction")) - } - - @Styles clip_attrs() { - .clip(this.getParams(this.params, "rectWidth") ? new Rect({ - width: this.getParams(this.params, "rectWidth"), - height: this.getParams(this.params, "rectHeight"), - radius: this.getParams(this.params, "rectRadius") - }) : null) - .clip(this.getParams(this.params, "pathWidth") ? new Path({ - width: this.getParams(this.params, "pathWidth"), - height: this.getParams(this.params, "pathHeight"), - commands: this.getParams(this.params, "pathCommands") - }) : null) - } - - @Builder buildChildren() { - ForEach(this.children, - (child: ESObject) => { - DynamicView({ - model: child as DVModel, - params: child.params, - events: child.events, - children: child.children, - customBuilder: child.builder - }) - }, - (child: ESObject) => `${child.id_}` - ) - } - - @Builder buildRow() { - Row() { - this.buildChildren() - } - .common_attrs() - .clip_attrs() - } - - @Builder buildColumn() { - Column() { - this.buildChildren() - } - .common_attrs() - .clip_attrs() - } - - @Builder buildStack() { - Stack() { - this.buildChildren() - } - .common_attrs() - .clip_attrs() - .alignContent(this.getParams(this.params, "alignContent")) - } - - @Builder buildText() { - Text(`${this.getParams(this.params, "value")}`) - .common_attrs() - .fontColor(this.getParams(this.params, "fontColor")) - } - - @Builder buildImage() { - Image(this.getParams(this.params, "src")) - .common_attrs() - } - - // Button with label - @Builder buildButton() { - Button(this.getParams(this.params, "value")) - .common_attrs() - } - - @Builder buildCustom() { - if (this.customBuilder) { - this.customBuilder(new BuilderParams(this.params)); - } - } - - build() { - if (this.model.compType == "Column") { - this.buildColumn() - } else if (this.model.compType == "Row") { - this.buildRow() - } else if (this.model.compType == "Stack") { - this.buildStack() - } else if (this.model.compType == "Text") { - this.buildText() - } else if (this.model.compType == "Image") { - this.buildImage() - } else if (this.model.compType == "Button") { - this.buildButton() - } else { - this.buildCustom() - } - } -} - -export class BuilderParams { - params: DVModelParameters; - - constructor(params: DVModelParameters) { - this.params = params; - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicViewJson.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicViewJson.ets deleted file mode 100644 index 40b05299e8d204b9242b99a5cb1dfb7d1068b2b3..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/DynamicView/dynamicViewJson.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { DVModel, DVModelParameters, DVModelEvents, DVModelChildren } from "./dynamicView"; - -export function createDVModelFromJson(json: Object): DVModel { - - /* private use helper functions */ - let createChildrenFrom: (children: Array) => DVModelChildren = (children: Array): DVModelChildren => { - let result = new DVModelChildren(); - if (Array.isArray(children)) { - (children as Array).forEach(child => { - const childView = createDVModelFromJson(child); - if (childView != undefined) { - result.push(childView); - } - }); - } - return result; - } - - let setParams: (result: DVModelParameters | DVModelEvents, key: ESObject, element: Object ) => void = (result: DVModelParameters, key: ESObject, element: ESObject): void => { - let newResult = result as Record; - newResult[key] = element[key]; - } - - let createAttributesFrom: (attributes: Object) => DVModelParameters = (attributes: Object): DVModelParameters => { - let result = new DVModelParameters(); - if ((typeof attributes == "object") && (!Array.isArray(attributes))) { - Object.keys(attributes).forEach(k => {setParams(result, k, attributes)}); - } - return result; - } - - let createEventsFrom: (events: Object) => DVModelEvents = (events: Object): DVModelEvents => { - let result = new DVModelEvents(); - if ((typeof events == "object") && (!Array.isArray(events))) { - Object.keys(events).forEach(k => {setParams(result, k, events)}); - } - return result; - } - - if (typeof json !== 'object') { - console.error("createDVModelFromJson: input is not JSON"); - return new DVModel("", "", "", createChildrenFrom([])); - } - - let jsonObject = json as Record; - return new DVModel( - jsonObject["compType"], - createAttributesFrom(jsonObject["attributes"]), - createEventsFrom(jsonObject["events"]), - createChildrenFrom(jsonObject["children"]), - jsonObject["build"] - ); -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterCallbackInformation.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterCallbackInformation.ets deleted file mode 100644 index 26202727fac9b327d8a4a024667ef30ea067a6e8..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterCallbackInformation.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import FlutterNapi from '../embedding/engine/FlutterNapi'; - -export class FlutterCallbackInformation { - callbackName: string; - callbackClassName: string; - callbackLibraryPath: string; - - /** - * Get callback information for a given handle. - * - * @param handle the handle for the callback, generated by `PluginUtilities.getCallbackHandle` in - * `dart:ui`. - * @return an instance of FlutterCallbackInformation for the provided handle. - */ - static lookupCallbackInformation(handle: number): FlutterCallbackInformation | null { - return FlutterNapi.nativeLookupCallbackInformation(handle); - } - - constructor(callbackName: string, callbackClassName: string, callbackLibraryPath: string) { - this.callbackName = callbackName; - this.callbackClassName = callbackClassName; - this.callbackLibraryPath = callbackLibraryPath; - } -} diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterNativeView.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterNativeView.ets deleted file mode 100644 index 9138ad728502e49e675e69e1fd533d80ad7016bc..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterNativeView.ets +++ /dev/null @@ -1,137 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -import common from '@ohos.app.ability.common'; -import DartExecutor from '../embedding/engine/dart/DartExecutor'; -import { EngineLifecycleListener } from '../embedding/engine/FlutterEngine'; -import FlutterNapi from '../embedding/engine/FlutterNapi'; -import Log from '../util/Log'; -import FlutterPluginRegistry from '../app/FlutterPluginRegistry'; -import FlutterRunArguments from './FlutterRunArguments'; -import { FlutterView } from './FlutterView'; - -const TAG: string = "FlutterNativeView"; - -export default class FlutterNativeView { - private mContext: common.Context; - private mPluginRegistry: FlutterPluginRegistry; - private mFlutterNapi: FlutterNapi; - private dartExecutor: DartExecutor; - private mFlutterView: FlutterView; - private applicationIsRunning: boolean; - - constructor(context: common.Context, isBackgroundView?: boolean) { - if (isBackgroundView) { - Log.i(TAG, "isBackgroundView is no longer supported and will be ignored"); - } - this.mContext = context; - this.mPluginRegistry = new FlutterPluginRegistry(); - this.mFlutterNapi = new FlutterNapi(); - //this.mFlutterNapi.addIsDisplayingFlutterUiListener(this.flutterUiDisplayListener); - this.dartExecutor = new DartExecutor(this.mFlutterNapi, this.mContext.resourceManager); - this.mFlutterNapi.addEngineLifecycleListener(new EngineLifecycleListenerImpl(this.mFlutterView, this.mPluginRegistry)); - this.attach(this.mFlutterNapi, this.dartExecutor); - this.assertAttached(this.mFlutterNapi); - } - - attach(flutterNapi: FlutterNapi, dartExecutor: DartExecutor): void { - flutterNapi.attachToNative(); - dartExecutor.onAttachedToNAPI(); - } - - assertAttached(flutterNapi: FlutterNapi): void { - if (!this.isAttached(flutterNapi)) { - throw new Error('Platform View is not attached'); - } - } - - isAttached(flutterNapi: FlutterNapi): boolean { - return flutterNapi.isAttached(); - } - - detachFromFlutterView(): void { - this.mPluginRegistry.detach(); - this.mFlutterView = null; - } - - destroy(): void { - this.mPluginRegistry.destroy(); - this.dartExecutor.onDetachedFromNAPI(); - this.mFlutterView = null; - //this.mFlutterNapi.removeIsDisplayingFlutterUiListener(this.flutterUiDisplayListener); - this.applicationIsRunning = false; - } - - getDartExecutor(): DartExecutor { - return this.dartExecutor; - } - - getPluginRegistry(): FlutterPluginRegistry { - return this.mPluginRegistry; - } - - attachViewAndAbility(flutterView: FlutterView, context: common.Context): void { - this.mFlutterView = flutterView; - this.mPluginRegistry.attach(flutterView, context); - } - - runFromBundle(args: FlutterRunArguments): void { - if (args.entrypoint == null) { - throw new Error("an entrypoint must be specific"); - } - this.assertAttached(this.mFlutterNapi); - if (this.applicationIsRunning) { - throw new Error("this flutter engine instance is already running an application"); - } - this.mFlutterNapi.runBundleAndSnapshotFromLibrary(args.bundlePath, args.entrypoint, args.libraryPath, this.mContext.resourceManager, null); - this.applicationIsRunning = true; - } - - isApplicationRunning(): boolean { - return this.applicationIsRunning; - } - - // getObservatoryUri(): string { - // return this.mFlutterNapi.getObservatoryUri(); - // } -} - -class EngineLifecycleListenerImpl implements EngineLifecycleListener { - private flutterView: FlutterView; - private pluginRegistry: FlutterPluginRegistry; - - onPreEngineRestart(): void { - if (this.flutterView != null) { - //this.flutterView.resetAccessibilityTree(); - } - - if (this.pluginRegistry == null) { - return; - } - - this.pluginRegistry.onPreEngineRestart(); - } - - onEngineWillDestroy(): void { - - } - - constructor(flutterView: FlutterView, pluginRegistry: FlutterPluginRegistry) { - this.flutterView = flutterView; - this.pluginRegistry = pluginRegistry; - } -} - - diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterRunArguments.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterRunArguments.ets deleted file mode 100644 index d17ec28d1fdc6237ee486362751ee25e58590887..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterRunArguments.ets +++ /dev/null @@ -1,20 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export default class FlutterRunArguments { - public bundlePath: string; - public entrypoint: string; - public libraryPath: string; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterView.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterView.ets deleted file mode 100644 index cf38a74159eb41c2ca4b6ede7f9e04e0cc66bf5a..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/FlutterView.ets +++ /dev/null @@ -1,18 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export class FlutterView { - -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/TextureRegistry.ets b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/TextureRegistry.ets deleted file mode 100644 index a37ab971b769320021695970ff20e2cac62d880b..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/ets/view/TextureRegistry.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -export interface TextureRegistry { - - createSurfaceTexture(): SurfaceTextureEntry; - registerSurfaceTexture(): SurfaceTextureEntry; - - onTrimMemory(level: number) : void; -} - -interface SurfaceTextureEntry { - id(): number; - - release(): void; -} - -interface OnFrameConsumedListener { - onFrameConsumed(): void; -} - -interface OnTrimMemoryListener { - onTrimMemory(level: number) : void; -} \ No newline at end of file diff --git a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/module.json b/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/module.json deleted file mode 100644 index 776528edd60659215f5f3c660347eccb2dc4bc24..0000000000000000000000000000000000000000 --- a/sqflite/ohos/sqflite/oh_modules/.ohpm/@ohos+flutter_ohos@9dd5beymeoxhsmtiwsbnrq8f9h8=/oh_modules/@ohos/flutter_ohos/src/main/module.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "app": { - "bundleName": "com.example.config", - "debug": true, - "versionCode": 1000000, - "versionName": "1.0.0", - "minAPIVersion": 40000010, - "targetAPIVersion": 40000010, - "apiReleaseType": "Release", - "compileSdkVersion": "4.0.0.40", - "compileSdkType": "HarmonyOS" - }, - "module": { - "name": "flutter", - "type": "har", - "deviceTypes": [ - "default" - ] - } -}