Commit Graph

39 Commits

Author SHA1 Message Date
TranceLove b830d19292 FTP client support
Fixes #1570.

- Refactored SshConnectionPool to more generic NetCopyClientConnectionPool
- Change SshClientTemplate to NetCopyClientTemplate
- Implement FTP client support. Defaults to passive FTP and implicit SSL for FTPS
- Add optional thread safety to NetCopyClientConnectionPool on executing NetCopyClientTemplate, as Apache FTPClient is not thread safe. This shall bring deadlocks when connecting to FTP servers, but let's see...
- Migrated GetSshHostFingerprintTask and SshAuthenticationTaskCallable to callable and RxJava, in align with FTP client implementation
- Downgrade Apache FTP server to 1.1.1, as problems found with enabling TLS at Amaze FTP server after previous upgrade to 1.1.4

Tested on Pixel 2 emulator running Android 11, against Amaze FTP server running on Oneplus 2 running Lineage OS 18.1 (11).
2022-08-31 23:53:59 +08:00
Goooler 70fc274c6d Insert blank lines 2022-03-09 17:33:38 +08:00
Goooler d81160b4db Remove redundant caches 2022-03-09 17:30:30 +08:00
Goooler 1622b1d26a Bump actions/setup-java to v3 2022-03-09 17:26:51 +08:00
Goooler c683039f62 Bump actions/checkout to v3 2022-03-09 17:26:34 +08:00
Goooler 0412f2d9e2 Use gradle/gradle-build-action 2022-03-09 17:25:53 +08:00
EmmanuelMess b408759cae Move emulator test from android-feature to android-main 2022-02-04 21:29:49 -03:00
EmmanuelMess 9ecef424f2 Update arch for test emulator 2022-01-31 00:37:55 -03:00
EmmanuelMess 682e65869d Add an sdcard for emulator 2022-01-31 00:37:55 -03:00
Emmanuel 3a6a771f91 Add emulator to CI 2022-01-30 16:09:48 -03:00
Raymond Lai 65c0707b58 Remove timezone setting in build files and github actions 2022-01-12 09:05:18 +08:00
Bambooin e6b87de88b ci: migrate workflows from adopt to temurin
Adopt OpenJDK got moved to Eclipse Temurin and won't be updated anymore.

It is highly recommended to migrate workflows from adopt to temurin to keep receiving software and security updates.
2021-10-16 21:22:07 +08:00
Bambooin be573ca07d ci: add cache in build job 2021-10-16 21:22:07 +08:00
Bambooin f15fee0fe9 ci: enable cache of set java 2021-10-16 21:22:07 +08:00
Emmanuel 2280a22196 Separate spotless check into another job 2021-10-11 03:44:29 -03:00
Vishnu Sanal. T c5e773972a Remove hack 2021-09-20 22:57:25 +05:30
Vishnu Sanal. T 547826f1cc Add branch - (hack!) 2021-09-20 19:55:35 +05:30
Vishnu Sanal. T 6dab2d427c Remove 'publish test cases' 2021-09-20 19:44:08 +05:30
Vishal Nehra 07bc0660e2 Fix spotless error 2021-08-16 04:37:15 +05:30
Vishal Nehra ebc33bd52a Remove log truncation during build and redundant --stacktrace arguments
Fixes #2717.

It seems truncating log messages during build had side effects running on Github Actions, causing build errors being ignored and still considered a success build. Removing them to ensure no one gets in the way on build/test failures.

Also removed --stacktrace arguments on release build actions. Build problems (if there is any) should have been dealt with on debug builds and production builds should be always smooth and fast with only error but not with debug log messages.
2021-08-14 00:08:59 +08:00
EmmanuelMess 0e24def2c1 Fix redundant test runs 2021-06-11 12:55:33 -03:00
EmmanuelMess d06ebefc7b Separate CI for into feature and fast 2021-06-08 12:07:14 -03:00
Raymond Lai a9546fa8b2 Suppress jetifier transform jar output during Github build
Reference: https://stackoverflow.com/a/52353446
2021-05-31 11:05:38 +08:00
Raymond Lai 404b78da5f Use JDK 11 to build
This enable Robolectric to test with SDK 30 or above.
2021-05-19 16:57:01 +08:00
Raymond Lai 8280ca68ef Adopt Ubuntu 20.04 as CI build environment 2021-02-05 00:05:52 +08:00
Raymond Lai 2d0c8eccc1 Enforce Github Actions CI to UTC timezone
To ensure DOS timestamps are converted to UTC timestamps when work with zip and rars, for passing the tests
2021-01-18 12:12:56 +08:00
Vishal Nehra 7d7aa233bf Update test parameters
- Enable failFast option for quicker test failure results
- Force ShadowSQLiteConnection to reset after each test (where applicable)
- Also force reset RxJava's scheduler handlers on test setup
2020-12-10 12:01:28 +08:00
TranceLove a3c358ee54 Fix implicit build errors
Close database on test case finish to prevent leaks (hopefully)
2020-12-08 23:02:39 +08:00
VishalNehra bdc28f1f6c Add github rule for hotfix branches 2020-10-27 19:04:24 +05:30
VishalNehra cfaaf370cf 1896: Use feature-ci workflow for prs 2020-07-07 16:12:25 +05:30
VishalNehra 7d463d7104 1896: Allow publish test cases failure step to not fail pipeline 2020-07-05 18:05:43 +05:30
VishalNehra ce3ca0e5d0 1896: Change jacoco to jacoco-android plugin 2020-07-02 03:37:12 +05:30
VishalNehra df8ff90527 1896: Change gradle task to find test coverage 2020-07-02 03:07:19 +05:30
VishalNehra 6b404899f2 1896: Change gradle task to find test coverage 2020-07-02 03:00:32 +05:30
VishalNehra 4d3c457f39 1896: Publish test case coverage to codacy in workflow 2020-07-02 02:40:46 +05:30
VishalNehra cf831cc7fc 1896: Publish test case coverage to codacy in workflow 2020-07-02 02:22:37 +05:30
TranceLove d08aaede28 Github workflow tweaks: add --stacktrace to gradle builds
This will output full stacktraces to build log in case of errors.

Also modified README.md's license section per PR review feedback by Vishal
2020-07-01 22:32:03 +08:00
TranceLove d4e84ac4ab Updates to Github workflow
* update octokit version to 2.0.2, as I had problems getting things to work with octokit 2.0.0
* add testPlayDebugUnitTest to all workflows, to ensure PRs or releases had been tested (though code coverage is still small)
2020-06-30 17:25:19 +08:00
VishalNehra 86eaf67f02 1896: Implement github actions pipeline for project 2020-06-09 04:18:50 +05:30