Commit Graph

632 Commits

Author SHA1 Message Date
Carter Jernigan abac552ab5 [#284] Refactor darkside tests to separate module
Simplifies running the SDK test suite versus darkside tests (which require special environment setup).

Note that the darkside tests are still broken.  This is not a regression, as they were broken before.  This is an intermediate step towards fixing those tests.
2021-09-27 14:55:08 -04:00
Francisco Gindre 0b3c0cf4e4
Merge pull request #286 from zcash/285-build-conventions
Refactor Gradle build setup
2021-09-27 15:53:18 -03:00
Carter Jernigan 5730bec3c6 [#256] Configure Gradle Versions Plugin
This will provide reports on dependecy updates that are available.

Its outside the critical path of the build, so it can be readily disabled or replaced in the future.
2021-09-25 12:54:42 -04:00
Carter Jernigan dfe7dad834 [#256] Use Gradle Version Catalog for dependencies 2021-09-25 12:54:42 -04:00
Carter Jernigan 283718de94 [#285] Apply ktlint to demo-app
In the process of refactoring the Gradle scripts, ktlint now is applied to all Gradle modules.  The demo-app hadn't been linted before, so this applies a series of minor autocorrections to this module.
2021-09-25 12:54:42 -04:00
Carter Jernigan 07d02e6cea [#285] Implement gradle build conventions
In addition to using build-conventions to make the build scripts more DRY, the following additional changes are included in this commit:

- Convert build scripts to kts
- Fix a double-build issue with the SDK
- Add configurable options for treating compiler warnings as errors (disabled for now, due to extensive warnings that need to be corrected first)
- Added detekt as an additional static analysis tool
2021-09-25 12:54:42 -04:00
Francisco Gindre c209dc2d0c
Merge pull request #282 from zcash/280-delete-libraries
[#280] Delete old unused SDK libraries
2021-09-17 10:22:19 -03:00
Carter Jernigan 25839cf0fa [#280] Delete old unused SDK libraries
SDK is now compiled from the version in the repo, so we don't need pre-compiled copies anymore
2021-09-15 12:23:31 -04:00
Francisco Gindre 83752e68c1
Merge pull request #279 from ccjernigan/274-typesafe-gradle-modules
[#274] Enable typesafe project dependencies
2021-09-14 09:44:14 -03:00
Francisco Gindre 4529cce6a0
Merge pull request #278 from ccjernigan/268-strict-mode
[#268] Enable strict mode for demo-app
2021-09-14 09:43:47 -03:00
Carter Jernigan 9ed80a5d4a [#274] Enable typesafe project dependencies 2021-09-13 13:42:53 -04:00
Carter Jernigan f4608d6ee1 [#268] Enable strict mode for demo-app 2021-09-13 13:33:05 -04:00
Francisco Gindre a517cf7d21
Merge pull request #277 from ccjernigan/251-rust-plugin
Update to Latest Mozilla Rust Gradle Plugin
2021-09-13 14:30:34 -03:00
Carter Jernigan bc5d27bee2 [#276] Android Gradle Plugin 7.0.2 2021-09-13 13:28:18 -04:00
Carter Jernigan 64ec55b8cf [#273] Gradle 7.2 2021-09-13 13:28:18 -04:00
Carter Jernigan 9b821bbfab [#251] Update to Mozilla Rust Gradle Plugin 0.9.0 2021-09-13 13:28:18 -04:00
Francisco Gindre f66f96aa20
Merge pull request #272 from ccjernigan/270-birthday-fix
#270 Fixes for bad JSON files
2021-09-13 14:16:21 -03:00
Francisco Gindre e01671c288
Merge pull request #275 from ccjernigan/260-jcenter
Fix demo app crashes; update dependencies
2021-09-13 13:58:56 -03:00
Carter Jernigan 3afeb0f688 [#260] Depend on sdk-lib instead of published library
Because the demo app was using an old version of the SDK, this also implements a variety of changes to accomodate the new SDK API
2021-09-13 09:25:27 -04:00
Carter Jernigan a03e3e054f [#265] Update grpc version in demo app 2021-09-12 16:51:19 -04:00
Carter Jernigan fbf4b86662 [#260] Remove repository declaration for JCenter 2021-09-12 16:51:19 -04:00
Carter Jernigan b4b5bead47 [#260] Bump bip39 to 1.0.2
This version is published on Maven Central
2021-09-12 16:51:19 -04:00
Carter Jernigan 568cfa6c4b [#270] Fallback for bad JSON files 2021-09-11 11:43:35 -04:00
Carter Jernigan a58a235d2c [#270] Add regression tests for assets 2021-09-11 11:43:35 -04:00
Carter Jernigan f9d95bca91 [#270] Delete duplicate JSON file
File 900000 is a duplicate of file 580000
2021-09-11 11:43:35 -04:00
Carter Jernigan 7e97786c37 [#270] Fix inconsistent network name in testnet JSON files 2021-09-11 11:43:35 -04:00
Carter Jernigan 8660ed9d57 Fix missing ignore imports 2021-09-11 10:39:20 -04:00
Carter Jernigan ab56052927 Update Vanniktech Gradle plugin to 0.17.0 2021-09-11 10:39:20 -04:00
Carter Jernigan 4d87a360e8 Update documentation for mavenLocal publishing 2021-09-11 10:39:20 -04:00
Carter Jernigan 39f5202f2c Move packages.md
This is a followup fix for changes made with issue #255
2021-09-11 07:27:00 -04:00
Francisco Gindre dd97625581
Merge pull request #267 from zcash/262-target-sdk-31
[#262] Target Android SDK 31
2021-09-05 17:44:51 -03:00
Carter Jernigan b80146e3ec [#262] Target Android SDK 31
Also resolve setting the main activity to exported, which is a new requirement for the new API level
2021-09-01 15:00:25 -04:00
Francisco Gindre 0b6a82b293
Merge pull request #263 from zcash/255-refactor-gradle-modules
CI Integrations
2021-08-31 20:01:37 -03:00
Carter Jernigan 2471389906 [#261] Add property for NDK version 2021-08-31 15:41:39 -04:00
Carter Jernigan f8ed6023c7 Configure lint baseline 2021-08-31 14:57:23 -04:00
Carter Jernigan 8b67ee1e57 Get tests running to completion
Some tests have been disabled to enable tests to actually complete; there are a number of test failures which need to be addressed.

These tests were failing prior to the refactoring.

The disabled tests can be easily found by searching for the Ignore annotation. They also appear in the Junit results window in Android Studio.
2021-08-31 14:57:23 -04:00
Carter Jernigan 93af440726 Add Android Studio run configurations 2021-08-31 14:57:23 -04:00
Carter Jernigan e27a76a4f0 [#258] Remove deprecated `kotlin-android-extensions` plugin 2021-08-31 14:53:25 -04:00
Carter Jernigan 7b28c7ab38 [#255] Fix demo-app paths in readme 2021-08-31 14:53:25 -04:00
Carter Jernigan 2268f814f2 [#255] Refactor Gradle Modules
Move SDK from the root gradle project to its own Gradle module
Move the demo app to be a peer of the SDK

This will simplify integration with CI on Bitrise.
2021-08-31 14:53:25 -04:00
Carter Jernigan 403ac01024 Remove unused CI configuration
Removing this ensures that new contributors aren't confused by a CI configuration that is not used.  A new configuration will be set up on Bitrise

If we ever need this again, it can be restored from the Git history.
2021-08-30 07:37:20 -04:00
Carter Jernigan 92fce7eb64 Delete generated files 2021-08-30 07:37:20 -04:00
Francisco Gindre 5d288e300b
Merge pull request #250 from zcash/fixup/fix-testnet-variant
Fix testnet checkpoint.
2021-08-26 14:32:09 -03:00
nighthawk24 e3a8d189f5 Fix testnet checkpoint.
This change fixes the test-net variant in the client app to build. The checkpoint details can be verified at 38eb76fece/ZcashLightClientKit/Constants/WalletBirthday%2Btestnet.swift
2021-08-26 01:53:03 -04:00
Francisco Gindre 3141af843a
Merge pull request #249 from ccjernigan/setup-fixes
Setup fixes
2021-08-25 18:12:05 -03:00
Francisco Gindre e0b13fcab3
Merge pull request #247 from ccjernigan/correct-license
Correct LICENSE file
2021-08-25 15:21:14 -03:00
Carter Jernigan 8848789b75 Minor updates to the readme
Added instructions for installing Rust with Homebrew, which simplifies setup for many macOS developers.

Add x86_64 target, as the SDK can fail to build out of the box without this option.

Fix instructions for compiling the SDK versus compiling the sample application
2021-08-25 10:07:20 -04:00
Carter Jernigan ec63b6775a Configure automatic Android SDK downloads
The Android Gradle Plugin can automatically install Android SDKs, which can be helpful when new developers want to try checking out and running the project.
2021-08-25 10:07:20 -04:00
Carter Jernigan cfb6e154f2 Reduce dependencies on Bintray/jcenter
Bintray/JCenter have been deprecated, so remove some references have been removed.
2021-08-25 10:07:20 -04:00
Carter Jernigan 73ea4c4db4 Android Gradle Plugin 7.0.1 2021-08-25 10:07:20 -04:00