Skip to content

Commit

Permalink
Merge pull request #753 from anthonycr/dev
Browse files Browse the repository at this point in the history
Version 5.0.1
  • Loading branch information
anthonycr authored Sep 2, 2019
2 parents 88313b7 + 013224b commit 7fd1ef5
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "i2p.android.base"]
path = i2p.android.base
url = https://github.com/i2p/i2p.android.base
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Change Log
==========

Version 5.0.1 *(2019-09-01)*
----------------------------
- 64 bit I2P support

Version 5.0.0 *(2019-08-31)*
----------------------------
- Minimum SDK Version 19
Expand Down
6 changes: 5 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ dependencies {
implementation 'com.anthonycr.grant:permissions:1.1.2'

// proxy support
implementation 'net.i2p.android:client:0.8'
// TODO: Replace I2P submodule with version 0.9.41 when it is available on maven
// implementation 'net.i2p.android:client:0.9.40'
// implementation 'net.i2p.android:helper:0.9.5'
implementation project(':client')
implementation project(':helper')

implementation 'com.squareup.okhttp3:okhttp:3.12.3'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ class SuggestionsAdapter(

fun input(): Observable<CharSequence> = publishSubject.hide()

override fun performFiltering(constraint: CharSequence): FilterResults {
if (constraint.trim().isEmpty()) {
override fun performFiltering(constraint: CharSequence?): FilterResults {
if (constraint?.isBlank() != false) {
return FilterResults()
}
publishSubject.onNext(constraint)
publishSubject.onNext(constraint.trim())

return FilterResults().apply { count = 1 }
}
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ext {
targetSdkVersion = 28
buildToolsVersion = '28.0.3'

versionName = '5.0.0'
versionCode_lite = 99
versionCode_plus = 97
versionName = '5.0.1'
versionCode_lite = 100
versionCode_plus = 98
}
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
kotlin.incremental=false
android.useAndroidX=true
android.enableJetifier=true

# TODO: Remove when I2P 0.9.41 or later is available via maven
I2P_VERSION=0.9.41
ANDROID_BUILD_TARGET_SDK_VERSION=28
ANDROID_BUILD_SDK_VERSION=28
1 change: 1 addition & 0 deletions gradle/maven-push.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// Empty file to fix I2P build
1 change: 1 addition & 0 deletions i2p.android.base
Submodule i2p.android.base added at f3d1e8
9 changes: 8 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
include ':app'
include ':app'

// TODO: Remove :client and :helper projects when 0.9.41 or later of I2P is available on maven
include ':client'
project(':client').projectDir = new File('i2p.android.base/lib/client')

include ':helper'
project(':helper').projectDir = new File('i2p.android.base/lib/helper')

0 comments on commit 7fd1ef5

Please sign in to comment.