-
Notifications
You must be signed in to change notification settings - Fork 199
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
Regex search #3287
base: develop
Are you sure you want to change the base?
Regex search #3287
Conversation
@@ -142,7 +143,7 @@ android { | |||
/** these config values override those in AndroidManifest.xml. Can also set versionCode and versionName */ | |||
defaultConfig { | |||
applicationId = applicationIdStandard | |||
minSdk = 23 | |||
minSdk = 26 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What requires this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, I'll check what breaks if I put it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26): Lorg/tartarus/snowball/SnowballProgram;find_among([Lorg/tartarus/snowball/Among;I)I
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is rather conserning in my opinion. We will drop support from very big amount of mobile phones if we drop android 6 and 7. Maybe we need to release two versions, one for old phones and one for new phones if we will merge this...
- I will check and analyze play store statistics.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About 2% of our users are using Android versions 6 / 7 / 7.1.
/** can we enable the main menu search button | ||
*/ | ||
override val isSearchable: Boolean | ||
get() = try { //TODO allow japanese search - japanese bibles use smartcn which is not available | ||
!currentDocument!!.doesNotExist && "ja" != currentDocument!!.language.code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- todo: check japanese documents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I performed a quick check by copy-pasting part of the document and searching for it, which worked. But I don't speak/read Japanese, so I don't know if the results made any sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try to consult my friend chatgpt. He speaks japanese for sure 😊
|
|
@tuomas2 I have fixed all my open to-do's for this one. Let me know when you have finished the things you still wanted to check. Also, if you have feedback on my changes, let me know. |
Thank you! It's now on top of my TODO list, probably next month having better time... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file does not belong to this PR, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I did not mean to push that, indeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like identical to y1ot1nt1_chronological.properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing this.
|
Android Studio has apk analyzer with which it's quite easy to see what is taking up the space |
|
Leaving out these
will save some space. But still it's big. |
I wish those japanese / chinese analyzers could be bundled as an extension package. Could investigate that option. --> seem to be possible. Something like this:
So we could bundle these as add-on module. Need to build support for this in jsword/andbible. BUT. That is probably disallowed by Google. Instead should use Play Feature Delivery. Which probably won't work outside of Google Play-enabled devices. https://developer.android.com/guide/playcore/feature-delivery |
Can you @JJK96 try to figure out why it is crashing and fix it? |
Describe the pull request content
I added a regular expression search option.
To do this, I had to update Apache Lucene 5 major versions (from 3.6 to 8.11). I tested several languages and searching still works, however testing by native speakers might be necessary. Depends on AndBible/jsword#15. After merging, it might be necessary to invalidate the indexes for all documents.
Screenshots