Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ android {
applicationId 'org.proninyaroslav.libretorrent'
minSdkVersion 24
targetSdkVersion 31
versionCode 25
versionCode 26
/*
* Convection:
* major.minor.[revision][-some_info]
*/
versionName '3.4'
versionName '3.5-beta01'
vectorDrawables.useSupportLibrary true
multiDexEnabled true

Expand Down Expand Up @@ -151,7 +151,7 @@ dependencies {
implementation "ch.acra:acra-mail:$ACRA_VERSION"

/* libtorrent wrapper */
def LIBTORRENT4J_VERSION = '2.0.5-24'
def LIBTORRENT4J_VERSION = '2.0.5-26-RC1'
implementation "org.libtorrent4j:libtorrent4j:$LIBTORRENT4J_VERSION"
implementation "org.libtorrent4j:libtorrent4j-android-arm:$LIBTORRENT4J_VERSION"
implementation "org.libtorrent4j:libtorrent4j-android-arm64:$LIBTORRENT4J_VERSION"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,13 @@ public void start()
SessionParams params = loadSettings();
SettingsPack settingsPack = params.getSettings();
settings_pack sp = settingsPack.swig();

// Internally set the session to use a simple posix disk I/O back-end, used
// for systems that don't have a 64-bit virtual address space or don't support
// memory mapped files. This option only to use in particular situations, like
// Android devices with faulty drivers.
params.setPosixDiskIO();

sp.set_str(settings_pack.string_types.dht_bootstrap_nodes.swigValue(), dhtBootstrapNodes());
sp.set_bool(settings_pack.bool_types.enable_ip_notifier.swigValue(), false);
sp.set_int(settings_pack.int_types.alert_queue_size.swigValue(), 5000);
Expand Down