Commit graph

555 commits

Author SHA1 Message Date
Severiano Jaramillo
848a95e766 Remove unnecessary attributes. 2022-05-29 11:12:47 -07:00
Severiano Jaramillo
8faeb05486 Update tukaani library version. 2021-07-08 20:33:39 -07:00
Severiano Jaramillo
2d80e90b7a Update gradle plugin version. 2021-06-07 21:15:59 -07:00
Severiano Jaramillo
e5d68e8992 Bump targetSdkVersion and compileSdkVersion to 29. 2021-03-04 20:17:33 -08:00
Severiano Jaramillo
38c0f168db Remove JCenter usages, fix import, and cleanup build.gradle file. 2021-03-01 22:25:17 -08:00
Severiano Jaramillo
e587eb18ed Remove bintray-publish library and update Gradle plugin version. 2021-03-01 21:19:51 -08:00
Nelson R. Pérez
587250fccb Merge branch 'feat_callback_support' into develop 2020-03-12 18:00:07 -05:00
Nelson R. Pérez
1d029c3111 Making the AssetAmount class implement the Comparable<AssetAmount> interface 2020-03-12 17:59:01 -05:00
Nelson R. Pérez
bba825ca62 Calling onFailure method in case the parsed response comes with a non-null error object 2019-12-03 12:39:42 -05:00
Nelson R. Pérez
a8c13cac96 Modified the ApiCallback interface 2019-11-27 18:45:44 -05:00
Nelson R. Pérez
4a1bb69ee0 Fixed an issue with the callback implementation
- We're now passing the parsed response, whenever possible
- The SparseArray was replaced by a HashMap
2019-11-21 16:28:51 -05:00
Nelson R. Pérez
b9f4ac7bea Updated gradle plugin version 2019-11-21 13:13:22 -05:00
Nelson R. Perez
a988321c27 Introducing basic callback support to the NetworkService class 2019-11-18 13:51:15 -05:00
Nelson R. Perez
4ba6f1d25c Clearing API permissions before connecting 2019-11-14 13:14:02 -05:00
Nelson R. Perez
3d5a57f896 Merge branch 'feat_android_removal' into develop 2019-09-25 21:45:56 -05:00
Nelson R. Perez
6e17a55deb Gradle changes & version bump
- Bumping version number to 0.6.0
- Introducing new publication mechanism using Bintray
2019-09-25 20:09:18 -05:00
Nelson R. Perez
9b27bced03 Fixed problem with AuthorityTest & LatencyNodeProviderTest 2019-09-25 20:08:52 -05:00
Nelson R. Perez
e3b030b3fb Fixed problem with the NodeLatencyVerifier test case 2019-09-25 20:06:17 -05:00
Nelson R. Perez
dc348b2578 Changed the 'updateNode' to make it also add a new node if it was not present 2019-09-25 17:31:54 -05:00
Nelson R. Perez
d30aa251a1 Removed Handler and Looper android classes dependencies 2019-09-19 16:57:41 -05:00
Nelson R. Perez
71896ad65b Bumped version to 0.6.0 and set up the bintray integration 2019-09-19 15:35:19 -05:00
Nelson R. Perez
d019acca6a Removed most (but not yet all) of the android-related dependencies from the NetworkService class
- The NetworkService no longer extends the Service class
- The NetworkService is now a singleton class, which is instantiated by a static method in a thread-safe manner
- Replaced Android Log.d() functions by System.out.println()
- Renamed the 'onStop' method to simply 'stop' since it will no longer work as a callback
- Renamed the 'bootstrapService' to start, since this is how this class inner workings are started
- Lots of configurable parameters were removed, we now focus on the default values, like empty strings for usernames and passwords
- Node latency verification is done by default, instead of being an optional feature enabled by parameters
- Removed the 'LocalBinder' inner class
- The sample app was modified accordingly
2019-09-13 18:14:47 -05:00
Nelson R. Perez
1e8a1e0346 Updated dependencies 2019-09-12 19:30:40 -05:00
Nelson R. Perez
ff59f38ba7 Merge branch 'feat_htlc' into develop 2019-09-12 13:59:47 -05:00
Nelson R. Perez
91275f3cc0 Modified the sample app to make use of the HTLC redeem operation
- A very simple HTLC creation & redemption mechanism has been put in place for testing/demonstration purposes.
- The HtlcActivity now can both create and redeem an HTLC
2019-08-02 17:31:48 -05:00
Nelson R. Perez
2cd989eade Fixed RedeemHtlcOperation JSON and byte serialization and introduced a serialization test case 2019-08-01 13:03:10 -05:00
Nelson R. Perez
5350cfb739 Introducing the RedeemHtlcOperation class 2019-07-31 17:38:58 -05:00
Nelson R. Perez
6ba8379b92 Introducing the HTLC object instance 2019-07-30 17:05:21 -05:00
Nelson R. Perez
39bcf78add Introducing the HTLC object type 2019-07-30 16:40:19 -05:00
Nelson R. Perez
d82bc6add1 Extended the sample app's capabilities in order to be able to send a create_htlc operation
- The brainkey must be specified in code before trying this feature out.
2019-07-26 17:16:35 -05:00
Nelson R. Perez
9057121146 Properly implemented the JsonSerializable interface methods of the CreateHtlcOperation class & included that in tests
- This is required in order to communicate the operation to the full node.
2019-07-26 17:16:16 -05:00
Nelson R. Perez
9312280897 Making the HtlcHash class implement the JsonSerializable interface 2019-07-26 17:12:38 -05:00
Nelson R. Perez
606f7c183e Fixed a concurrency problem
Introduced some synchronized methods and a block in order to prevent an aparent concurrency problem with the variable 'mSelectedNode' at the NetworkService class.
2019-07-12 17:51:50 -05:00
Nelson R. Perez
ca30338af6 Implemented a serialization test for a tx containing a CreateHtlcOperation 2019-07-12 00:00:46 -05:00
Nelson R. Perez
bb4fd5ce5d Implementing test of the CreateHtlcOperation class byte serialization 2019-07-11 16:42:37 -05:00
Nelson R. Perez
bf346f25bf Introducing the CreateHtlcOperation & supporting classes
- HtlcHashType class enumerates all supported HTLC hash functions.
- The HtlcHash class is used to represent all possible HTLC hash results.
- The CreateHtlcOperation class itself is used to represent the operation that creates an HTLC
- A simple test class was introduced in order to test hash functions and subsequently also test the HTLC operation serialization
2019-07-11 13:25:38 -05:00
Nelson R. Perez
d953dae81b Created a single function at the Util static class that exposes interfaces for SHA1, RIPEMD160 & SHA-256 hash functions 2019-07-11 13:21:30 -05:00
Nelson R. Perez
12ce0ef276 Added missing operation types 2019-07-09 12:57:41 -05:00
Nelson R. Perez
7a5a975e4b Renamed method and changed its functionality
- Renamed the 'removeCurrentNodeAndReconnect' as 'reconnectNode' since it will not be removing nodes from the list anymore
- Adapted the sample app to work accordingly
2019-06-24 16:07:11 -05:00
Nelson R. Perez
2a64a9ec22 Merge branch 'develop' of github.com:Agorise/graphenej into develop 2019-06-21 21:08:39 -05:00
Nelson R. Perez
9418ed2b1e Fixing problems with the NetworkServiceManager
- Removed the 'mStartingService' boolean flag from the NetworkServiceManager.
- Introducing the 'passInfo' flag, used to decide whether or not to pass the connection info to the NetworkService calling the 'bootstrapService' method.
2019-06-21 21:07:29 -05:00
Nelson R. Perez
d605a47e0e Reducing the initial connection time from 2000 to 500 ms 2019-06-21 21:02:55 -05:00
Severiano Jaramillo
1f0d616744 Modify autoConnect and verifyLatency behavior
- Added a check to make sure autoConnect=false and verifyLatency=false throw an exception, since that combination would cause the app to never connect to a node.
- Separeted the verifyLatency and autoConnect logic, so that the apps using NetworkService can decide wether to connect or not automatically, independently of verifying the latency.
2019-06-17 16:53:35 -05:00
Nelson R. Perez
562955586b Preventing a potential problem at the NetworkServiceManager and introducing some getters
- Preventing accidentally calling the 'bindService' twice at the NetworkServiceManager
- Providing a getter for the node list at the NodeLatencyVerifier
- Created a getter for the NodeLatencyVerifier at the NetworkService
2019-06-13 07:49:36 -05:00
Nelson R. Perez
b032db80bc Preventing a NPE
- We're now checking that there is a selected node before trying to use it, and in case there is none we schedule a
retry in DEFAULT_INITIAL_DELAY ms.
2019-06-06 15:59:55 -05:00
Severiano Jaramillo
b5e2961834 Convert NetworkService's sendMessage to synchronized, to guarantee thread safety: to avoid issues when calling that method from different threads. 2019-05-22 13:48:49 -05:00
Nelson R. Perez
d29f937045 Updated gradle version 2019-05-06 16:02:40 -05:00
Nelson R. Perez
65b7fef97f Merge branch 'develop' of github.com:Agorise/graphenej into develop 2019-04-04 15:12:47 -05:00
Nelson R. Perez
d72e608807 - Added the required deserialization logic to parse the response to the 'get_objects' API call with an asset bitasset data type
- Removed unresponsive node URLs from the sample app
2019-04-04 15:12:09 -05:00
Nelson R. Perez
c861c72a31 Added a brainkey derivation feature to the sample app 2019-04-04 11:47:35 -05:00