Skip to content

Commit

Permalink
Upgrade to v1.0.2 (#410)
Browse files Browse the repository at this point in the history
* Remove paid apps (#345)

* remove paid apps

* Upgrade to version 0.5.3

* Remove TODO.

* Set lastAppsUpdate.

* Upgrade to version 1.0.0.

* Update README.md to better reflect 1.0.0.

* Db migration 4 (#373)

* Remove unused filesystem attributes.

* Remove unused session attributes.

* Remove startup script from sql statements.

* Add index on filesystemId.

* Remove foreign key constraints during migration.

* Add test.

* Fix failing test.

* Update assets (#375)

* Update migration to add lastUpdated attribute to filesystem entity.

* Move updated assets to appropriate filesystems.

* Display progress bar faster.

* Fdroid (#394)

* remove play services

* remove play services util class

* Fdroid 2 - remove billing permissions (#397)

* remove play services

* remove play services util class

* get rid of billing permission

* Filesystems page will listen to progress bar dialog and display it when navigating to it. (#393)

* Upgrade to v.1.0.1

* pass kernel version down so we can fake out /proc/version (#407)

* Fix: Apps Service Type Behavior (#408)

* If app is only supported by one service type (ssh/vnc), disable ability to change the preference in apps details menu.

* When selecting an app that is supported by one service type, set the preference type automatically and start the session.

* Upgrade to v1.0.2
  • Loading branch information
MatthewTighe authored and luongthomas committed Nov 21, 2018
1 parent fa8e6b9 commit 225a193
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
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 {
applicationId "tech.ula"
minSdkVersion 21
targetSdkVersion 28
versionCode 32
versionName "1.0.1"
versionCode 33
versionName "1.0.2"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
2 changes: 1 addition & 1 deletion app/release/output.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":32,"versionName":"1.0.1","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":33,"versionName":"1.0.2","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
11 changes: 10 additions & 1 deletion app/src/main/java/tech/ula/ui/AppDetailsFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ class AppDetailsFragment : Fragment() {
setupPreferredServiceTypeRadioGroup()
}

fun setupPreferredServiceTypeRadioGroup() {
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
if (!(app.supportsGui && app.supportsCli)) {
apps_vnc_preference.isEnabled = false
apps_ssh_preference.isEnabled = false
return
}
}

private fun setupPreferredServiceTypeRadioGroup() {
val appServiceTypePreference = appsPreferences.getAppServiceTypePreference(app.name)
if (appServiceTypePreference == AppsPreferences.SSH) {
apps_service_type_preferences.check(R.id.apps_ssh_preference)
Expand Down
10 changes: 7 additions & 3 deletions app/src/main/java/tech/ula/ui/AppListFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,14 @@ class AppListFragment : Fragment(),
// TODO some error notification
return
}

val appFilesystem = possibleAppFilesystem.first()
if (appsListViewModel.getAppServiceTypePreference(selectedApp).isEmpty()) {
getClientPreferenceAndStart(selectedApp, appFilesystem.defaultUsername, appFilesystem.defaultPassword, appFilesystem.defaultVncPassword)
return

if (!appSupportsOneServiceTypeAndSetPref(selectedApp)) {
if (appsListViewModel.getAppServiceTypePreference(selectedApp).isEmpty()) {
getClientPreferenceAndStart(selectedApp, appFilesystem.defaultUsername, appFilesystem.defaultPassword, appFilesystem.defaultVncPassword)
return
}
}

val startAppIntent = Intent(activityContext, ServerService::class.java)
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/java/tech/ula/utils/ExecUtility.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class ExecUtility(
"ROOT_PATH" to applicationFilesDirPath,
"ROOTFS_PATH" to "$applicationFilesDirPath/${executionDirectory.name}",
"PROOT_DEBUG_LEVEL" to prootDebuggingLevel,
"EXTRA_BINDINGS" to "-b $externalStoragePath:/sdcard")
"EXTRA_BINDINGS" to "-b $externalStoragePath:/sdcard",
"OS_VERSION" to System.getProperty("os.version"))
else hashMapOf()

env.putAll(environmentVars)
Expand Down

0 comments on commit 225a193

Please sign in to comment.