...
 
Commits (36)

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="org.a11y.brltty.android"
android:versionCode="7"
android:versionName="@string/app_version"
>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.a11y.brltty.android"
android:versionCode="0"
android:versionName="@string/app_version"
>
<uses-sdk android:targetSdkVersion="21" />
<uses-sdk android:minSdkVersion="14" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:persistent="true"
>
android:label="@string/app_name"
android:icon="@drawable/braille_service"
android:persistent="true"
>
<service
android:name="BrailleService"
android:label="@string/app_name"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
>
android:name=".BrailleService"
android:label="@string/app_name"
android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE"
android:directBootAware="true"
>
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
<meta-data
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service"
android:name="android.accessibilityservice"
android:resource="@xml/accessibility_service"
/>
<intent-filter>
......@@ -46,10 +49,11 @@
</service>
<service
android:name=".InputService"
android:label="@string/input_service_name"
android:permission="android.permission.BIND_INPUT_METHOD"
>
android:name=".InputService"
android:label="@string/input_service_name"
android:permission="android.permission.BIND_INPUT_METHOD"
android:directBootAware="true"
>
<intent-filter>
<action android:name="android.view.InputMethod" />
......@@ -62,9 +66,32 @@
</service>
<activity
android:name="SettingsActivity"
android:label="Settings"
>
android:name=".ActionsActivity"
android:label="@string/app_name"
>
</activity>
<activity
android:name=".SettingsActivity"
android:label="@string/SETTINGS_SCREEN_MAIN"
>
</activity>
<activity
android:name=".AboutActivity"
android:label="@string/about_activity_label"
>
</activity>
<receiver
android:name=".HostMonitor"
android:exported="false"
>
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>
......@@ -36,6 +36,10 @@ speech-drivers: drivers-directory
screen-drivers: drivers-directory
$(INSTALL_DATA) $(BLD_TOP)$(DRV_DIR)/$(MOD_NAME)x?*.$(MOD_EXT) $(ANDROID_DRIVERS_DIRECTORY)
clean::
-rm -f -r $(ANDROID_TABLES_DIRECTORY)
-rm -f -r $(ANDROID_DRIVERS_DIRECTORY)
distclean::
-rm res/values/configured.xml
......@@ -15,3 +15,5 @@
# 'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target.
java.source=1.6
java.target=1.6
<?xml version="1.0" encoding="UTF-8" ?>
<project name="custom_rules" default="help">
<property name="custom.dir.top" location="../.." />
<target name="custom-get-version-string">
<exec
executable="${custom.dir.top}/getrevid"
outputproperty="custom.version.string"
>
<arg value="${custom.dir.top}" />
</exec>
</target>
<target name="custom-get-version-name" depends="custom-get-version-string">
<exec
executable="sed"
inputstring="${custom.version.string}"
outputproperty="custom.version.name"
>
<arg value="-e" />
<arg value="s/^[^-]*-//" />
<arg value="-e" />
<arg value="s/-g.*$//" />
</exec>
<echo>Version Name: ${custom.version.name}</echo>
</target>
<target name="custom-get-version-code" depends="custom-get-version-string">
<exec
executable="${custom.dir.top}/getrevid"
outputproperty="custom.version.code"
>
<arg value="-r" />
<arg value="${custom.version.string}" />
<arg value="-i" />
<arg value="${custom.dir.top}" />
</exec>
<echo>Version Code: ${custom.version.code}</echo>
</target>
<target name="custom-update-manifest" depends="custom-get-version-name, custom-get-version-code">
<exec executable="sed">
<arg value="-e" />
<arg value='/android:versionName=/s/".*"/"${custom.version.name}"/' />
<arg value="-e" />
<arg value='/android:versionCode=/s/".*"/"${custom.version.code}"/' />
<arg value="-i" />
<arg value="${out.manifest.abs.file}" />
</exec>
</target>
<target name="-pre-compile" depends="custom-update-manifest" />
</project>
check action performability better (e.g. setting/clearing input/access focus)
dispmd crashes when navigating off the top
icon for input service
......@@ -3,7 +3,7 @@
# BRLTTY - A background process providing access to the console screen (when in
# text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2018 by The BRLTTY Developers.
# Copyright (C) 1995-2019 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
......@@ -12,7 +12,7 @@
# Foundation; either version 2.1 of the License, or (at your option) any
# later version. Please see the file LICENSE-LGPL for details.
#
# Web Page: http://brltty.com/
# Web Page: http://brltty.app/
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################
......@@ -126,27 +126,25 @@ proc writeProperties {file lines} {
}
}
set inputFile [file join $sourceDirectory "Documents" "brltty.conf"]
set inputFile [file join $sourceDirectory "Documents" "brltty.conf.in"]
set outputFile [file join $sourceDirectory "Android" "Application" "res" "values" "settings_lists.xml"]
set optionDefinitions {
}
if {![processOptions optionValues argv $optionDefinitions]} {
syntaxError
}
processProgramArguments optionValues $optionDefinitions positionalArguments "\[property ...\]"
if {[llength $argv] == 0} {
lappend argv "braille-driver"
lappend argv "text-table"
lappend argv "attributes-table"
lappend argv "contraction-table"
lappend argv "keyboard-table"
if {[llength $positionalArguments] == 0} {
lappend positionalArguments "braille-driver"
lappend positionalArguments "text-table"
lappend positionalArguments "attributes-table"
lappend positionalArguments "contraction-table"
lappend positionalArguments "keyboard-table"
}
if {[llength $argv] == 0} {
if {[llength $positionalArguments] == 0} {
syntaxError "properties not specified"
}
writeProperties $outputFile [makeResources [getProperties [file join $sourceDirectory $inputFile] $argv]]
writeProperties $outputFile [makeResources [getProperties [file join $sourceDirectory $inputFile] $positionalArguments]]
exit 0
......@@ -3,7 +3,7 @@
# BRLTTY - A background process providing access to the console screen (when in
# text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2018 by The BRLTTY Developers.
# Copyright (C) 1995-2019 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
......@@ -12,7 +12,7 @@
# Foundation; either version 2.1 of the License, or (at your option) any
# later version. Please see the file LICENSE-LGPL for details.
#
# Web Page: http://brltty.com/
# Web Page: http://brltty.app/
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################
......@@ -39,6 +39,11 @@ proc getStrings {directory args} {
return $strings
}
set optionDefinitions {
}
processProgramArguments optionValues $optionDefinitions
set stringsDirectory [file join $sourceDirectory Android Application res values]
set defaultStrings [getStrings $stringsDirectory strings.xml settings_strings.xml settings_lists.xml]
......
......@@ -11,6 +11,6 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target=android-21
sdk.buildtools=21.1.2
target=android-26
sdk.buildtools=26.0.1
android.library.reference.1=../Core
......@@ -2,5 +2,8 @@
<!-- @configure_input@ -->
<resources>
<string name="PACKAGE_COPYRIGHT">@PACKAGE_COPYRIGHT@</string>
<string name="app_version">@PACKAGE_VERSION@</string>
<string name="web_site_url">@PACKAGE_URL@</string>
<string name="community_message_address">@PACKAGE_BUGREPORT@</string>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
>
<TableRow>
<TextView android:text="@string/application_name_label" />
<TextView android:text="@string/app_name" />
</TableRow>
<TableRow>
<TextView android:text="@string/application_version_label" />
<TextView android:text="@string/app_version" android:id="@+id/application_version_value" />
</TableRow>
<TableRow>
<TextView android:text="@string/application_copyright_label" />
<TextView android:text="@string/PACKAGE_COPYRIGHT" />
</TableRow>
</TableLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/GLOBAL_BUTTON_SWITCH_INPUT_METHOD"
android:onClick="switchInputMethod"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/SETTINGS_SCREEN_MAIN"
android:onClick="launchSettingsActivity"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/GLOBAL_BUTTON_VIEW_USER_GUIDE"
android:onClick="viewUserGuide"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/GLOBAL_BUTTON_BROWSE_WEB_SITE"
android:onClick="browseWebSite"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/GLOBAL_BUTTON_BROWSE_COMMUNITY_MESSAGES"
android:onClick="browseCommunityMessages"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/GLOBAL_BUTTON_POST_COMMUNITY_MESSAGE"
android:onClick="postCommunityMessage"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/GLOBAL_BUTTON_MANAGE_COMMUNITY_MEMBERSHIP"
android:onClick="manageCommunityMembership"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/GLOBAL_BUTTON_UPDATE_APPLICATION"
android:onClick="updateApplication"
/>
<Button
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:text="@string/about_activity_label"
android:onClick="launchAboutActivity"
/>
</LinearLayout>
......@@ -4,20 +4,49 @@
<string name="app_name">BRLTTY</string>
<string name="app_description">BRLTTY understøtter braille enheder.</string>
<string name="about_activity_label">Om Applikationen</string>
<string name="application_name_label">Navn</string>
<string name="application_version_label">Version</string>
<string name="application_copyright_label">Copyright</string>
<string name="input_service_name">BRLTTY Input Service</string>
<string name="input_service_type">Tastaturer på Braille enheder</string>
<string name="input_service_not_enabled">input service ikke tilgængelig</string>
<string name="input_service_not_selected">input service ikke valgt</string>
<string name="input_service_not_started">input service ikke startet</string>
<string name="input_service_not_connected">input service ikke forbundet</string>
<string name="checkbox_state_unchecked">Nej</string>
<string name="checkbox_state_checked">Ja</string>
<string name="braille_channel_name">Braille Enhed Status</string>
<string name="braille_hint_tap">tryk for handlinger</string>
<string name="braille_state_released">Frigivet</string>
<string name="braille_state_waiting">Venter</string>
<string name="braille_state_connected">Forbindet</string>
<string name="VIRTUAL_BUTTON_NOTIFICATIONS">Notifikationer</string>
<string name="VIRTUAL_BUTTON_QUICK_SETTINGS">Hurtig Indstillinger</string>
<string name="VIRTUAL_BUTTON_BACK">Tilbage</string>
<string name="VIRTUAL_BUTTON_HOME">Hjem</string>
<string name="VIRTUAL_BUTTON_RECENT_APPS">Seneste Apps</string>
<string name="GLOBAL_BUTTON_NOTIFICATIONS">Notifikationer</string>
<string name="GLOBAL_BUTTON_QUICK_SETTINGS">Hurtig Indstillinger</string>
<string name="GLOBAL_BUTTON_BACK">Tilbage</string>
<string name="GLOBAL_BUTTON_HOME">Hjem</string>
<string name="GLOBAL_BUTTON_RECENT_APPS">Seneste Apps</string>
<string name="GLOBAL_BUTTON_OVERVIEW">Overblik</string>
<string name="GLOBAL_BUTTON_SWITCH_INPUT_METHOD">Skift Input Metode</string>
<string name="GLOBAL_BUTTON_VIEW_USER_GUIDE">Vis Bruger Vejledning</string>
<string name="GLOBAL_BUTTON_BROWSE_WEB_SITE">Læs Webside</string>
<string name="GLOBAL_BUTTON_BROWSE_COMMUNITY_MESSAGES">Læs Fællesskabs Beskeder</string>
<string name="GLOBAL_B