Skip to content

Commit be25a39

Browse files
authored
Merge pull request #1440 from CypherpunkArmory/master
Catch production releases up with beta releases
2 parents 8f92ce9 + 7752f95 commit be25a39

11 files changed

Lines changed: 333 additions & 28 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,6 @@ jobs:
258258
- *android_dependencies
259259
- *save_cache
260260
- *attach_debug_workspace
261-
- *attach_firebase_workspace
262-
- run:
263-
name: Move Firebase coverage report
264-
command: mkdir -p app/build/outputs/code-coverage/connected && cp firebase/*/artifacts/sdcard/* app/build/outputs/code-coverage/connected/
265261
- *export_gcloud_key
266262
- *decode_gcloud_key
267263
- run:
@@ -321,21 +317,16 @@ workflows:
321317
- test_unit:
322318
requires:
323319
- build_debug
324-
- test_instrumented:
325-
requires:
326-
- build_debug
327320
- report_coverage:
328321
requires:
329322
- test_unit
330-
- test_instrumented
331323
- deploy-beta:
332324
filters:
333325
branches:
334326
only:
335327
- master
336328
requires:
337329
- test_unit
338-
- test_instrumented
339330
- build_beta_release
340331
- deploy-production:
341332
filters:
@@ -344,5 +335,4 @@ workflows:
344335
- releases
345336
requires:
346337
- test_unit
347-
- test_instrumented
348338
- build_production_release

Gemfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
CFPropertyList (3.0.2)
5-
activesupport (6.0.2.2)
5+
activesupport (6.0.3.1)
66
concurrent-ruby (~> 1.0, >= 1.0.2)
77
i18n (>= 0.7, < 2)
88
minitest (~> 5.1)
99
tzinfo (~> 1.1)
10-
zeitwerk (~> 2.2)
11-
addressable (2.7.0)
10+
zeitwerk (~> 2.2, >= 2.2.2)
11+
addressable (2.8.0)
1212
public_suffix (>= 2.0.2, < 5.0)
1313
atomos (0.1.3)
1414
aws-eventstream (1.0.3)
@@ -33,7 +33,7 @@ GEM
3333
colored2 (3.1.2)
3434
commander-fastlane (4.4.6)
3535
highline (~> 1.7.2)
36-
concurrent-ruby (1.1.6)
36+
concurrent-ruby (1.1.9)
3737
declarative (0.0.10)
3838
declarative-option (0.1.0)
3939
digest-crc (0.5.1)
@@ -121,15 +121,15 @@ GEM
121121
http-cookie (1.0.3)
122122
domain_name (~> 0.5)
123123
httpclient (2.8.3)
124-
i18n (1.8.2)
124+
i18n (1.8.10)
125125
concurrent-ruby (~> 1.0)
126126
jmespath (1.4.0)
127127
json (2.3.0)
128128
jwt (2.1.0)
129129
memoist (0.16.2)
130130
mini_magick (4.10.1)
131131
mini_mime (1.0.2)
132-
minitest (5.14.0)
132+
minitest (5.14.4)
133133
multi_json (1.14.1)
134134
multi_xml (0.6.0)
135135
multipart-post (2.0.0)
@@ -163,7 +163,7 @@ GEM
163163
tty-screen (0.7.1)
164164
tty-spinner (0.9.3)
165165
tty-cursor (~> 0.7)
166-
tzinfo (1.2.6)
166+
tzinfo (1.2.9)
167167
thread_safe (~> 0.1)
168168
uber (0.1.0)
169169
unf (0.1.4)
@@ -181,7 +181,7 @@ GEM
181181
rouge (~> 2.0.7)
182182
xcpretty-travis-formatter (1.0.0)
183183
xcpretty (~> 0.2, >= 0.0.7)
184-
zeitwerk (2.3.0)
184+
zeitwerk (2.4.2)
185185

186186
PLATFORMS
187187
ruby

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ android {
2424
minSdkVersion 21
2525
targetSdkVersion 29
2626
versionCode vcode
27-
versionName "2.7.3"
27+
versionName "2.8.1"
2828

2929
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3030
testInstrumentationRunnerArguments clearPackageData: 'true'
@@ -200,7 +200,7 @@ ext.architectures = ["armeabi-v7a", "arm64-v8a", "x86", "x86_64"]
200200
ext.libDir = "$project.projectDir/src/main/jniLibs"
201201

202202
task downloadAssets(type: Download) {
203-
def assetVersion = "v1.1.10"
203+
def assetVersion = "v1.2.6"
204204
def baseUrl = "https://github.com/CypherpunkArmory/UserLAnd-Assets-Support/releases/download/$assetVersion"
205205
for (arch in architectures) {
206206
src "$baseUrl/$arch-assets.zip"

app/src/androidTest/java/tech/ula/ui/MainActivityTest.kt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package tech.ula.ui
22

33
import android.Manifest
4-
import android.content.Intent
5-
import android.net.Uri
4+
// import android.content.Intent
5+
// import android.net.Uri
66
import androidx.test.espresso.Espresso
77
import androidx.test.espresso.intent.rule.IntentsTestRule
8-
import androidx.test.espresso.intent.Intents.intended
9-
import androidx.test.espresso.intent.matcher.IntentMatchers.* // ktlint-disable no-wildcard-imports
8+
// import androidx.test.espresso.intent.Intents.intended
9+
// import androidx.test.espresso.intent.matcher.IntentMatchers.* // ktlint-disable no-wildcard-imports
1010
import androidx.test.ext.junit.runners.AndroidJUnit4
1111
import androidx.test.filters.LargeTest
1212
import androidx.test.rule.GrantPermissionRule
@@ -125,6 +125,7 @@ class MainActivityTest {
125125
R.id.terminal_view.shortWaitForDisplay()
126126
}
127127

128+
/*
128129
@Test
129130
fun test_vnc_session_can_be_started() {
130131
R.id.app_list_fragment.shortWaitForDisplay()
@@ -176,6 +177,7 @@ class MainActivityTest {
176177
intended(hasFlag(Intent.FLAG_ACTIVITY_NEW_TASK))
177178
}
178179
}
180+
*/
179181

180182
private fun doHappyPathTestScript(): List<File> {
181183
val startedFile = File(homeDirectory, "test.scriptStarted")

app/src/main/java/tech/ula/utils/BusyboxExecutor.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package tech.ula.utils
22

3+
import android.util.Log
34
import kotlinx.coroutines.CoroutineScope
45
import kotlinx.coroutines.Dispatchers
56
import kotlinx.coroutines.withContext
@@ -18,7 +19,7 @@ class BusyboxExecutor(
1819
private val busyboxWrapper: BusyboxWrapper = BusyboxWrapper(ulaFiles)
1920
) {
2021

21-
private val discardOutput: (String) -> Any = { }
22+
private val discardOutput: (String) -> Any = { Log.d("busybox", it) }
2223

2324
fun executeScript(
2425
scriptCall: String,

app/src/main/java/tech/ula/utils/UlaFiles.kt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package tech.ula.utils
22

33
import android.content.Context
4+
import android.os.Build
45
import android.system.Os
56
import java.io.File
67
import java.lang.NullPointerException
@@ -65,7 +66,23 @@ class UlaFiles(
6566
supportDir.mkdirs()
6667

6768
libDir.listFiles()!!.forEach { libFile ->
68-
val name = libFile.name.toSupportName()
69+
var libFileName = libFile.name
70+
if (libFileName.startsWith("lib_proot.") ||
71+
libFileName.startsWith("lib_libtalloc") ||
72+
libFileName.startsWith("lib_loader")) {
73+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
74+
if (libFileName.endsWith(".a10.so")) {
75+
libFileName = libFileName.replace(".a10.so", ".so")
76+
} else {
77+
return@forEach
78+
}
79+
} else {
80+
if (libFileName.endsWith(".a10.so")) {
81+
return@forEach
82+
}
83+
}
84+
}
85+
val name = libFileName.toSupportName()
6986
val linkFile = File(supportDir, name)
7087
linkFile.delete()
7188
symlinker.createSymlink(libFile.path, linkFile.path)

0 commit comments

Comments
 (0)