Skip to content

Commit

Permalink
Merge pull request #116 from dlyongemallo/master
Browse files Browse the repository at this point in the history
version 2021.09.27a (561)
  • Loading branch information
De7vID authored Sep 27, 2021
2 parents a9c6e05 + eb711a4 commit 449441c
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CHANGELOG

2021-09-27: Target to API 30 and fix TTS query permission. Fix the "xifan hol" q to Q search bug.
2021-08-09: New vocabulary from qep'a' 2021. Allow user-triggered database update over metered Internet.
2021-04-13: Fix issue where attributes were not displayed in entry title if {pIqaD} is enabled.
2021-04-09: Treat epithets as beings capable of language for the purposes of analysis.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
// We are targeting only Marshmallow and above.
minSdkVersion 23
targetSdkVersion 30
versionCode 559
versionName "2021.09.22b"
versionCode 561
versionName "2021.09.27a"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<!-- Needed in API 30 to query the TTS. -->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</queries>

<supports-screens android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public class KlingonContentDatabase {

// This should be kept in sync with the version number in the data/VERSION
// file used to generate the database which is bundled into the app.
private static final int BUNDLED_DATABASE_VERSION = 202108090;
private static final int BUNDLED_DATABASE_VERSION = 202109270;

// Metadata about the installed database, and the updated database, if any.
public static final String KEY_INSTALLED_DATABASE_VERSION = "installed_database_version";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2021 De'vID jonpIn (David Yonge-Mallo)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.tlhInganHol.android.klingonassistant;

import org.junit.Test;

import android.content.Context;
import android.database.Cursor;

import static org.junit.Assert.*;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

/**
* Unit tests for KlingonContentDatabase logic.
*/
public class KlingonContentDatabaseTest {

@Test
public void klingonContentDatabase_overrideXifanHol() throws Exception {
KlingonContentDatabase database = new KlingonContentDatabase(null);
Cursor result = database.getEntryMatches("+xifan hol");
assertEquals(result.getCount(), 0);
}

}
2 changes: 1 addition & 1 deletion data

0 comments on commit 449441c

Please sign in to comment.