Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve iOS build #73

Merged
merged 1 commit into from
Dec 9, 2021
Merged

improve iOS build #73

merged 1 commit into from
Dec 9, 2021

Conversation

boyan01
Copy link
Contributor

@boyan01 boyan01 commented Dec 8, 2021

iOS 编译成静态库更方便一点(编译动态库还得签名啥的。

然后静态库可以用 sqlite3_auto_extension 来加载项目中 simple 相关的方法 。 https://stackoverflow.com/a/2484087/6258995

sqlite3_auto_extension((void (*)(void)) sqlite3_simple_init);

在编译的时候,我写了一些脚本。感觉会对这个项目有用,所以就提了一个 PR。(如果不需要的话,关了就好 ^_^/

另外在 ios 跑了一下,貌似基本问题不大。项目代码:MixinNetwork/flutter-plugins#34

截图

image

@wangfenjin
Copy link
Owner

非常感谢

@codecov
Copy link

codecov bot commented Dec 9, 2021

Codecov Report

Merging #73 (cf1e255) into master (85d61de) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #73   +/-   ##
=======================================
  Coverage   95.77%   95.77%           
=======================================
  Files           3        3           
  Lines         213      213           
=======================================
  Hits          204      204           
  Misses          9        9           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 85d61de...cf1e255. Read the comment docs.

@wangfenjin wangfenjin merged commit f3ecc6e into wangfenjin:master Dec 9, 2021
@wangfenjin wangfenjin mentioned this pull request Jan 20, 2022
@yugaoxiang
Copy link

iOS编译成静态库更方便一点(编译动态库还得签名啥啥。

然后库库可以sqlite3_auto_extension使用加载项目中相关的简单方法。 https://stackoverflow.com/a/2484087/6258995

sqlite3_auto_extension (( void (*)( void )) sqlite3_simple_init);

编译了一些脚本的时候,我推荐了这个项目,所以就一个PR。(如果不需要的话,关了就好了^_^

另外在ios跑了很短的代码,貌似基本问题不大。 项目:MixinNetwork/flutter-plugins#34

截图

你好,可以把你生产给iOS用的代码发我一下吗?我下载了你的flutter项目,在fts5里面只找到一个macos的目录,也没有找到fts相关的内容,谢谢。

@boyan01
Copy link
Contributor Author

boyan01 commented Jan 20, 2022

可以把你生产给iOS用的代码发我一下吗?

代码都在 MixinNetwork/flutter-plugins#34 中,暂未合入主分支。

网页地址: https://github.com/MixinNetwork/flutter-plugins/blob/fts5_simple/packages/fts5_simple/ios/Classes/Fts5SimplePlugin.mm

@yugaoxiang
Copy link

可以把你生产给iOS用的代码发我一下吗?

代码都在 MixinNetwork/flutter-plugins#34 中,暂未合入主分支。

网页地址: https://github.com/MixinNetwork/flutter-plugins/blob/fts5_simple/packages/fts5_simple/ios/Classes/Fts5SimplePlugin.mm

非常感谢,我找到了代码,我是不是只要把libsimple这几个文件导入项目中,然后创建的时候使用CREATE VIRTUAL TABLE t1 USING fts5(x, tokenize = "simple");就可以自动使用分词器了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants