forked from FreeRDP/FreeRDP
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the initial release of aFreeRDP the FreeRDP Android client. For build instructions have a look to docs/README.android.
- Loading branch information
Showing
213 changed files
with
16,217 additions
and
1,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
iOS | ||
Android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="src" path="gen"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/> | ||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/> | ||
<classpathentry kind="output" path="bin/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Ignore directories | ||
bin/ | ||
obj/ | ||
gen/ | ||
jni/external/* | ||
!libs | ||
libs/armeabi* | ||
AndroidManifest.xml | ||
local.properties | ||
!.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>aFreeRDP</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>com.android.ide.eclipse.adt.ApkBuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:installLocation="auto" | ||
package="com.freerdp.afreerdp" | ||
android:versionCode="1" | ||
android:versionName="@FREERDP_VERSION_FULL@" > | ||
|
||
<uses-sdk android:targetSdkVersion="8" android:minSdkVersion="8"/> | ||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | ||
<uses-permission android:name="com.android.vending.BILLING" /> | ||
<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" /> | ||
|
||
<application android:name=".application.GlobalApp" | ||
android:label="aFreeRDP" | ||
android:icon="@drawable/icon_launcher_freerdp" > | ||
|
||
<!-- Main activity --> | ||
<activity android:name=".presentation.HomeActivity" | ||
android:label="@string/app_title" | ||
android:theme="@style/Theme.Main" | ||
android:alwaysRetainTaskState="true" | ||
> | ||
<intent-filter android:label="@string/app_title"> | ||
<action android:name="android.intent.action.MAIN"/> | ||
<category android:name="android.intent.category.LAUNCHER"/> | ||
</intent-filter> | ||
</activity> | ||
|
||
<!-- Acra crash report dialog activity --> | ||
<activity android:name="org.acra.CrashReportDialog" | ||
android:theme="@android:style/Theme.Dialog" android:launchMode="singleInstance" | ||
android:excludeFromRecents="true" android:finishOnTaskLaunch="true" /> | ||
|
||
<!-- Session request handler activity - used for search and internally to start sessions --> | ||
<activity android:name=".services.SessionRequestHandlerActivity" | ||
android:theme="@android:style/Theme.NoDisplay" | ||
android:noHistory="true" | ||
android:excludeFromRecents="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.SEARCH" /> | ||
</intent-filter> | ||
<meta-data android:name="android.app.searchable" | ||
android:resource="@xml/searchable" /> | ||
</activity> | ||
|
||
<!-- Activity to create shortcuts --> | ||
<activity android:name=".presentation.ShortcutsActivity" | ||
android:theme="@style/Theme.Main" | ||
android:label="@string/title_create_shortcut"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
</intent-filter> | ||
|
||
</activity> | ||
|
||
<!-- It is recommended that you use an activity-alias to provide the "CREATE_SHORTCUT" --> | ||
<!-- intent-filter. This gives you a way to set the text (and optionally the --> | ||
<!-- icon) that will be seen in the launcher's create-shortcut user interface. --> | ||
<activity-alias android:name=".presentation.CreateShortcuts" | ||
android:targetActivity=".presentation.ShortcutsActivity" | ||
android:label="@string/title_create_shortcut"> | ||
<!-- This intent-filter allows your shortcuts to be created in the launcher. --> | ||
<intent-filter> | ||
<action android:name="android.intent.action.CREATE_SHORTCUT" /> | ||
<category android:name="android.intent.category.DEFAULT" /> | ||
</intent-filter> | ||
</activity-alias> | ||
|
||
<activity android:name=".presentation.BookmarkActivity" | ||
android:label="@string/title_bookmark_settings" | ||
android:theme="@style/Theme.Settings"> | ||
</activity> | ||
<activity android:name=".presentation.ApplicationSettingsActivity" | ||
android:label="@string/title_application_settings" | ||
android:theme="@style/Theme.Settings" | ||
android:windowSoftInputMode="stateHidden"> | ||
</activity> | ||
<activity android:name=".presentation.SessionActivity" | ||
android:theme="@android:style/Theme.Black.NoTitleBar" | ||
android:configChanges="orientation|keyboardHidden|keyboard" | ||
android:windowSoftInputMode="adjustResize"> | ||
</activity> | ||
<activity android:name=".presentation.AboutActivity" | ||
android:label="@string/title_about" | ||
android:theme="@style/Theme.Main"> | ||
</activity> | ||
<activity android:name=".presentation.HelpActivity" | ||
android:label="@string/title_help" | ||
android:theme="@style/Theme.Main"> | ||
</activity> | ||
|
||
<provider android:name=".services.FreeRDPSuggestionProvider" | ||
android:authorities="com.freerdp.afreerdp.services.freerdpsuggestionprovider" | ||
> | ||
</provider> | ||
|
||
<receiver android:name=".application.NetworkStateReceiver" android:enabled="true"> | ||
<intent-filter> | ||
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> | ||
</intent-filter> | ||
</receiver> | ||
|
||
|
||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# FreeRDP: A Remote Desktop Protocol Implementation | ||
# Android Client | ||
# | ||
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com> | ||
# Copyright 2013 Bernhard Miklautz <bmiklautz@thinstuff.at> | ||
# | ||
# 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. | ||
|
||
set(ANDROID_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) | ||
set(ANDROID_PACKAGE_NAME "aFreeRDP") | ||
|
||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/AndroidManifest.xml.cmake ${CMAKE_CURRENT_SOURCE_DIR}/AndroidManifest.xml @ONLY) | ||
|
||
if (ANDROID_SDK) | ||
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/local.properties.cmake ${CMAKE_CURRENT_SOURCE_DIR}/local.properties @ONLY) | ||
endif() | ||
|
||
add_subdirectory(jni) | ||
|
||
|
||
if(ANDROID_BUILD_JAVA) | ||
if (NOT ANDROID_SDK) | ||
message(FATAL_ERROR "ANDROID_SDK not set but required for building the java gui (ANDROID_BUILD_JAVA)") | ||
endif() | ||
|
||
# And isn't shiped with the android ndk/sdk so | ||
# we need to find it on the local machine | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER, BOTH) | ||
find_program(ANT_COMMAND ant) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER, ONLY) | ||
|
||
if(ANT_COMMAND STREQUAL "ANT_COMMAND-NOTFOUND") | ||
message(FATAL_ERROR "ant not found but required to build android java") | ||
endif() | ||
|
||
if(ANDROID_BUILD_JAVA_DEBUG) | ||
set(ANDROID_BUILD_TYPE "debug") | ||
set(APK "${ANDROID_SOURCE_DIR}/bin/${ANDROID_PACKAGE_NAME}-release-unsigned.apk") | ||
else() | ||
set(ANDROID_BUILD_TYPE "release") | ||
set(APK "${ANDROID_SOURCE_DIR}/bin/${ANDROID_PACKAGE_NAME}-debug.apk") | ||
endif() | ||
|
||
# command to create the android package | ||
add_custom_command( | ||
OUTPUT "${APK}" | ||
COMMAND ${ANT_COMMAND} ${ANDROID_BUILD_TYPE} | ||
WORKING_DIRECTORY "${ANDROID_SOURCE_DIR}" | ||
MAIN_DEPENDENCY AndroidManifest.xml | ||
DEPENDS freerdp-android local.properties | ||
) | ||
add_custom_target(android-package ALL SOURCES "${APK}") | ||
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "gen;bin") | ||
endif() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.