Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jan 17, 2025
1 parent edbda9f commit af0380a
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 13 deletions.
3 changes: 2 additions & 1 deletion ohos/entry/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"webview_flutter_ohos": "file:../har/webview_flutter_ohos.har",
"package_info_plus": "file:../har/package_info_plus.har",
"flutter_nfc_kit": "file:../har/flutter_nfc_kit.har",
"path_provider_ohos": "file:../har/path_provider_ohos.har"
"path_provider_ohos": "file:../har/path_provider_ohos.har",
"sqlite3_flutter_libs": "file:../har/sqlite3_flutter_libs.har"
}
}
2 changes: 2 additions & 0 deletions ohos/entry/src/main/ets/plugins/GeneratedPluginRegistrant.ets
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { FlutterEngine, Log } from '@ohos/flutter_ohos';
import FlutterNfcKitPlugin from 'flutter_nfc_kit';
import PackageInfoPlugin from 'package_info_plus';
import PathProviderPlugin from 'path_provider_ohos';
import Sqlite3FlutterLibsPlugin from 'sqlite3_flutter_libs';
import UrlLauncherPlugin from 'url_launcher_ohos';
import WebViewFlutterPlugin from 'webview_flutter_ohos';

Expand All @@ -20,6 +21,7 @@ export class GeneratedPluginRegistrant {
flutterEngine.getPlugins()?.add(new FlutterNfcKitPlugin());
flutterEngine.getPlugins()?.add(new PackageInfoPlugin());
flutterEngine.getPlugins()?.add(new PathProviderPlugin());
flutterEngine.getPlugins()?.add(new Sqlite3FlutterLibsPlugin());
flutterEngine.getPlugins()?.add(new UrlLauncherPlugin());
flutterEngine.getPlugins()?.add(new WebViewFlutterPlugin());
} catch (e) {
Expand Down
3 changes: 2 additions & 1 deletion ohos/oh-package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"package_info_plus": "file:./har/package_info_plus.har",
"flutter_nfc_kit": "file:./har/flutter_nfc_kit.har",
"@ohos/flutter_module": "file:./entry",
"path_provider_ohos": "file:./har/path_provider_ohos.har"
"path_provider_ohos": "file:./har/path_provider_ohos.har",
"sqlite3_flutter_libs": "file:./har/sqlite3_flutter_libs.har"
}
}
22 changes: 12 additions & 10 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -637,21 +637,23 @@ packages:
source: hosted
version: "7.0.0"
sqlite3:
dependency: transitive
dependency: "direct overridden"
description:
name: sqlite3
sha256: "281b672749af2edf259fc801f0fcba092257425bcd32a0ce1c8237130bc934c7"
url: "https://pub.dev"
source: hosted
path: sqlite3
ref: "sqlite3-1.11.2-ohos"
resolved-ref: e50fc90ca1c0801d09e9f660b01abf03b77fbc02
url: "https://gitee.com/jiegec/fluttertpc_sqlite3.dart.git"
source: git
version: "1.11.2"
sqlite3_flutter_libs:
dependency: "direct main"
description:
name: sqlite3_flutter_libs
sha256: "7ae52b23366e5295005022e62fa093f64bfe190810223ea0ebf733a4cd140bce"
url: "https://pub.dev"
source: hosted
version: "0.5.26"
path: sqlite3_flutter_libs
ref: "sqlite3-1.11.2-ohos"
resolved-ref: e50fc90ca1c0801d09e9f660b01abf03b77fbc02
url: "https://gitee.com/jiegec/fluttertpc_sqlite3.dart.git"
source: git
version: "0.5.15"
sqlparser:
dependency: transitive
description:
Expand Down
13 changes: 12 additions & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ dependencies:
collection: ^1.17.0
cupertino_icons: ^1.0.0
drift: ^2.0.0
sqlite3_flutter_libs: <=0.5.26
sqlite3_flutter_libs:
git:
path: sqlite3_flutter_libs
url: https://gitee.com/jiegec/fluttertpc_sqlite3.dart.git
ref: sqlite3-1.11.2-ohos
path_provider:
git:
path: packages/path_provider/path_provider
Expand All @@ -39,6 +43,13 @@ dependencies:
url: https://gitee.com/openharmony-sig/flutter_plus_plugins.git
ndef: <=0.3.3

dependency_overrides:
sqlite3:
git:
path: sqlite3
url: https://gitee.com/jiegec/fluttertpc_sqlite3.dart.git
ref: sqlite3-1.11.2-ohos

dev_dependencies:
analyzer: ^5.0.0
lints: ^2.0.0
Expand Down

0 comments on commit af0380a

Please sign in to comment.