Skip to content

Commit 3d4a6d9

Browse files
authored
Merge pull request #2781 from kiwix/develop
Merge develop to master for 3.4.6
2 parents d696659 + bb9331d commit 3d4a6d9

File tree

116 files changed

+1177
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1177
-201
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
coverageReport:
1616
strategy:
1717
matrix:
18-
api-level: [21, 21]
18+
api-level: [21, 21, 30]
1919
fail-fast: false
2020
runs-on: macOS-latest
2121
steps:

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
instrumentation_tests:
1111
strategy:
1212
matrix:
13-
api-level: [21, 22, 23, 24, 25, 27, 28]
13+
api-level: [21, 22, 23, 24, 25, 27, 28, 30]
1414
fail-fast: false
1515
runs-on: macOS-latest
1616
steps:

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
3.4.6
2+
* FIX: Added MANAGE_EXTERNAL_STORAGE permission for Android 11 and later
3+
* FIX: Hide "Download over wifi settings" on custom apps
4+
* FIX: Hide SD card access setting on custom apps
5+
* FIX: Launch screen icon updated
6+
* FIX: Broken "Get content" launcher icon
7+
* NEW: Better hide virtual keyboard in library
8+
19
3.4.5
210
NEW: Supports Android 11
311
NEW: Hotspot socket address better visible, clickable and shareable

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Kiwix Android is written in [Kotlin](https://kotlinlang.org/) (with a few old
1717
pieces in Java).
1818

1919
[![Build Status](https://github.com/kiwix/kiwix-android/workflows/CI/badge.svg?query=branch%3Adevelop+workflow%3ANightly)](https://github.com/kiwix/kiwix-android/actions?query=workflow%3ANightly+branch%3Adevelop)
20+
[![Nightly](https://github.com/kiwix/kiwix-android/actions/workflows/nightly.yml/badge.svg)](https://github.com/kiwix/kiwix-android/actions/workflows/nightly.yml)
2021
[![codecov](https://codecov.io/gh/kiwix/kiwix-android/branch/develop/graph/badge.svg)](https://codecov.io/gh/kiwix/kiwix-android)
2122
[![CodeFactor](https://www.codefactor.io/repository/github/kiwix/kiwix-android/badge)](https://www.codefactor.io/repository/github/kiwix/kiwix-android)
2223
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ apply(from = rootProject.file("jacoco.gradle"))
1111
ext {
1212
set("versionMajor", 3)
1313
set("versionMinor", 4)
14-
set("versionPatch", 5)
14+
set("versionPatch", 6)
1515
}
1616

1717
fun generateVersionName() = "${ext["versionMajor"]}.${ext["versionMinor"]}.${ext["versionPatch"]}"

app/detekt_baseline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ID>MagicNumber:ShareFiles.kt$ShareFiles$24</ID>
1212
<ID>MagicNumber:ZimManageViewModel.kt$ZimManageViewModel$5</ID>
1313
<ID>MagicNumber:ZimManageViewModel.kt$ZimManageViewModel$500</ID>
14-
<ID>MagicNumber:ZimHostFragment.kt$ZimHostFragment$4</ID>
14+
<ID>NestedBlockDepth:LocalLibraryFragment.kt$LocalLibraryFragment$checkPermissions</ID>
1515
<ID>NestedBlockDepth:PeerGroupHandshake.kt$PeerGroupHandshake$readHandshakeAndExchangeMetaData</ID>
1616
<ID>NestedBlockDepth:ReceiverHandShake.kt$ReceiverHandShake$exchangeFileTransferMetadata</ID>
1717
<ID>PackageNaming:AvailableSpaceCalculator.kt$package org.kiwix.kiwixmobile.zim_manager.library_view</ID>

app/src/androidTest/java/org/kiwix/kiwixmobile/testutils/Matcher.java

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Kiwix Android
3+
* Copyright (c) 2021 Kiwix <android.kiwix.org>
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*
17+
*/
18+
19+
package org.kiwix.kiwixmobile.testutils
20+
21+
import android.view.View
22+
import android.view.ViewGroup
23+
import org.hamcrest.Description
24+
import org.hamcrest.Matcher
25+
import org.hamcrest.TypeSafeMatcher
26+
27+
class Matcher {
28+
companion object {
29+
@JvmStatic
30+
fun childAtPosition(
31+
parentMatcher: Matcher<View?>,
32+
position: Int
33+
): Matcher<View> {
34+
return object : TypeSafeMatcher<View>() {
35+
override fun describeTo(description: Description) {
36+
description.appendText("Child at position $position in parent ")
37+
parentMatcher.describeTo(description)
38+
}
39+
40+
public override fun matchesSafely(view: View): Boolean {
41+
val parent = view.parent
42+
return parent is ViewGroup && parentMatcher.matches(parent) && view == parent.getChildAt(
43+
position
44+
)
45+
}
46+
}
47+
}
48+
}
49+
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
77
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
88
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
9+
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
10+
tools:ignore="ScopedStorage" />
911

1012
<queries>
1113
<intent>

app/src/main/java/org/kiwix/kiwixmobile/language/LanguageFragment.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import org.kiwix.kiwixmobile.R
3737
import org.kiwix.kiwixmobile.cachedComponent
3838
import org.kiwix.kiwixmobile.core.base.BaseActivity
3939
import org.kiwix.kiwixmobile.core.base.BaseFragment
40+
import org.kiwix.kiwixmobile.core.extensions.closeKeyboard
4041
import org.kiwix.kiwixmobile.core.extensions.viewModel
4142
import org.kiwix.kiwixmobile.core.main.CoreMainActivity
4243
import org.kiwix.kiwixmobile.core.utils.SimpleTextListener
@@ -133,6 +134,7 @@ class LanguageFragment : BaseFragment() {
133134
return when (item.itemId) {
134135
R.id.menu_language_save -> {
135136
languageViewModel.actions.offer(Action.SaveAll)
137+
closeKeyboard()
136138
true
137139
}
138140
else -> super.onOptionsItemSelected(item)

0 commit comments

Comments
 (0)