Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a3d7aa7ce | ||
|
|
c3f821a4d0 | ||
|
|
f9ae611923 | ||
|
|
2c3d69c210 | ||
|
|
458e9e2583 | ||
|
|
00e15a2905 | ||
|
|
b593ac96b2 | ||
|
|
5d94f76a1f | ||
|
|
da6867203f | ||
|
|
3289f5f846 | ||
|
|
b2b121a574 | ||
|
|
42697bfbff | ||
|
|
f83e7b3e73 | ||
|
|
a579caaa0d | ||
|
|
191d83df93 | ||
|
|
2b6ce488da | ||
|
|
2fee69ce7c | ||
|
|
b90facab09 | ||
|
|
8d3f1c94cd | ||
|
|
d47b43bff5 | ||
|
|
9bf5f6d12a | ||
|
|
29e451a326 | ||
|
|
334611ab74 | ||
|
|
9e82f84da1 | ||
|
|
68cfa7d8fe | ||
|
|
223946d35f |
No files matched your search
@@ -0,0 +1,44 @@
|
||||
version: 1.0.{build}
|
||||
|
||||
environment:
|
||||
GH_TOKEN:
|
||||
secure: LiI5jyuHUw6XbH4kC3gP1HX4P/v4rwD/gCNtaFhQu2AvJz1/1wALkp5ECnIxRySN
|
||||
key_pass:
|
||||
secure: u6DydPcdrUJlxGL9uc7yQRYG8+5rY6aAEE9nfCSzFyNzZlX9NniOp8Uh5ZKQqX7bGEngLI6ipbLfiJvn0XFnhbn2iTkOuMqOXVJVOehvwlQ=
|
||||
pfx_key:
|
||||
secure: 1mwqyRy7hDqDjDK+TIAoaXyXzpNgwruFNA6TPkinUcVM7A+NLD33RQLnfnwVy+R5ovD2pUfhQ6+N0Fqebv6tZh436LIEsock+6IOdpgFwrg=
|
||||
AWS_ACCESS_KEY_ID:
|
||||
secure: iVGwoJ7ogspjSmuqr+haVPLglSgQsp6tUZx6mIlKH7Q=
|
||||
AWS_SECRET_ACCESS_KEY:
|
||||
secure: zKaqdZGPl0exDL5YhJkb33prSemC9Rzg9S7Lw2wFy1WnJ6ffgl6mQH7jqJDUTqsY
|
||||
|
||||
#notifications:
|
||||
# - provider: Slack
|
||||
# incoming_webhook:
|
||||
# secure: LuxwG5OZnnA//gmSXzCKu8/FRqYjCgGfVFqajSsGHeQ1HQNp7rYNhQpsO8/3PK63xKJj3wzt86DJekf9q9Q5OcHa9AHXUQbEveX0psd7elw=
|
||||
|
||||
|
||||
clone_folder: c:\projects\lbry
|
||||
|
||||
test_script:
|
||||
- cd C:\projects\lbry\
|
||||
- pip install cython
|
||||
- pip install mock pylint unqlite
|
||||
- pip install .
|
||||
- pylint lbrynet
|
||||
# disable tests for now so that appveyor can build the app
|
||||
- set PYTHONPATH=.
|
||||
- trial tests
|
||||
# TODO: integration tests do not work
|
||||
#- python -m unittest discover tests/integration
|
||||
#- rvm use 2.3.1 && gem install danger --version '~> 4.0' && danger
|
||||
|
||||
|
||||
build_script:
|
||||
- cd C:\projects\lbry\build\
|
||||
- ps: .\build.ps1
|
||||
|
||||
|
||||
artifacts:
|
||||
- path: build\dist\*.zip
|
||||
name: lbrynet-daemon
|
||||
@@ -0,0 +1,20 @@
|
||||
[bumpversion]
|
||||
current_version = 0.15.0
|
||||
commit = True
|
||||
tag = True
|
||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<candidate>\d+))?
|
||||
serialize =
|
||||
{major}.{minor}.{patch}{release}{candidate}
|
||||
{major}.{minor}.{patch}
|
||||
|
||||
[bumpversion:part:candidate]
|
||||
first_value = 1
|
||||
|
||||
[bumpversion:part:release]
|
||||
optional_value = production
|
||||
values =
|
||||
rc
|
||||
production
|
||||
|
||||
[bumpversion:file:lbrynet/__init__.py]
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
<!--
|
||||
Thanks for reporting an issue to LBRY and helping us improve!
|
||||
|
||||
To make it possible for us to help you, please fill out below information carefully.
|
||||
|
||||
Before reporting any issues, please make sure that you're using the latest version.
|
||||
- App releases: https://github.com/lbryio/lbry-app/releases
|
||||
- Standalone daemon: https://github.com/lbryio/lbry/releases
|
||||
|
||||
We are also available on Slack at https://slack.lbry.io
|
||||
-->
|
||||
|
||||
|
||||
## The Issue
|
||||
|
||||
### Steps to reproduce
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
|
||||
### Expected behaviour
|
||||
Tell us what should happen
|
||||
|
||||
### Actual behaviour
|
||||
Tell us what happens instead
|
||||
|
||||
|
||||
## System Configuration
|
||||
|
||||
<!-- For the app, this info is in the About section at the bottom of the Help page.
|
||||
You can include a screenshot instead of typing it out -->
|
||||
|
||||
<!-- For the daemon, run:
|
||||
curl 'http://localhost:5279/lbryapi' --data '{"method":"version"}'
|
||||
and include the full output -->
|
||||
|
||||
- LBRY Daemon version:
|
||||
- LBRY App version:
|
||||
- LBRY Installation ID:
|
||||
- Operating system:
|
||||
|
||||
|
||||
## Anything Else
|
||||
<!-- Include anything else that does not fit into the above sections -->
|
||||
|
||||
|
||||
## Screenshots
|
||||
<!-- If a screenshot would help explain the bug, please include one or two here -->
|
||||
@@ -1,2 +1,25 @@
|
||||
/.idea
|
||||
/.DS_Store
|
||||
*.pyc
|
||||
*.egg
|
||||
*.so
|
||||
*.xml
|
||||
*.iml
|
||||
*.log
|
||||
*.pem
|
||||
*.decTest
|
||||
*.prof
|
||||
.#*
|
||||
|
||||
/build/build
|
||||
/build/dist
|
||||
/bulid/requirements_base.txt
|
||||
|
||||
/lbrynet.egg-info
|
||||
/docs_build
|
||||
/lbry-venv
|
||||
|
||||
.idea/
|
||||
.coverage
|
||||
.DS_Store
|
||||
|
||||
# temporary files from the twisted.trial test runner
|
||||
_trial_temp/
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
# Add files or directories to the blacklist. They should be base names, not
|
||||
# paths.
|
||||
ignore=CVS,schema
|
||||
ignore=CVS
|
||||
|
||||
# Add files or directories matching the regex patterns to the
|
||||
# blacklist. The regex matches against base names, not paths.
|
||||
@@ -24,7 +24,7 @@ persistent=yes
|
||||
load-plugins=
|
||||
|
||||
# Use multiple processes to speed up Pylint.
|
||||
jobs=4
|
||||
jobs=1
|
||||
|
||||
# Allow loading of arbitrary C extensions. Extensions are imported into the
|
||||
# active Python interpreter and may run arbitrary code.
|
||||
@@ -33,7 +33,7 @@ unsafe-load-any-extension=no
|
||||
# A comma-separated list of package or module names from where C extensions may
|
||||
# be loaded. Extensions are loading into the active Python interpreter and may
|
||||
# run arbitrary code
|
||||
# extension-pkg-whitelist=
|
||||
extension-pkg-whitelist=
|
||||
|
||||
# Allow optimization of some AST trees. This will activate a peephole AST
|
||||
# optimizer, which will apply various small optimizations. For instance, it can
|
||||
@@ -60,7 +60,7 @@ confidence=
|
||||
# can either give multiple identifiers separated by comma (,) or put this
|
||||
# option multiple times (only on the command line, not in the configuration
|
||||
# file where it should appear only once).You can also use "--disable=all" to
|
||||
# disable everything first and then re-enable specific checks. For example, if
|
||||
# disable everything first and then reenable specific checks. For example, if
|
||||
# you want to run only the similarities checker, you can use "--disable=all
|
||||
# --enable=similarities". If you want to run only the classes checker, but have
|
||||
# no Warning level messages displayed, use"--disable=all --enable=classes
|
||||
@@ -74,18 +74,24 @@ disable=
|
||||
broad-except,
|
||||
cell-var-from-loop,
|
||||
consider-iterating-dictionary,
|
||||
cyclic-import,
|
||||
dangerous-default-value,
|
||||
duplicate-code,
|
||||
exec-used,
|
||||
fixme,
|
||||
global-statement,
|
||||
inherit-non-class,
|
||||
invalid-name,
|
||||
len-as-condition,
|
||||
locally-disabled,
|
||||
logging-not-lazy,
|
||||
missing-docstring,
|
||||
multiple-imports,
|
||||
no-else-return,
|
||||
no-init,
|
||||
no-member,
|
||||
no-self-use,
|
||||
not-context-manager,
|
||||
protected-access,
|
||||
redefined-builtin,
|
||||
redefined-outer-name,
|
||||
@@ -109,17 +115,9 @@ disable=
|
||||
unnecessary-lambda,
|
||||
unused-argument,
|
||||
unused-variable,
|
||||
wildcard-import,
|
||||
wrong-import-order,
|
||||
wrong-import-position,
|
||||
deprecated-lambda,
|
||||
simplifiable-if-statement,
|
||||
unidiomatic-typecheck,
|
||||
inconsistent-return-statements,
|
||||
keyword-arg-before-vararg,
|
||||
assignment-from-no-return,
|
||||
useless-return,
|
||||
assignment-from-none,
|
||||
stop-iteration-return
|
||||
wrong-import-position
|
||||
|
||||
|
||||
[REPORTS]
|
||||
@@ -288,7 +286,7 @@ spelling-store-unknown-words=no
|
||||
[FORMAT]
|
||||
|
||||
# Maximum number of characters on a single line.
|
||||
max-line-length=120
|
||||
max-line-length=100
|
||||
|
||||
# Regexp for a line that is allowed to be longer than the limit.
|
||||
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
|
||||
@@ -348,13 +346,13 @@ ignore-mixin-members=yes
|
||||
# (useful for modules/projects where namespaces are manipulated during runtime
|
||||
# and thus existing member attributes cannot be deduced by static analysis. It
|
||||
# supports qualified module names, as well as Unix pattern matching.
|
||||
ignored-modules=leveldb,distutils
|
||||
ignored-modules=twisted.internet.reactor,leveldb,distutils
|
||||
# Ignoring distutils because: https://github.com/PyCQA/pylint/issues/73
|
||||
|
||||
# List of classes names for which member attributes should not be checked
|
||||
# (useful for classes with attributes dynamically set). This supports can work
|
||||
# with qualified names.
|
||||
# ignored-classes=
|
||||
ignored-classes=twisted.internet.reactor,RequestMessage
|
||||
|
||||
|
||||
# List of members which are set dynamically and missed by pylint inference
|
||||
@@ -384,7 +382,7 @@ int-import-graph=
|
||||
[DESIGN]
|
||||
|
||||
# Maximum number of arguments for function / method
|
||||
max-args=10
|
||||
max-args=5
|
||||
|
||||
# Argument names that match this expression will be ignored. Default to name
|
||||
# with leading underscore
|
||||
@@ -403,7 +401,7 @@ max-branches=12
|
||||
max-statements=50
|
||||
|
||||
# Maximum number of parents for a class (see R0901).
|
||||
max-parents=8
|
||||
max-parents=7
|
||||
|
||||
# Maximum number of attributes for a class (see R0902).
|
||||
max-attributes=7
|
||||
@@ -1,145 +1,45 @@
|
||||
sudo: required
|
||||
dist: xenial
|
||||
os: linux
|
||||
dist: trusty
|
||||
language: python
|
||||
python: "3.7"
|
||||
python: 2.7
|
||||
|
||||
jobs:
|
||||
include:
|
||||
addons:
|
||||
srcclr:
|
||||
debug: true
|
||||
|
||||
- stage: code quality
|
||||
name: "pylint & mypy"
|
||||
install:
|
||||
- make install
|
||||
script: make lint
|
||||
|
||||
- stage: test
|
||||
name: "LBRY Unit Tests"
|
||||
install:
|
||||
- make install
|
||||
script:
|
||||
- cd lbry && HOME=/tmp coverage run -p --source=lbry -m unittest discover -vv tests.unit
|
||||
after_success:
|
||||
- coverage combine lbry/
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
- name: "LBRY Integration Tests"
|
||||
install:
|
||||
- pip install coverage tox-travis
|
||||
script: cd lbry && tox
|
||||
after_success:
|
||||
- coverage combine lbry
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
- &torba-tests
|
||||
name: "Torba Unit Tests"
|
||||
env: TESTTYPE=unit
|
||||
install:
|
||||
- pip install coverage tox-travis
|
||||
script: cd torba && tox
|
||||
after_success:
|
||||
- coverage combine torba/tests
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
- <<: *torba-tests
|
||||
name: "Torba Integration Tests"
|
||||
env: TESTTYPE=integration
|
||||
|
||||
- name: "Run Examples"
|
||||
install:
|
||||
- make install
|
||||
script:
|
||||
- cd lbry && HOME=/tmp coverage run -p --source=lbry scripts/generate_json_api.py
|
||||
after_success:
|
||||
- coverage combine lbry
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
- &build
|
||||
stage: build
|
||||
name: "Linux"
|
||||
env: OS=linux
|
||||
install:
|
||||
- pip install pyinstaller awscli
|
||||
- cd torba && pip install -e . && cd ..
|
||||
- cd lbry
|
||||
- python scripts/set_build.py
|
||||
- pip install -e .
|
||||
script:
|
||||
- pyinstaller -F -n lbrynet lbry/extras/cli.py
|
||||
- cd dist
|
||||
- chmod +x lbrynet
|
||||
- zip -j lbrynet-${OS}.zip lbrynet
|
||||
- shasum -a 256 -b lbrynet-${OS}.zip
|
||||
- ./lbrynet --version
|
||||
after_success:
|
||||
- aws configure set aws_access_key_id $ARTIFACTS_KEY
|
||||
- aws configure set aws_secret_access_key $ARTIFACTS_SECRET
|
||||
- aws configure set region us-east-1
|
||||
- export S3_PATH="daemon/build-${TRAVIS_BUILD_NUMBER}_commit-${TRAVIS_COMMIT:0:7}_branch-${TRAVIS_BRANCH}$([ ! -z ${TRAVIS_TAG} ] && echo _tag-${TRAVIS_TAG})"
|
||||
- aws s3 cp lbrynet-${OS}.zip s3://build.lbry.io/${S3_PATH}/lbrynet-${OS}.zip
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
secure: "unnR+aSJ1937Cl1PyBBZzGuZvV5W5TGcXELhXTgyOeeI6FgO/j80qmbNxJDA7qdFH/hvVicQFWoflhZu2dxN5rYP5BQJW3q3XoOLY3XAc1s1vicFkwqn3TIfdFiJTz+/D9eBUBBhHKeYFxm3M+thvklTLgjKl6fflh14NfGuNTevK9yQke8wewW3f9UmFTo1qNOPF1OsTZRbwua6oQYa59P+KukoPt4Dsu1VtILtTkj7hfEsUL79cjotwO3gkhYftxbl/xeDSZWOt+9Nhb8ZKmQG/uDx4JiTMm5lWRk4QB7pUujZ1CftxCYWz/lJx9nuJpdCOgP624tcHymErNlD+vGLwMTNslcXGYkAJH6xvGyxBJ+Obc8vRVnZbRM26BfH34TcPK1ueRxHSrDUbzMIIUsgcoZAxBuim8uDPp+K7bGqiygzSs2vQfr9U5Jhe9/F8sPdtNctfJZEfgmthNTeVFjyNsGIfIt754uGSfACqM7wDLh6fbKx7M+FHlNyOdvYCrbKUOAYXmTikYIpVDvlaaeMO+N+uW8Rhvm1j+JU7CVwhMavLySaPVc6Dt5OxiMMmxw9mVrjW9bBPjS5AkrS5MOA13T5wapoLzH6+gE92U4HzA6ilMcwRaQPSFnK2JU7tzyt2Wy1PH4MjHowXI2WyICG1x510dD3tX1P/1px8ro="
|
||||
file: lbrynet-${OS}.zip
|
||||
skip_cleanup: true
|
||||
overwrite: true
|
||||
draft: true
|
||||
on:
|
||||
tags: true
|
||||
|
||||
- <<: *build
|
||||
name: "Mac"
|
||||
os: osx
|
||||
osx_image: xcode8.3
|
||||
language: shell
|
||||
env: OS=mac
|
||||
before_install:
|
||||
- brew upgrade python || true
|
||||
- pip3 install --user --upgrade pip virtualenv
|
||||
- /Users/travis/Library/Python/3.7/bin/virtualenv $HOME/venv
|
||||
- source $HOME/venv/bin/activate
|
||||
before_cache:
|
||||
- brew cleanup
|
||||
|
||||
- <<: *build
|
||||
name: "Windows"
|
||||
os: windows
|
||||
language: shell
|
||||
env:
|
||||
- OS=windows
|
||||
- PATH=/c/Python37:/c/Python37/Scripts:/C/Windows/System32/downlevel:$PATH
|
||||
before_install:
|
||||
- choco install python --x86
|
||||
- python -m pip install --upgrade pip
|
||||
- pip install pywin32
|
||||
script:
|
||||
- pyinstaller --additional-hooks-dir=scripts/. --icon=icons/lbry256.ico -F -n lbrynet lbry/extras/cli.py
|
||||
- cd dist
|
||||
- 7z a -tzip lbrynet-windows.zip lbrynet.exe
|
||||
- sha256sum -b lbrynet-windows.zip
|
||||
- ./lbrynet.exe --version
|
||||
- if: tag IS present
|
||||
stage: build
|
||||
name: "Wallet Server Docker Image - Tagged Release"
|
||||
script:
|
||||
- set -e
|
||||
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
|
||||
- travis_retry docker build -t lbry/wallet-server:$TRAVIS_TAG -f lbry/scripts/Dockerfile.wallet_server .
|
||||
- docker push lbry/wallet-server:$TRAVIS_TAG
|
||||
|
||||
- if: tag IS blank AND branch = master AND NOT type IN (pull_request)
|
||||
stage: build
|
||||
name: "Wallet Server Docker Image - Master"
|
||||
script:
|
||||
- set -e
|
||||
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
|
||||
- travis_retry docker build -t lbry/wallet-server:master -f lbry/scripts/Dockerfile.wallet_server .
|
||||
- docker push lbry/wallet-server:master
|
||||
notifications:
|
||||
slack:
|
||||
secure: "Am13HPtpgCMljh0MDVuoFHvQXB8yhf4Kvf/qAeSp5N0vsHGL70CSF9Ahccw8dVPE6mbuak1OGtSUb6/UaErLHkpz3ztaRLkDa9x7CmBB3Kynnh8oO2VbB7b/2ROULqkhF4VZmAnNfwrQrbC3gs8Sybp261Nyc7y4ww15xDYBrk2fyq4ds2DCaJdRxfJUJFonrZ6KXr3fVaXosO6cjuyS8eRodcmrqsT4cCtinjNTD1hGWoH107E4ObSmpVelxQO193KhNJMRiLlEcVkvYUOqIWBtwdGHbNE/6Yeuq1TXgKJ0KeJWAmW3wTfUYNngGXNAsyCnrhul5TKNevNzfIAQZHvRsczYiWPJV6LtohHT0CcUiCXJtvEPOyahEBfwK3etY/xxFqny7N9OEmpdW2sgsEPNPX2LJynJti2rQA9SuAD1ogR3ZpDy/NXoaAZf8PTdPcuNUMULV9PGG7tVrLBecO/W1qO6hdFxwlLdgqGLxAENZgGp++v/DhPk/WvtmHj7iTbRq0nxaTWyX5uKOn2ADH+k/yfutjv6BsQU9xNyPeZEEtuEpc6X6waiYn/8G9vl9PecvKC5H0MgsZ6asAxmg7mZ3VSMFG7mo8ENeOhSZ0Oz6ZTBILL3wFccZA9uJIq7NWmqC9dRiGiuKXBB62No7sINoHg3114e2xYa9qvNmGg="
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/venv
|
||||
- $HOME/.cache/pip
|
||||
- $HOME/Library/Caches/pip
|
||||
- $HOME/Library/Caches/Homebrew
|
||||
- $TRAVIS_BUILD_DIR/.tox
|
||||
- $TRAVIS_BUILD_DIR/cache/wheel
|
||||
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- libgmp3-dev
|
||||
- build-essential
|
||||
- git
|
||||
- libssl-dev
|
||||
- libffi-dev
|
||||
|
||||
before_install:
|
||||
- virtualenv venv
|
||||
- source venv/bin/activate
|
||||
|
||||
install:
|
||||
- pip install -U pip
|
||||
- pip install -r requirements.txt
|
||||
- pip install .
|
||||
|
||||
script:
|
||||
- pip install cython
|
||||
- pip install mock pylint unqlite
|
||||
- pylint lbrynet
|
||||
- PYTHONPATH=. trial tests
|
||||
- python -m unittest discover tests/integration
|
||||
- rvm install ruby-2.3.1
|
||||
- rvm use 2.3.1 && gem install danger --version '~> 4.0' && danger
|
||||
@@ -4,523 +4,38 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/) with
|
||||
regard to the json-rpc api. As we're currently pre-1.0 release, we
|
||||
can and probably will change functionality and break backwards compatibility
|
||||
can and probably will change functionality and break backwards compatability
|
||||
at anytime.
|
||||
|
||||
|
||||
## [0.30.1] - 2018-12-09
|
||||
|
||||
### API
|
||||
* add `aioupnp_version` to `upnp` field in the response to `status`
|
||||
* fixed uncaught claim signature errors
|
||||
* `--blocking` support for `abandon` command (https://github.com/lbryio/lbry/pull/1618)
|
||||
* don't create SSL keys if SSL is disabled (https://github.com/lbryio/lbry/pull/1644)
|
||||
* added `account_send` command (https://github.com/lbryio/lbry/pull/1654)
|
||||
* fixes for claim send to address (https://github.com/lbryio/lbry/pull/1651)
|
||||
* better handle errors on resolve (https://github.com/lbryio/lbry/pull/1662)
|
||||
* fix `transaction_show` (https://github.com/lbryio/lbry/pull/1689)
|
||||
|
||||
### Schema
|
||||
* merged `lbryschema` repository into `lbrynet` (https://github.com/lbryio/lbry/pull/1444)
|
||||
* updated `protobuf` to `3.2.0` (https://github.com/lbryio/lbry/issues/1602)
|
||||
* use `types` repo for generating python protobufs (https://github.com/lbryio/lbry/pull/1605)
|
||||
|
||||
### Wallet
|
||||
* fixed resolving names with invalid channel signatures
|
||||
* fixed wallet sync issues
|
||||
* fixed wallet locking/encryption issues
|
||||
|
||||
### DHT
|
||||
* fixed retrying kademlia rpc calls (https://github.com/lbryio/lbry/pull/1495)
|
||||
* fixed `KeyError` in `iterativeFindValue`, this is used by `peer_list` and when finding peers to download blobs from (https://github.com/lbryio/lbry/issues/1638)
|
||||
* settings external ip address and ability to disable more DHT components (https://github.com/lbryio/lbry/pull/1604)
|
||||
* improved routing table bucket initialization (https://github.com/lbryio/lbry/pull/1633)
|
||||
|
||||
### Database
|
||||
* resolved too many variables in sqlite issue (https://github.com/lbryio/lbry/pull/1612)
|
||||
|
||||
### Misc
|
||||
* switch to Python 3.7
|
||||
* brought back icon for windows binary
|
||||
* using custom list of mime types with more types (https://github.com/lbryio/lbry/pull/1700)
|
||||
* add balance to startup report (https://github.com/lbryio/lbry/pull/1613)
|
||||
* drop `six` dependency (https://github.com/lbryio/lbry/pull/1660)
|
||||
* drop `mock` dependency (https://github.com/lbryio/lbry/pull/1661)
|
||||
|
||||
## [0.30.0] - 2018-10-22
|
||||
This release is the most ambitious upgrade to lbrynet yet; including a brand
|
||||
new wallet implementation, switch to Python 3 of the entire code base and
|
||||
many changes to the API such as pagination and a more consistent output from
|
||||
most commands.
|
||||
|
||||
|
||||
## [Unreleased]
|
||||
### Security
|
||||
* upgraded `cryptography` package.
|
||||
* switch to `coincurve` for private / public key generation (addresses)
|
||||
* support for connecting to daemon via SSL
|
||||
* improved workflow for encrypt/decrypt of wallet
|
||||
*
|
||||
*
|
||||
|
||||
### API
|
||||
* unified all command line executables into a single `lbrynet` executable.
|
||||
* added `use_https` configuration setting (off by default), if true the api
|
||||
server will generate a self signed ssl certificate when started and only
|
||||
handle api requests on the https address (default of `https://localhost:5279/lbryapi`)
|
||||
* deprecated `daemon_stop` command, use `stop` instead.
|
||||
* deprecated `wallet_balance` command, use `account_balance` instead.
|
||||
* deprecated `wallet_unlock` command, use `account_unlock` instead.
|
||||
* deprecated `wallet_decrypt` command, use `account_decrypt` instead.
|
||||
* deprecated `wallet_encrypt` command, use `account_encrypt` instead.
|
||||
* deprecated `wallet_prefill_addresses` command, use `account_fund` instead.
|
||||
* deprecated `wallet_list` command, use `address_list` instead.
|
||||
* deprecated `wallet_is_address_mine` command, use `address_is_mine` instead.
|
||||
* deprecated `wallet_public_key` command.
|
||||
* deprecated `wallet_new_address` command.
|
||||
* deprecated `wallet_unused_address` command, use `address_unused` instead.
|
||||
* deprecated `claim_renew` command.
|
||||
* added `account_list` command to list accounts including their balance.
|
||||
* added `account_add` command to add a previously created account from seed or private key.
|
||||
* added `account_create` command to generate a new account.
|
||||
* added `account_remove` command to remove an account from wallet.
|
||||
* added `account_set` command to change a setting on an account.
|
||||
* added `account_balance` command to get just the account balance.
|
||||
* added `account_unlock` command to unlock an encrypted account.
|
||||
* added `account_lock` command to lock an encrypted account.
|
||||
* added `account_encrypt` command to encrypt an account.
|
||||
* added `account_decrypt` command to decrypt an account.
|
||||
* added `account_fund` command to move funds between or within an account in various ways.
|
||||
* added `account_max_address_gap` command to find large gaps of unused addresses.
|
||||
* added `address_list` command to list addresses.
|
||||
* added `address_is_mine` command to check if an address is one of your addresses.
|
||||
* added `address_unused` command to get existing or generate a new unused address.
|
||||
* added pagination support for `address_list`, `channel_list`, `claim_list_mine`,
|
||||
`transaction_list` and `utxo_list`.
|
||||
* added `upnp` field to `status` response
|
||||
* removed `send_amount_to_address` command previously marked as deprecated
|
||||
* removed `channel_list_mine` command previously marked as deprecated
|
||||
* removed `get_availability` command previously marked as deprecated
|
||||
* updated `txupnp` dependency to `aioupnp` (UPnP for asyncio)
|
||||
|
||||
### Wallet
|
||||
* changed to a new wallet implementation: [torba](https://github.com/lbryio/torba).
|
||||
* changed wallet file format to support multiple accounts in one wallet.
|
||||
* moved transaction data from wallet file into an sqlite database.
|
||||
* changed channel certificates to be keyed by txid:nout instead of claim_id which
|
||||
makes it possible to recover old certificates.
|
||||
|
||||
### File Manager
|
||||
* Extensive internal changes as a result of porting to Python 3.
|
||||
|
||||
### DHT
|
||||
* Extensive internal changes as a result of porting to Python 3.
|
||||
|
||||
### P2P
|
||||
* Extensive internal changes as a result of porting to Python 3.
|
||||
|
||||
### Reflector
|
||||
* No major changes to reflector.
|
||||
|
||||
### Database
|
||||
* No changes to existing storage module.
|
||||
|
||||
### Known Issues
|
||||
* Channel certificate import/export is currently not working.
|
||||
|
||||
## [0.21.2] - 2018-08-23
|
||||
### Fixed
|
||||
* issue in dht ping queue where enqueued pings that aren't yet due wouldn't be rescheduled
|
||||
* blob mirror downloader not finishing streams that were partially uploaded at the time of the download attempt (https://github.com/lbryio/lbry/issues/1376)
|
||||
|
||||
|
||||
## [0.21.1] - 2018-08-13
|
||||
### Fixed
|
||||
* `download_progress` field in `blockchain_headers` section of `status` not initializing correctly when resuming a download (https://github.com/lbryio/lbry/issues/1355)
|
||||
* `wallet_send` not accepting decimal amounts (https://github.com/lbryio/lbry/issues/1356 commit https://github.com/lbryio/lbry/commit/1098ca0494ece420c70fc57f69d6d388715a99b8)
|
||||
|
||||
### Added
|
||||
* `is_locked` to `wallet` in `status` response (https://github.com/lbryio/lbry/issues/1354, commit https://github.com/lbryio/lbry/commit/153022a1a7122ab6d31d3db433dccbe469bbcb3c)
|
||||
|
||||
### Changed
|
||||
* Bumped `lbryum` requirement to 3.2.4 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#324---2018-08-13)
|
||||
|
||||
## [0.21.0] - 2018-08-09
|
||||
### Fixed
|
||||
* check `claim_address` and `change_address` earlier on publishing, to avoid hard to understand errors later in the process (pr https://github.com/lbryio/lbry/pull/1347)
|
||||
* loggly error reporting not following `share_usage_data` (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* improper error handling when data is not valid JSON (pr https://github.com/lbryio/lbry/pull/1326)
|
||||
* blob mirroring being set in unrelated tests, making them fail (pr https://github.com/lbryio/lbry/pull/1348)
|
||||
* http blob mirroring edge cases (pr https://github.com/lbryio/lbry/pull/1315)
|
||||
* external ports in log messages not showing the correct external port from the upnp redirects (https://github.com/lbryio/lbry/issues/1338) (pr https://github.com/lbryio/lbry/pull/1349)
|
||||
* miniupnpc fallback issues in txupnp (https://github.com/lbryio/lbry/issues/1341) (pr https://github.com/lbryio/lbry/pull/1349)
|
||||
* upnp error when disabled on router and a non-gateway is found, such as chromecast (https://github.com/lbryio/lbry/issues/1352) (https://github.com/lbryio/lbry/commit/dca4af942fbe95547794213775f0a62cd04a393f)
|
||||
*
|
||||
*
|
||||
|
||||
### Deprecated
|
||||
* automatic claim renew, this is no longer needed
|
||||
*
|
||||
*
|
||||
|
||||
### Changed
|
||||
* api server class to use components, and for all JSONRPC API commands to be callable so long as the required components are available. (pr https://github.com/lbryio/lbry/pull/1294)
|
||||
* return error messages when required conditions on components are not met for API calls (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* `status` to no longer return a base58 encoded `lbry_id`, instead return this as the hex encoded `node_id` in a new `dht` field. (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* `startup_status` field in the response to `status` to be a dict of component names to status booleans (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* renamed the `blockchain_status` field in the response to `status` to `wallet` (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* moved and renamed `wallet_is_encrypted` to `is_encrypted` in the `wallet` field in the response to `status` (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* moved wallet, upnp and dht startup code from `Session` to `Components` (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* attempt blob downloads from http mirror sources (by default) concurrently to p2p sources (pr https://github.com/lbryio/lbry/pull/1233)
|
||||
* replace miniupnpc with [txupnp](https://github.com/lbryio/txupnp). Since txupnp is still under development, it will internally fall back to miniupnpc. (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* simplified test_misc.py in the functional tests (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* update `cryptography` requirement to 2.3 (pr https://github.com/lbryio/lbry/pull/1333)
|
||||
*
|
||||
*
|
||||
|
||||
### Added
|
||||
* `skipped_components` list to the response from `status` (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* component statuses (`blockchain_headers`, `dht`, `wallet`, `blob_manager` `hash_announcer`, and `file_manager`) to the response to `status` (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* `skipped_components` config setting, accepts a list of names of components to not run (pr https://github.com/lbryio/lbry/pull/1294)
|
||||
* `ComponentManager` for managing the life-cycles of dependencies (pr https://github.com/lbryio/lbry/pull/1294)
|
||||
* `requires` decorator to register the components required by a `jsonrpc_` command, to facilitate commands registering asynchronously (pr https://github.com/lbryio/lbry/pull/1294)
|
||||
* unit tests for `ComponentManager` (pr https://github.com/lbryio/lbry/pull/1294)
|
||||
* script to generate docs/api.json file (https://github.com/lbryio/lbry.tech/issues/42)
|
||||
* additional information to the balance error message when editing a claim (pr https://github.com/lbryio/lbry/pull/1309)
|
||||
* `address` and `port` arguments to `peer_ping` (https://github.com/lbryio/lbry/issues/1313) (pr https://github.com/lbryio/lbry/pull/1299)
|
||||
* ability to download from HTTP mirrors by setting `download_mirrors` (prs https://github.com/lbryio/lbry/pull/1233 and https://github.com/lbryio/lbry/pull/1315)
|
||||
* ability to filter peers from an iterative find value operation (finding peers for a blob). This is used to filter peers we've already found for a blob when accumulating the list of peers. (pr https://github.com/lbryio/lbry/pull/1287)
|
||||
*
|
||||
*
|
||||
|
||||
### Removed
|
||||
* `session_status` argument and response field from `status` (pr https://github.com/lbryio/lbry/pull/1328)
|
||||
* most of the internal attributes from `Daemon` (pr https://github.com/lbryio/lbry/pull/1294)
|
||||
*
|
||||
*
|
||||
|
||||
|
||||
## [0.20.4] - 2018-07-18
|
||||
### Fixed
|
||||
* spelling errors in messages printed by `lbrynet-cli`
|
||||
* high CPU usage when a stream is incomplete and the peers we're requesting from have no more blobs to send us (https://github.com/lbryio/lbry/pull/1301)
|
||||
|
||||
## [0.16.4] - 2017-10-02
|
||||
### Changed
|
||||
* keep track of failures for DHT peers for up to ten minutes instead of indefinitely (https://github.com/lbryio/lbry/pull/1300)
|
||||
* skip ignored peers from iterative lookups instead of blocking the peer who returned them to us too (https://github.com/lbryio/lbry/pull/1300)
|
||||
* if a node becomes ignored during an iterative find cycle remove it from the shortlist so that we can't return it as a result nor try to probe it anyway (https://github.com/lbryio/lbry/pull/1303)
|
||||
|
||||
|
||||
## [0.20.3] - 2018-07-03
|
||||
### Fixed
|
||||
* `blob_list` raising an error when blobs in a stream haven't yet been created (8a0d0b44ddf9cbeb2a9074eed39d6064ce21df64)
|
||||
* stopping a download potentially raising an attribute error (https://github.com/lbryio/lbry/pull/1269)
|
||||
* file manager startup locking up when there are many files for some channels (https://github.com/lbryio/lbry/pull/1281)
|
||||
* improper sorting when getting the closest peers to a hash (https://github.com/lbryio/lbry/pull/1282)
|
||||
|
||||
### Changed
|
||||
* raised the default `peer_search_timeout` setting from 3 to 30 and added logging for when it happens (https://github.com/lbryio/lbry/pull/1283)
|
||||
* change iterative find stop condition on find value to allow it to continue until a value is found or it times out (https://github.com/lbryio/lbry/pull/1283)
|
||||
* include all of our own blobs in the local dht datastore (as if we had announced them to ourselves) (https://github.com/lbryio/lbry/pull/1280)
|
||||
* ignore dht `store` token validation errors for the first expiration-time after startup (fixes failed `store` requests after a restart) (https://github.com/lbryio/lbry/pull/1280)
|
||||
|
||||
### Removed
|
||||
* `jsonrpclib` as a requirement for the project (https://github.com/lbryio/lbry/pull/1274)
|
||||
|
||||
|
||||
## [0.20.2] - 2018-06-23
|
||||
### Changed
|
||||
* Bumped `lbryschema` requirement to 0.0.16 [see changelog](https://github.com/lbryio/lbryschema/blob/master/CHANGELOG.md#0016---2018-06-23)
|
||||
* Bumped `lbryum` requirement to 3.2.3 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#323---2018-06-23)
|
||||
* save claims to sqlite in batches to speed up `resolve` queries for many uris
|
||||
|
||||
|
||||
## [0.20.1] - 2018-06-19
|
||||
### Fixed
|
||||
* fixed token validation error when the dht node has just been started (https://github.com/lbryio/lbry/issues/1248)
|
||||
* fixed a race condition when inserting a blob into the database (https://github.com/lbryio/lbry/issues/1129)
|
||||
* reflector server incorrectly responding as if it has all the blobs for a stream that was only partially uploaded to it
|
||||
* `publish` raising a database error when updating a claim that we don't have a file for (https://github.com/lbryio/lbry/issues/1165)
|
||||
* blob client protocol not tearing itself down properly after a failure (https://github.com/lbryio/lbry/issues/950)
|
||||
* lockup in wallet startup when one or more lbryumx servers are unavailable (https://github.com/lbryio/lbry/issues/1245)
|
||||
* download being stopped if the sd blob downloaded and data did not start within the timeout (https://github.com/lbryio/lbry/issues/1172)
|
||||
|
||||
### Changed
|
||||
* Bumped `lbryum` requirement to 3.2.2 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#322---2018-06-19)
|
||||
* `publish` to accept bid as a decimal string
|
||||
|
||||
|
||||
## [0.20.0] - 2018-06-13
|
||||
|
||||
### TL;DR
|
||||
This milestone release includes a large number of bug fixes, changes and additions covering all aspects of the daemon. Notable improvements include:
|
||||
|
||||
* Faster and more reliable downloading and uploading of content resulting from substantial work done on the Distributed Hash Table algorithms and protocol.
|
||||
* Faster blockchain synchronization (headers) by downloading them from Amazon S3 under certain conditions.
|
||||
* Faster overall app startup due to better optimized SQL queries.
|
||||
* Power users of the `lbrynet-cli` will benefit from many bug fixes to commonly used commands and improvements in sorting of output.
|
||||
* Please review the full change log for more details on specific fixes, changes and additions.
|
||||
|
||||
### Fixed
|
||||
* fix payment rate manager typo ([1236](https://github.com/lbryio/lbry/pull/1236))
|
||||
* handling error from dht clients with old `ping` method
|
||||
* blobs not being re-announced if no peers successfully stored, now failed announcements are re-queued
|
||||
* issue where an `AuthAPIClient` (used by `lbrynet-cli`) would fail to update its session secret and keep making new auth sessions, with every other request failing
|
||||
* `use_auth_http` in a config file being overridden by the default command line argument to `lbrynet-daemon`, now the command line value will only override the config file value if it is provided
|
||||
* `lbrynet-cli` not automatically switching to the authenticated client if the server is detected to be using authentication. This resulted in `lbrynet-cli` failing to run when `lbrynet-daemon` was run with the `--http-auth` flag
|
||||
* fixed error when using `claim_show` with `txid` and `nout` arguments
|
||||
* fixed error when saving server list to conf file ([1209](https://github.com/lbryio/lbry/pull/1209))
|
||||
|
||||
### Changed
|
||||
* if the `use_authentication` setting is configured, use authentication for all api methods instead of only those with the `auth_required` decorator
|
||||
* regenerate api keys on startup if the using authentication
|
||||
* support both positional and keyword args for api calls
|
||||
* `blob_announce` to queue the blob announcement but not block on it
|
||||
* `peer_list` to return a list of dictionaries instead of a list of lists, added peer node ids to the results
|
||||
* predictable result sorting for `claim_list` and `claim_list_mine` ([1216](https://github.com/lbryio/lbry/pull/1216) and [1208](https://github.com/lbryio/lbry/pull/1208))
|
||||
* increase the default `auto_re_reflect_interval` setting to a day and the default `concurrent_announcers` setting to 10
|
||||
* download blockchain headers from s3 before starting the wallet when the local height is more than `s3_headers_depth` (a config setting) blocks behind ([1177](https://github.com/lbryio/lbry/pull/1177))
|
||||
* check headers file integrity on startup, removing/truncating the file to force re-download when necessary
|
||||
* support partial headers file download from S3 ([1189](https://github.com/lbryio/lbry/pull/1189))
|
||||
* refactor `add_completed_blobs` on storage.py, simplifying into less queries ([1226](https://github.com/lbryio/lbry/pull/1226))
|
||||
* full verification of streams only during database migration instead of every startup ([1195](https://github.com/lbryio/lbry/pull/1195))
|
||||
* database batching functions for starting up the file manager
|
||||
* added `single_announce` and `last_announced_time` columns to the `blob` table in sqlite
|
||||
* track successful reflector uploads in sqlite to minimize how many streams are attempted by auto re-reflect ([1194](https://github.com/lbryio/lbry/pull/1194))
|
||||
* pass the sd hash to reflector ClientFactory instead of looking it up from the database
|
||||
* dht logging to be more verbose with errors and warnings
|
||||
* `store` kademlia rpc method to block on the call finishing and to return storing peer information
|
||||
* kademlia protocol to minimally delay writes to the UDP socket
|
||||
* several internal dht functions to use inlineCallbacks
|
||||
* `DHTHashAnnouncer` and `Node` manage functions to use `LoopingCall`s instead of scheduling with `callLater`.
|
||||
* refactored `DHTHashAnnouncer` to no longer use locks, use a `DeferredSemaphore` to limit concurrent announcers
|
||||
* decoupled `DiskBlobManager` from `DHTHashAnnouncer`, get blob hashes to announce from `SQLiteStorage`. The blob manager no longer announces blobs after they are completed, the hash announcer takes care of this now.
|
||||
* changed the bucket splitting condition in the dht routing table to be more aggressive
|
||||
* ping dht nodes who have stored to us periodically to determine whether we should include them as an active peer for the hash when we are queried. Nodes that are known to be not reachable by the node storing the record are no longer returned as peers by the storing node.
|
||||
* changed dht bootstrap join process to better populate the routing table initially
|
||||
* cache dht node tokens used during announcement to minimize the number of requests that are needed
|
||||
* implement BEP0005 dht rules to classify nodes as good, bad, or unknown and for when to add them to the routing table (http://www.bittorrent.org/beps/bep_0005.html)
|
||||
* refactored internal dht contact class to track failure counts/times, the time the contact last replied to us, and the time the node last requested something fom us ([1211](https://github.com/lbryio/lbry/pull/1211))
|
||||
* refactored dht iterativeFind
|
||||
* sort dht contacts returned by `findCloseNodes` in the routing table
|
||||
* `reactor` and `callLater`, `listenUDP`, and `resolve` functions to be configurable (to allow easier testing)
|
||||
* calls to get the current time to use `reactor.seconds` (to control callLater and LoopingCall timing in tests)
|
||||
* temporarily disabled data price negotiation, treat all data as free
|
||||
* disabled Cryptonator price feed
|
||||
* use `treq` instead of `txrequests` ([1191](https://github.com/lbryio/lbry/pull/1191))
|
||||
* updated `cryptography` version to 2.2.2
|
||||
* removed `pycrypto` dependency, replacing all calls to `cryptography`
|
||||
|
||||
### Added
|
||||
* `peer_ping` command
|
||||
* `--sort` option in `file_list` ([1174](https://github.com/lbryio/lbry/pull/1174))
|
||||
* `port` field to contacts returned by `routing_table_get`
|
||||
* configurable `concurrent_announcers` and `s3_headers_depth` settings
|
||||
* virtual kademlia network and mock udp transport for dht integration tests
|
||||
* functional tests for bootstrapping the dht, announcing and expiring hashes, finding and pinging nodes, protocol version 0/1 backwards/forwards compatibility, and rejoining the network
|
||||
* linux distro and desktop name added to analytics ([1218](https://github.com/lbryio/lbry/pull/1218))
|
||||
* certifi module for Twisted SSL verification on Windows ([1213](https://github.com/lbryio/lbry/pull/1213))
|
||||
* protocol version to dht requests and to the response from `findValue`
|
||||
|
||||
### Removed
|
||||
* `announce_all` argument from `blob_announce`
|
||||
* old `blob_announce_all` command
|
||||
* unused `--wallet` argument to `lbrynet-daemon`, which used to be to support `PTCWallet`.
|
||||
* `AuthJSONRPCServer.auth_required` decorator ([1161](https://github.com/lbryio/lbry/pull/1161))
|
||||
* `OptimizedTreeRoutingTable` class used by the dht node for the time being
|
||||
|
||||
|
||||
## [0.19.3] - 2018-05-04
|
||||
### Changed
|
||||
* download blockchain headers from s3 before starting the wallet when the local height is more than s3_headers_depth (a config setting) blocks behind (https://github.com/lbryio/lbry/pull/1177)
|
||||
* un-deprecated report_bug command (https://github.com/lbryio/lbry/commit/f8e418fb4448a3ed1531657f8b3c608fb568af85)
|
||||
|
||||
## [0.19.2] - 2018-03-28
|
||||
### Fixed
|
||||
* incorrectly raised download cancelled error for already verified blob files
|
||||
* infinite loop where reflector client keeps trying to send failing blobs, which may be failing because they are invalid and thus will never be successfully received
|
||||
* docstring bugs for `stream_availability`, `channel_import`, and `blob_announce`
|
||||
|
||||
### Added
|
||||
* `blob_reflect` command to send specific blobs to a reflector server
|
||||
* unit test for docopt
|
||||
|
||||
### Removed
|
||||
* `flags` decorator from server.py as short flags are no longer used when using api/cli methods
|
||||
|
||||
### Changed
|
||||
* Bumped `lbryum` requirement to 3.2.1 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#321---2018-03-28)
|
||||
|
||||
## [0.19.1] - 2018-03-20
|
||||
### Fixed
|
||||
* Fixed the inconsistencies in API and CLI docstrings
|
||||
* `blob_announce` error when announcing a single blob
|
||||
* `blob_list` error when looking up blobs by stream or sd hash ([1126](https://github.com/lbryio/lbry/pull/1126))
|
||||
* Claiming a channel with the exact amount present in wallet would return a confusing error ([1107](https://github.com/lbryio/lbry/issues/1107))
|
||||
* Channel creation to use same bid logic as for claims ([1148](https://github.com/lbryio/lbry/pull/1148))
|
||||
|
||||
### Deprecated
|
||||
* `report_bug` jsonrpc command
|
||||
|
||||
### Changed
|
||||
* Bumped `lbryschema` requirement to 0.0.15 [see changelog](https://github.com/lbryio/lbryschema/blob/master/CHANGELOG.md#0015---2018-03-20)
|
||||
* Bumped `lbryum` requirement to 3.2.0 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#320---2018-03-20)
|
||||
* Reflector server to periodically check and set `should_announce` for sd and head blobs instead of during each request
|
||||
* Reflector server to use `SQLiteStorage` to find needed blob hashes for a stream
|
||||
|
||||
### Added
|
||||
* Scripts to auto-generate documentation ([1128](https://github.com/lbryio/lbry/pull/1128))
|
||||
* Now updating new channel also takes into consideration the original bid amount, so now channel could be updated for wallet balance + the original bid amount ([1137](https://github.com/lbryio/lbry/pull/1137))
|
||||
* Forward-compatibility for upcoming DHT bencoding changes
|
||||
|
||||
### Removed
|
||||
* Short(single dashed) arguments for `lbrynet-cli`
|
||||
|
||||
|
||||
## [0.19.0] - 2018-03-02
|
||||
### Fixed
|
||||
* improper parsing of arguments to CLI settings_set (https://github.com/lbryio/lbry/issues/930)
|
||||
* unnecessarily verbose exchange rate error (https://github.com/lbryio/lbry/issues/984)
|
||||
* value error due to a race condition when saving to the claim cache (https://github.com/lbryio/lbry/issues/1013)
|
||||
* being unable to re-download updated content (https://github.com/lbryio/lbry/issues/951)
|
||||
* sending error messages for failed api requests
|
||||
* file manager startup being slow when handling thousands of files
|
||||
* handling decryption error for blobs encrypted with an invalid key
|
||||
* handling stream with no data blob (https://github.com/lbryio/lbry/issues/905)
|
||||
* fetching the external ip
|
||||
* `blob_list` returning an error with --uri parameter and incorrectly returning `[]` for streams where blobs are known (https://github.com/lbryio/lbry/issues/895)
|
||||
* `get` failing with a non-useful error message when given a uri for a channel claim
|
||||
* exception checking in several wallet unit tests
|
||||
* daemon not erring properly for non-numeric values being passed to the `bid` parameter for the `publish` method
|
||||
* `publish` command to allow updating claims with a `bid` amount higher than the wallet balance, so long as the amount is less than the wallet balance plus the bid amount of the claim being updated (https://github.com/lbryio/lbry/issues/748)
|
||||
* incorrect `blob_num` for the stream terminator blob, which would result in creating invalid streams. Such invalid streams are detected on startup and are automatically removed (https://github.com/lbryio/lbry/issues/1124)
|
||||
|
||||
### Deprecated
|
||||
* `channel_list_mine`, replaced with `channel_list`
|
||||
* `get_availability`, replaced with `stream_availability`
|
||||
|
||||
### Changed
|
||||
* dht tests to only be in one folder
|
||||
* config file format of `known_dht_nodes`, `lbryum_servers`, and `reflector_servers` to lists of `hostname:port` strings
|
||||
* startup of `lbrynet-daemon` to block on the wallet being unlocked if it is encrypted
|
||||
* `publish` to verify the claim schema before trying to make the claim and to return better error messages
|
||||
* `channel_list_mine` to be instead named `channel_list`
|
||||
* `channel_list` to include channels where the certificate info has been imported but the claim is not in the wallet
|
||||
* file objects returned by `file_list` and `get` to contain `claim_name` field instead of `name`
|
||||
* `name` filter parameter for `file_list`, `file_set_status`, `file_reflect`, and `file_delete` to be named `claim_name`
|
||||
* `metadata` field in file objects returned by `file_list` and `get` to be a [Metadata object](https://github.com/lbryio/lbryschema/blob/master/lbryschema/proto/metadata.proto#L5)
|
||||
* assumption for time it takes to announce single hash from 1 second to 5 seconds
|
||||
* HTTP error codes for failed api requests, conform to http://www.jsonrpc.org/specification#error_object (previously http errors were set for jsonrpc errors)
|
||||
* api requests resulting in errors to return less verbose tracebacks
|
||||
* logging about streams to not include file names (only include sd hashes)
|
||||
* wallet info exchange to re-use addresses, this was a significant source of address bloat in the wallet
|
||||
* lbrynet to not manually save the wallet file and to let lbryum handle it
|
||||
* internals to use reworked lbryum `payto` command
|
||||
* dht `Node` class to re-attempt joining the network every 60 secs if no peers are known
|
||||
* lbrynet database and file manager to separate the creation of lbry files (from downloading or publishing) from the handling of a stream. All files have a stream, but not all streams may have a file. (https://github.com/lbryio/lbry/issues/1020)
|
||||
* manager classes to use new `SQLiteStorage` for database interaction. This class uses a single `lbrynet.sqlite` database file.
|
||||
|
||||
### Added
|
||||
* `lbrynet-console`, a tool to run or connect to lbrynet-daemon and launch an interactive python console with the api functions built in.
|
||||
* `--conf` CLI flag to specify an alternate config file
|
||||
* `peer_port`, `disable_max_key_fee`, `auto_renew_claim_height_delta`, `blockchain_name`, and `lbryum_servers` to configurable settings
|
||||
* `wallet_unlock` command (available during startup to unlock an encrypted wallet)
|
||||
* support for wallet encryption via new commands `wallet_decrypt` and `wallet_encrypt`
|
||||
* `channel_import`, `channel_export`, and `claim_renew` commands
|
||||
* `blob_availability` and `stream_availability` commands for debugging download issues
|
||||
* a new startup stage to indicate if the daemon is waiting for the `wallet_unlock` command.
|
||||
* `abandon_info` dictionary (containing `claim_name`, `claim_id`, `address`, `amount`, `balance_delta` and `nout`) for claims, supports, and updates returned by `transaction_list`
|
||||
* `permanent_url` string to `channel_list_mine`, `claim_list`, `claim_show`, `resolve` and `resolve_name` (see lbryio/lbryum#203)
|
||||
* `is_mine` boolean to `channel_list` results
|
||||
* `txid`, `nout`, `channel_claim_id`, `channel_claim_name`, `status`, `blobs_completed`, and `blobs_in_stream` fields to file objects returned by `file_list` and `get`
|
||||
* `txid`, `nout`, `channel_claim_id`, and `channel_claim_name` filters for `file` commands (`file_list`, `file_set_status`, `file_reflect`, and `file_delete`)
|
||||
* unit tests for `SQLiteStorage` and updated old tests for relevant changes (https://github.com/lbryio/lbry/issues/1088)
|
||||
|
||||
### Removed
|
||||
* `seccure` and `gmpy` dependencies
|
||||
* support for positional arguments in cli `settings_set`. Now only accepts settings changes in the form `--setting_key=value`
|
||||
* `auto_re_reflect` setting from the conf file, use the `reflect_uploads` setting instead
|
||||
* `name` argument for `claim_show` command
|
||||
* `message` response field in file objects returned by `file_list` and `get`
|
||||
* `include_tip_info` argument from `transaction_list`, which will now always include tip information.
|
||||
* old and unused UI related code
|
||||
* unnecessary `TempBlobManager` class
|
||||
* old storage classes used by the file manager, wallet, and blob manager
|
||||
* old `.db` database files from the data directory
|
||||
|
||||
## [0.18.0] - 2017-11-08
|
||||
### Fixed
|
||||
* Fixed amount of close nodes to add to list in case of extension to neighbouring k-buckets
|
||||
* Fixed external IP detection via jsonip.com (avoid detecting IPv6)
|
||||
* Fixed failing ConnectionManager unit test for parallel connections
|
||||
* Fixed race condition between `publish` and `channel_new`
|
||||
* Fixed incorrect response on attempting to delete blob twice
|
||||
* Fixed local node ID reporting in peer list
|
||||
|
||||
### Changed
|
||||
* Bumped `lbryschema` requirement to 0.0.14 [see changelog](https://github.com/lbryio/lbryschema/blob/master/CHANGELOG.md#0014---2017-11-08)
|
||||
* Bumped `lbryum` requirement to 3.1.11 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#3111---2017-11-08)
|
||||
* Moved BLOB_SIZE from conf.py to MAX_BLOB_SIZE in blob/blob_file.py
|
||||
|
||||
### Added
|
||||
* Added `utxo_list` command to list unspent transaction outputs
|
||||
* Added redundant API server for currency conversion
|
||||
|
||||
### Removed
|
||||
* Removed some alternate methods of reading from blob files
|
||||
* Removed `@AuthJSONRPCServer.queued` decorator
|
||||
|
||||
## [0.17.1] - 2017-10-25
|
||||
### Fixed
|
||||
* Fixed slow startup for nodes with many lbry files
|
||||
* Fixed setting the external ip on startup
|
||||
* Fixed session startup not blocking on joining the dht
|
||||
* Fixed several parsing bugs that prevented replacing dead dht contacts
|
||||
* Fixed lbryid length validation
|
||||
* Fixed an old print statement that polluted logs
|
||||
* Fixed rpc id length for dht requests
|
||||
|
||||
### Changed
|
||||
* Bumped `lbryschema` requirement to 0.0.13 [see changelog](https://github.com/lbryio/lbryschema/blob/master/CHANGELOG.md#0013---2017-10-25)
|
||||
* Bumped `lbryum` requirement to 3.1.10 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#3110---2017-10-25)
|
||||
* Use the first port available for the peer and dht ports, starting with the provided values (defaults of 3333 and 4444). This allows multiple lbrynet instances in a LAN with UPnP.
|
||||
* Detect a UPnP redirect that didn't get cleaned up on a previous run and use it
|
||||
* Bumped jsonschema requirement to 2.6.0
|
||||
* Refactor some assert statements to accommodate the PYTHONOPTIMIZE flag set for Android.
|
||||
|
||||
### Added
|
||||
* Added `wallet_prefill_addresses` command, which distributes credits to multiple addresses
|
||||
|
||||
|
||||
## [0.17.0] - 2017-10-12
|
||||
### Fixed
|
||||
* Fixed handling cancelled blob and availability requests
|
||||
* Fixed redundant blob requests to a peer
|
||||
* Fixed https://github.com/lbryio/lbry/issues/923
|
||||
* Fixed concurrent reflects opening too many files
|
||||
* Fixed cases when reflecting would fail on error conditions
|
||||
* Fixed deadlocks from occurring during blob writes
|
||||
* Fixed and updated`lbrynet.tests.dht`
|
||||
* Fixed redundant dht id
|
||||
* Fixed dht `ping` method
|
||||
* Fixed raising remote exceptions in dht
|
||||
* Fixed hanging delayedCall in dht node class
|
||||
* Fixed logging error in dht when calling or receiving methods with no arguments
|
||||
* Fixed IndexError in routingTable.findCloseNodes which would cause an empty list to be returned
|
||||
* Fixed bug where last blob in a stream was not saved to blob manager
|
||||
|
||||
### Deprecated
|
||||
* Deprecated `blob_announce_all` JSONRPC command. Use `blob_announce` instead.
|
||||
|
||||
### Changed
|
||||
* Bumped `lbryschema` requirement to 0.0.12 [see changelog](https://github.com/lbryio/lbryschema/blob/master/CHANGELOG.md#0012---2017-10-12)
|
||||
* Bumped `lbryum` requirement to 3.1.9 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#319---2017-10-12)
|
||||
* Announcing by head blob is turned on by default
|
||||
* Updated reflector server dns
|
||||
* Moved tests into the lbrynet package.
|
||||
|
||||
### Added
|
||||
* Added WAL pragma to sqlite3
|
||||
* Added unit tests for `BlobFile`
|
||||
* Use `hashlib` for sha384 instead of `pycrypto`
|
||||
* Use `cryptography` instead of `pycrypto` for blob encryption and decryption
|
||||
* Use `cryptography` for PKCS7 instead of doing it manually
|
||||
* Use `BytesIO` buffers instead of temp files when processing blobs
|
||||
* Refactored and pruned blob related classes into `lbrynet.blobs`
|
||||
* Changed several `assert`s to raise more useful errors
|
||||
* Added ability for reflector to store stream information for head blob announce
|
||||
* Added blob announcement information to API call status with session flag
|
||||
|
||||
### Removed
|
||||
* Removed `TempBlobFile`
|
||||
* Removed unused `EncryptedFileOpener`
|
||||
* Temporarily disable blob analytics report
|
||||
|
||||
|
||||
## [0.16.3] - 2017-09-28
|
||||
@@ -541,12 +56,10 @@ most commands.
|
||||
### Fixed
|
||||
* Fixed `transaction_list` doc string
|
||||
* Fixed ([in lbryum](https://github.com/lbryio/lbryum/pull/156)) batched queries responsible for making transaction and tip histories slow
|
||||
* Fixed daemon refusing to start if DNS cannot resolve lbry.io domain.
|
||||
|
||||
### Changed
|
||||
* Bumped `lbryum` requirement to 3.1.8 [see changelog](https://github.com/lbryio/lbryum/blob/master/CHANGELOG.md#318---2017-09-20)
|
||||
|
||||
|
||||
## [0.16.0] - 2017-09-18
|
||||
### Fixed
|
||||
* Fixed uncaught error when shutting down after a failed daemon startup
|
||||
@@ -583,6 +96,7 @@ most commands.
|
||||
## [0.15.0] - 2017-08-15
|
||||
### Fixed
|
||||
* Fixed reflector server blocking the `received_blob` reply on the server announcing the blob to the dht
|
||||
* Fixed incorrect formatting of "amount" fields
|
||||
* Fixed handling of SIGINT, SIGTERM.
|
||||
* Fixed shutdown sequence
|
||||
* Fix error when resolving an integer
|
||||
@@ -706,6 +220,7 @@ most commands.
|
||||
### Fixed
|
||||
* Race condition from improper initialization and shutdown of the blob manager database
|
||||
* Various fixes for GetStream class used in API command get
|
||||
* Download analytics error
|
||||
* Fixed flag options in file_delete API command
|
||||
|
||||
|
||||
@@ -765,6 +280,39 @@ most commands.
|
||||
|
||||
|
||||
|
||||
## [0.10.3production4] - 2017-06-01
|
||||
|
||||
### Added
|
||||
* Prevent publish of files with size 0
|
||||
* Add `dht_status` parameter to `status` to include bandwidth and peer info
|
||||
* Positional and flag arguments in lbrynet-cli
|
||||
|
||||
|
||||
### Changed
|
||||
* Changed keyword arguments in lbrynet-cli to use a -- prefix
|
||||
* Using the help function in lbrynet-cli no longer requires lbrynet-daemon to be running
|
||||
|
||||
|
||||
|
||||
## [0.10.3production3] - 2017-05-30
|
||||
|
||||
### Changed
|
||||
* Update `publish` to use {'currency': ..., 'address': ..., 'amount'} format for fee parameter, previously used old {currency: {'address': ..., 'amount': ...}} format
|
||||
|
||||
|
||||
### Fixed
|
||||
* Allow claim_show to be used without specifying name
|
||||
* Fix licenseUrl field in `publish`
|
||||
|
||||
|
||||
|
||||
## [0.10.3production2] - 2017-05-30
|
||||
|
||||
### Fixed
|
||||
* Allow claim_show to be used without specifying name
|
||||
|
||||
|
||||
|
||||
## [0.10.3] - 2017-05-23
|
||||
|
||||
### Added
|
||||
@@ -773,6 +321,8 @@ most commands.
|
||||
|
||||
|
||||
### Changed
|
||||
* Added optional `address` and `include_unconfirmed` params to `jsonrpc_wallet_balance` method
|
||||
* Wait for subscriptions before announcing wallet has finished starting
|
||||
* Cache claims in wallet storage for use looking claims up by id or outpoint
|
||||
* Try to use cached claim info for `file_list`
|
||||
* Convert wallet storage to inlinecallbacks
|
||||
@@ -873,38 +423,55 @@ most commands.
|
||||
* Removed check_pending logic from Daemon
|
||||
* Switched to txrequests so requests can use twisted event loop
|
||||
* Renamed API command file_seed to file_set_status
|
||||
* Don't add expected payment to wallet when payment rate is 0
|
||||
### Fixed
|
||||
* Fix restart procedure in DaemonControl
|
||||
* Create download directory if it doesn't exist
|
||||
* Fixed descriptor_get
|
||||
* Fixed jsonrpc_reflect()
|
||||
* Fixed api help return
|
||||
* Fixed API command descriptor_get
|
||||
* Fixed API command transaction_show
|
||||
* Fixed error handling for jsonrpc commands
|
||||
|
||||
## [0.9.2rc1] - 2017-03-21
|
||||
### Added
|
||||
* Add `wallet_list` command
|
||||
### Changed
|
||||
* Dont add expected payment to wallet when payment rate is 0
|
||||
### Fixed
|
||||
* Fixed descriptor_get
|
||||
* Fixed jsonrpc_reflect()
|
||||
* Fixed api help return
|
||||
* Fixed API command descriptor_get
|
||||
* Fixed API command transaction_show
|
||||
* Handle failure to decode claim cache file
|
||||
|
||||
|
||||
|
||||
## [0.9.1] - 2017-03-17
|
||||
### Fixed
|
||||
* Fix wallet_public_key API command
|
||||
|
||||
## [0.9.1rc5] - 2017-03-16
|
||||
### Added
|
||||
* publish API command can take metadata fields as arguments
|
||||
* Added `reflect_uploads` config to disable reflecting on upload
|
||||
* Added `--version` flag
|
||||
### Fixed
|
||||
* Fix wallet_public_key API command
|
||||
* Fixed jsonrpc_reflect()
|
||||
* Fixed api help return
|
||||
|
||||
## [0.9.1rc2] - 2017-03-15
|
||||
### Added
|
||||
* Added `--version` flag
|
||||
### Changed
|
||||
* Removed `simplejson` dependency in favor of bulitin `json`
|
||||
|
||||
|
||||
|
||||
## [0.9.0rc17] - 2017-03-10
|
||||
### Fixed
|
||||
* Added string comparison to ClaimOutpoint (needed to look things up by outpoint)
|
||||
* Remove unused API commands from daemon
|
||||
* Fix file filter `outpoint`
|
||||
* Made dictionary key names in API command outputs to be more consistent
|
||||
* Made dictionary key names in API commmand outputs to be more consistent
|
||||
|
||||
## [0.9.0rc15] - 2017-03-09
|
||||
### Added
|
||||
* Add file filters: `claim_id`, `outpoint`, and `rowid`
|
||||
* Make loggly logs less verbose
|
||||
@@ -914,7 +481,10 @@ most commands.
|
||||
* Remove deprecated file commands: `get_lbry_files`, `get_lbry_file`, and `file_get`
|
||||
* Remove deprecated `delete_lbry_file` command
|
||||
* Return standard file json from `get`
|
||||
|
||||
### Fixed
|
||||
* Added string comparison to ClaimOutpoint (needed to look things up by outpoint)
|
||||
* Remove unused API commands from daemon
|
||||
* Fix file filter `outpoint`
|
||||
|
||||
## [0.9.0rc12] - 2017-03-06
|
||||
### Fixed
|
||||
@@ -936,6 +506,8 @@ most commands.
|
||||
## [0.8.7] - 2017-02-21
|
||||
|
||||
## [0.8.6] - 2017-02-19
|
||||
|
||||
## [0.8.6rc0] - 2017-02-19
|
||||
### Changed
|
||||
* Add `file_get` by stream hash
|
||||
* Add utils.call_later to replace reactor.callLater
|
||||
@@ -945,10 +517,14 @@ most commands.
|
||||
* Fix sd blob timeout handling in `get_availability`, return 0.0
|
||||
|
||||
## [0.8.5] - 2017-02-18
|
||||
|
||||
## [0.8.5rc0] - 2017-02-18
|
||||
### Fixed
|
||||
* Fix result expected by ui from file_get for missing files
|
||||
|
||||
## [0.8.4] - 2017-02-17
|
||||
|
||||
## [0.8.4rc0] - 2017-02-17
|
||||
### Changed
|
||||
* Remove unused upload_allowed option
|
||||
* Remove code related to packaging as that step is now done in the electron client
|
||||
@@ -956,32 +532,36 @@ most commands.
|
||||
* Include download url in version check
|
||||
|
||||
### Fixed
|
||||
* add missing traceback to logging
|
||||
* add misssing traceback to logging
|
||||
|
||||
## [0.8.3] - 2017-02-15
|
||||
### Fixed
|
||||
* Get lbry files with pending claims
|
||||
* Add better logging to help track down [#478](https://github.com/lbryio/lbry/issues/478)
|
||||
* Catch UnknownNameErrors when resolving a name. [#479](https://github.com/lbryio/lbry/issues/479)
|
||||
* Change EWOULDBLOCK error in DHT to warning. #481
|
||||
* mark peers as down if it fails download protocol
|
||||
* Made hash reannounce time to be adjustable to fix [#432](https://github.com/lbryio/lbry/issues/432)
|
||||
* Fix recursion depth error upon failed blob
|
||||
* Call stopProducing in reflector client file_sender when uploading is done
|
||||
* Ensure streams in stream_info_manager are saved in lbry_file_manager
|
||||
* Fixed file_delete not deleting data from stream_info_manager [#470](https://github.com/lbryio/lbry/issues/470)
|
||||
* Fixed upload of bug reports to Slack ([#472](https://github.com/lbryio/lbry/issues/472))
|
||||
* Fixed claim updates [#473](https://github.com/lbryio/lbry/issues/473)
|
||||
* Handle ConnectionLost error in reflector client
|
||||
* Fix updating a claim where the stream doesn't change
|
||||
* Fix claim_abandon
|
||||
|
||||
### Changed
|
||||
* Add blob_get, descriptor_get, and blob_delete
|
||||
* Add filter keyword args to blob_list
|
||||
* Refactor get_availability
|
||||
* Add optional peer search timeout, add peer_search_timeout setting
|
||||
|
||||
## [0.8.3rc3] - 2017-02-14
|
||||
|
||||
## [0.8.3rc2] - 2017-02-13
|
||||
|
||||
## [0.8.3rc1] - 2017-02-13
|
||||
### Changed
|
||||
* make connection manager unit testeable
|
||||
|
||||
### Fixed
|
||||
* Change EWOULDBLOCK error in DHT to warning. #481
|
||||
* mark peers as down if it fails download protocol
|
||||
* Made hash reannounce time to be adjustable to fix [#432](https://github.com/lbryio/lbry/issues/432)
|
||||
|
||||
|
||||
## [0.8.3rc0] - 2017-02-10
|
||||
### Changed
|
||||
* Convert EncryptedFileDownloader to inlineCallbacks
|
||||
* Convert EncryptedFileManager to use inlineCallbacks
|
||||
* Convert Daemon._delete_lbry_file to inlineCallbacks
|
||||
@@ -992,7 +572,16 @@ most commands.
|
||||
* Change callback condition in GetStream to the first data blob completing
|
||||
* Add local and remote heights to blockchain status
|
||||
|
||||
|
||||
### Fixed
|
||||
* Fix recursion depth error upon failed blob
|
||||
* Call stopProducing in reflector client file_sender when uploading is done
|
||||
* Ensure streams in stream_info_manager are saved in lbry_file_manager
|
||||
* Fixed file_delete not deleting data from stream_info_manager [#470](https://github.com/lbryio/lbry/issues/470)
|
||||
* Fixed upload of bug reports to Slack ([#472](https://github.com/lbryio/lbry/issues/472))
|
||||
* Fixed claim updates [#473](https://github.com/lbryio/lbry/issues/473)
|
||||
* Handle ConnectionLost error in reflector client
|
||||
* Fix updating a claim where the stream doesn't change
|
||||
* Fix claim_abandon
|
||||
|
||||
## [0.8.1] - 2017-02-01
|
||||
### Changed
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
## Contributing to LBRY
|
||||
|
||||
https://lbry.tech/contribute
|
||||
@@ -0,0 +1,6 @@
|
||||
# Add a CHANGELOG entry for app changes
|
||||
has_app_changes = !git.modified_files.grep(/lbrynet/).empty?
|
||||
if !git.modified_files.include?("CHANGELOG.md") && has_app_changes
|
||||
fail("Please include a CHANGELOG entry.")
|
||||
message "See http://keepachangelog.com/en/0.3.0/ for details on good changelog guidelines"
|
||||
end
|
||||
@@ -0,0 +1,86 @@
|
||||
#### Getting LBRY for development
|
||||
|
||||
Q: How do I get lbry for command line?
|
||||
|
||||
A: In order to run lbry from command line, you need more than the packaged app/deb.
|
||||
|
||||
###### On OS X
|
||||
|
||||
You can install LBRY command line by running `curl -sL https://rawgit.com/lbryio/lbry-setup/master/lbry_setup_osx.sh | sudo bash` in a terminal. This script will install lbrynet and its dependancies, as well as the app.
|
||||
|
||||
###### On Linux
|
||||
|
||||
On Ubuntu or Mint you can install the prerequisites and lbrynet by running
|
||||
|
||||
sudo apt-get install libgmp3-dev build-essential python2.7 python2.7-dev python-pip git
|
||||
git clone https://github.com/lbryio/lbry.git
|
||||
cd lbry
|
||||
sudo python setup.py install
|
||||
|
||||
#### Using LBRY
|
||||
|
||||
Q: How do I run lbry from command line?
|
||||
|
||||
A: The command is `lbrynet-daemon`
|
||||
|
||||
***********
|
||||
|
||||
Q: How do I stop lbry from the command line?
|
||||
|
||||
A: You can ctrl-c or run `stop-lbrynet-daemon`
|
||||
|
||||
***********
|
||||
|
||||
Q: How do I run lbry with lbrycrdd (the blockchain node application)?
|
||||
|
||||
A: Start lbry with the --wallet flag set: `lbrynet-daemon --wallet=lbrycrd`
|
||||
|
||||
Note: when you change the wallet it is persistant until you specify you want to use another wallet - lbryum - with the --wallet flag again.
|
||||
|
||||
***********
|
||||
|
||||
Q: Where are all the behind the scenes files?
|
||||
|
||||
A: On linux, the relevant directories are `~/.lbrynet`, `~/.lbrycrd`, and `~/.lbryum`, depending on which wallets you've used. On OS X, the folders of interest are `~/Library/Application Support/LBRY`, `~/.lbrycrd` and `~/.lbryum`, also depending on which wallets you've used.
|
||||
|
||||
***********
|
||||
|
||||
Q: How can I see the log in the console?
|
||||
|
||||
A: Run lbry with the --log-to-console flag set: `lbrynet-daemon --log-to-console`
|
||||
|
||||
***********
|
||||
|
||||
Q: How do I specify a web-UI to use?
|
||||
|
||||
A: If the files for the UI you'd like to use are storred locally on your computer, start lbry with the --ui flag: `lbrynet-daemon --ui=/full/path/to/ui/files/root/folder`
|
||||
|
||||
Note, once set with the UI flag the given UI will be cached by lbry and used as the default going forward. Also, it will only successfully load a UI if it contains a conforming requirements.txt file to specify required lbrynet and lbryum versions. [Here](https://github.com/lbryio/lbry-web-ui/blob/master/dist/requirements.txt) is an example requirements.txt file.
|
||||
|
||||
To reset your ui to pull from lbryio, or to try a UI still in development, run lbry with the --branch flag: `lbrynet=daemon --branch=master`
|
||||
|
||||
***********
|
||||
|
||||
Q: How do I see the list of API functions I can call, and how do I call them?
|
||||
|
||||
A: Here is an example script to get the documentation for the various API calls. To use any of the functions displayed, just provide any specified arguments in a dictionary.
|
||||
|
||||
Note: the lbry api can only be used while either the app or lbrynet-daemon command line are running
|
||||
|
||||
import sys
|
||||
from jsonrpc.proxy import JSONRPCProxy
|
||||
|
||||
try:
|
||||
from lbrynet.conf import API_CONNECTION_STRING
|
||||
except:
|
||||
print "You don't have lbrynet installed!"
|
||||
sys.exit(0)
|
||||
|
||||
api = JSONRPCProxy.from_url(API_CONNECTION_STRING)
|
||||
status = api.status()
|
||||
if not status['is_running']:
|
||||
print status
|
||||
else:
|
||||
for cmd in api.commands():
|
||||
print "%s:\n%s" % (cmd, api.help({'command': cmd}))
|
||||
|
||||
@@ -1,111 +1,100 @@
|
||||
# Installing LBRY
|
||||
|
||||
If only the JSON-RPC API server is needed, the recommended way to install LBRY is to use a pre-built binary. We provide binaries for all major operating systems. See the [README](README.md).
|
||||
The recommended way to install LBRY is to use an installer. We provide installers for all major operating systems. See the [README](README.md).
|
||||
|
||||
These instructions are for installing LBRY from source, which is recommended if you are interested in doing development work or LBRY is not available on your operating system (godspeed, TempleOS users).
|
||||
|
||||
Here's a video walkthrough of this setup, which is itself hosted by the LBRY network and provided via [spee.ch](https://github.com/lbryio/spee.ch):
|
||||
[](https://spee.ch/967f99344308f1e90f0620d91b6c93e4dfb240e0/lbrynet-dev-setup.mp4)
|
||||
These instructions are for installing from source code, which is recommended if you are interested in doing development work or LBRY is not available on your operating system (godspeed, TempleOS users).
|
||||
|
||||
## Prerequisites
|
||||
|
||||
Running `lbrynet` from source requires Python 3.7 or higher. Get the installer for your OS [here](https://www.python.org/downloads/release/python-370/)
|
||||
Before starting, you'll need to install some additional libraries depending on your operating system.
|
||||
|
||||
After installing python 3, you'll need to install some additional libraries depending on your operating system.
|
||||
### OS X Prerequisites
|
||||
|
||||
### macOS
|
||||
|
||||
macOS users will need to install [xcode command line tools](https://developer.xamarin.com/guides/testcloud/calabash/configuring/osx/install-xcode-command-line-tools/) and [homebrew](http://brew.sh/).
|
||||
|
||||
These environment variables also need to be set
|
||||
1. PYTHONUNBUFFERED=1
|
||||
2. EVENT_NOKQUEUE=1
|
||||
Install [xcode command line tools](https://developer.xamarin.com/guides/testcloud/calabash/configuring/osx/install-xcode-command-line-tools/) and [homebrew](http://brew.sh/).
|
||||
|
||||
Remaining dependencies can then be installed by running:
|
||||
|
||||
```
|
||||
brew install python protobuf
|
||||
brew install mpfr libmpc protobuf
|
||||
sudo easy_install pip
|
||||
sudo pip install virtualenv
|
||||
```
|
||||
|
||||
Assistance installing Python3: https://docs.python-guide.org/starting/install3/osx/
|
||||
### Linux Prerequisites
|
||||
|
||||
### Linux
|
||||
|
||||
On Ubuntu (16.04 minimum, we recommend 18.04), install the following:
|
||||
On Ubuntu (we recommend 16.04), install the following:
|
||||
|
||||
```
|
||||
sudo add-apt-repository ppa:deadsnakes/ppa
|
||||
sudo apt-get update
|
||||
sudo apt-get install build-essential python3.7 python3.7-dev git python3.7-venv libssl-dev python-protobuf
|
||||
sudo apt-get install libgmp3-dev build-essential python2.7 python2.7-dev python-pip git python-virtualenv libssl-dev libffi-dev python-protobuf
|
||||
```
|
||||
|
||||
On Raspbian, you will also need to install `python-pyparsing`.
|
||||
|
||||
If you're running another Linux distro, install the equivalent of the above packages for your system.
|
||||
If you're running another Linux flavor, install the equivalent of the above packages for your system.
|
||||
|
||||
### Windows Prerequisites
|
||||
|
||||
Install [mingw32](http://www.mingw.org/) base and c++ compiler.
|
||||
|
||||
Add C:\MinGW\bin to the windows PATH.
|
||||
|
||||
Enable distutils to compile with mingw32 by creating a distutils.cfg file in *PYTHONPATH\Lib\distutils* containing:
|
||||
|
||||
```
|
||||
[build]
|
||||
compiler = mingw32
|
||||
```
|
||||
|
||||
If using virtualenv, which is recommended, copy the *PYTHONPATH\Lib\distutils* directory to the virtualenv.
|
||||
|
||||
It's recommended to use [Unofficial Windows Binaries for Python Extension Packages](http://www.lfd.uci.edu/~gohlke/pythonlibs/) for as many of the required packages as possible.
|
||||
Currently, available binaries include:
|
||||
- Cython
|
||||
- Twisted
|
||||
- Zope.interface
|
||||
- pywin32
|
||||
- Yapsy
|
||||
- cx_Freeze
|
||||
- requests
|
||||
- gmpy
|
||||
|
||||
Install the above binaries with `pip install *.whl`
|
||||
|
||||
Install pywin32 system files by run `python.exe Scripts\pywin32_postinstall.py -install` from an elevated command prompt.
|
||||
|
||||
Finally, you'll need [miniupnpc](https://pypi.python.org/pypi/miniupnpc/1.9). Download the source and compile with MinGW by running `mingw32make.bat`. Then install the module by running `python setupmingw32.py install`.
|
||||
|
||||
## Installation
|
||||
|
||||
### Linux/Mac
|
||||
|
||||
To install on Linux/Mac:
|
||||
To install:
|
||||
|
||||
```
|
||||
Clone the repository:
|
||||
$ git clone https://github.com/lbryio/lbry-sdk.git
|
||||
$ cd lbry-sdk
|
||||
|
||||
Create a Python virtual environment for lbry-sdk:
|
||||
$ python3.7 -m venv lbry-venv
|
||||
git clone https://github.com/lbryio/lbry.git
|
||||
cd lbry
|
||||
|
||||
Activating lbry-sdk virtual environment:
|
||||
$ source lbry-venv/bin/activate
|
||||
virtualenv lbry-venv
|
||||
source lbry-venv/bin/activate
|
||||
|
||||
Make sure you're on Python 3.7+ (as the default Python in virtual environment):
|
||||
$ python --version
|
||||
|
||||
Install packages:
|
||||
$ make install
|
||||
|
||||
If you are on Linux and using PyCharm, generates initial configs:
|
||||
$ make idea
|
||||
pip install -U -r requirements.txt
|
||||
pip install --editable .
|
||||
```
|
||||
|
||||
To verify your installation, `which lbrynet` should return a path inside of the `lbry-venv` folder created by the `python3.7 -m venv lbry-venv` command.
|
||||
To start LBRY, run `lbrynet-daemon` in a terminal.
|
||||
|
||||
### Windows
|
||||
To verify your install, `which lbrynet-daemon` should return a path inside of the `lbry-venv` folder created by the `virtualenv` command.
|
||||
|
||||
To install on Windows:
|
||||
## Making a Change
|
||||
|
||||
```
|
||||
Clone the repository:
|
||||
> git clone https://github.com/lbryio/lbry-sdk.git
|
||||
> cd lbry-sdk
|
||||
If you are not already inside the virtual environment, run:
|
||||
|
||||
Create a Python virtual environment for lbry-sdk:
|
||||
> python -m venv lbry-venv
|
||||
```
|
||||
source lbry-venv/bin/activate
|
||||
```
|
||||
|
||||
Activating lbry-sdk virtual environment:
|
||||
> lbry-venv\Scripts\activate
|
||||
Then run:
|
||||
|
||||
Install packages:
|
||||
> cd torba
|
||||
> pip install -e .
|
||||
> cd ../lbry
|
||||
> pip install -e .
|
||||
```
|
||||
```
|
||||
pip install --editable .
|
||||
```
|
||||
|
||||
## Run the tests
|
||||
|
||||
To run the unit tests from the repo directory:
|
||||
|
||||
```
|
||||
python -m unittest discover -s lbry tests.unit
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
To start the API server:
|
||||
`lbrynet start`
|
||||
|
||||
|
||||
Happy hacking!
|
||||
This will update `lbrynet-daemon` and other executables.
|
||||
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2019 LBRY Inc
|
||||
Copyright (c) 2015-2016 LBRY Inc
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
install:
|
||||
cd torba && pip install -e .
|
||||
cd lbry && pip install -e .
|
||||
pip install mypy==0.701
|
||||
pip install coverage astroid pylint
|
||||
|
||||
lint:
|
||||
cd lbry && pylint lbry
|
||||
cd torba && pylint --rcfile=setup.cfg torba
|
||||
cd torba && mypy --ignore-missing-imports torba
|
||||
|
||||
test:
|
||||
cd lbry && tox
|
||||
cd torba && tox
|
||||
|
||||
idea:
|
||||
mkdir -p .idea
|
||||
cp -r lbry/scripts/idea/* .idea
|
||||
@@ -1,56 +1,52 @@
|
||||
# <img src="https://raw.githubusercontent.com/lbryio/lbry-sdk/master/lbry/lbry.png" alt="LBRY" width="48" height="36" /> LBRY SDK [](https://travis-ci.org/lbryio/lbry-sdk) [](https://codecov.io/gh/lbryio/lbry-sdk)
|
||||
[](https://travis-ci.org/lbryio/lbry)
|
||||
[](https://coveralls.io/github/lbryio/lbry)
|
||||
|
||||
LBRY is a decentralized peer-to-peer protocol for publishing and accessing digital content. It utilizes the [LBRY blockchain](https://github.com/lbryio/lbrycrd) as a global namespace and database of digital content. Blockchain entries contain searchable content metadata, identities, rights and access rules. LBRY also provides a data network that consists of peers (seeders) uploading and downloading data from other peers, possibly in exchange for payments, as well as a distributed hash table used by peers to discover other peers.
|
||||
# LBRY
|
||||
|
||||
LBRY SDK for Python is currently the most full featured implementation of the LBRY Network protocols and includes many useful components and tools for building decentralized applications. Primary features and components:
|
||||
LBRY is an open-source protocol providing distribution, discovery, and purchase of digital content (data) via a decentralized network.
|
||||
|
||||
* Built on Python 3.7+ and `asyncio`.
|
||||
* Kademlia DHT (Distributed Hash Table) implementation for finding peers to download from and announcing to peers what we have to host ([lbry.dht](https://github.com/lbryio/lbry-sdk/tree/master/lbry/lbry/dht)).
|
||||
* Blob exchange protocol for transferring encrypted blobs of content and negotiating payments ([lbry.blob_exchange](https://github.com/lbryio/lbry-sdk/tree/master/lbry/lbry/blob_exchange)).
|
||||
* Protobuf schema for encoding and decoding metadata stored on the blockchain ([lbry.schema](https://github.com/lbryio/lbry-sdk/tree/master/lbry/lbry/schema)).
|
||||
* Wallet implementation for the LBRY blockchain ([lbry.wallet](https://github.com/lbryio/lbry-sdk/tree/master/lbry/lbry/wallet)).
|
||||
* Daemon with a JSON-RPC API to ease building end user applications in any language and for automating various tasks ([lbry.extras.daemon](https://github.com/lbryio/lbry-sdk/tree/master/lbry/lbry/extras/daemon)).
|
||||
This repo is a reference implementation of the [LBRY API](https://lbry.io/api).
|
||||
|
||||
## Installation
|
||||
It provides a daemon that can interact with the network via a json-rpc interface over HTTP.
|
||||
|
||||
Our [releases page](https://github.com/lbryio/lbry-sdk/releases) contains pre-built binaries of the latest release, pre-releases, and past releases for macOS, Debian-based Linux, and Windows. [Automated travis builds](http://build.lbry.io/daemon/) are also available for testing.
|
||||
## Installing
|
||||
|
||||
## Usage
|
||||
**Note**: This project no longer bundles a graphic interface (browser). If you want to use LBRY via a GUI, [use the LBRY App](https://github.com/lbryio/lbry-app).
|
||||
|
||||
Run `lbrynet start` to launch the API server.
|
||||
Our [releases page](https://github.com/lbryio/lbry/releases) contains pre-built binaries of the latest release, pre-releases, and past releases, for macOS, Debian-based Linux, and Windows.
|
||||
|
||||
By default, `lbrynet` will provide a JSON-RPC server at `http://localhost:5279`. It is easy to interact with via cURL or sane programming languages.
|
||||
Installing from source is also relatively painless, full instructions are in [INSTALL.md](INSTALL.md)
|
||||
|
||||
Our [quickstart guide](https://lbry.tech/playground) provides a simple walkthrough and examples for learning.
|
||||
## Running
|
||||
|
||||
With the daemon running, `lbrynet commands` will show you a list of commands.
|
||||
Run `lbrynet-daemon` to launch the daemon.
|
||||
|
||||
The full API is documented [here](https://lbry.tech/api/sdk).
|
||||
## Using
|
||||
|
||||
## Running from source
|
||||
By default, `lbrynet-daemon` will provide a JSON-RPC server at `http://localhost:5279`. It is easy to interact with via cURL or sane programming languages.
|
||||
|
||||
Installing from source is also relatively painless. Full instructions are in [INSTALL.md](INSTALL.md)
|
||||
Our [quickstart guide](http://lbry.io/quickstart) provides a simple walkthrough and examples for learning.
|
||||
|
||||
## Contributing
|
||||
The full API is documented [here](https://lbry.io/api).
|
||||
|
||||
Contributions to this project are welcome, encouraged, and compensated. For more details, please check [this](https://lbry.tech/contribute) link.
|
||||
## What is LBRY?
|
||||
|
||||
LBRY is a protocol that provides a fully decentralized network for the discovery, distribution, and payment of data.
|
||||
|
||||
It utilizes the [LBRY blockchain](https://github.com/lbryio/lbrycrd) as a global namespace and database of digital content. Blockchain entries contain searchable content metadata, identities, and rights and access rules.
|
||||
|
||||
LBRY also provides a data network consists of peers uploading and downloading data from other peers, possibly in exchange for payments, and a distributed hash table, used by peers to discover other peers.
|
||||
|
||||
## Contributions
|
||||
|
||||
To contribute, [join us on Slack](https://slack.lbry.io/) or contact jeremy@lbry.io. Pull requests are also welcome.
|
||||
|
||||
## Support
|
||||
|
||||
Please open an issue and describe your situation in detail. We will respond as soon as we can.
|
||||
|
||||
For private issues, contact jeremy@lbry.io.
|
||||
|
||||
## License
|
||||
|
||||
This project is MIT licensed. For the full license, see [LICENSE](LICENSE).
|
||||
|
||||
## Security
|
||||
|
||||
We take security seriously. Please contact security@lbry.com regarding any security issues. [Our GPG key is here](https://lbry.com/faq/gpg-key) if you need it.
|
||||
|
||||
## Contact
|
||||
|
||||
The primary contact for this project is [@eukreign](mailto:lex@lbry.com).
|
||||
|
||||
## Additional information and links
|
||||
|
||||
The documentation for the API can be found [here](https://lbry.tech/api/sdk).
|
||||
|
||||
Daemon defaults, ports, and other settings are documented [here](https://lbry.tech/resources/daemon-settings).
|
||||
|
||||
Settings can be configured using a daemon-settings.yml file. An example can be found [here](https://github.com/lbryio/lbry-sdk/blob/master/lbry/example_daemon_settings.yml).
|
||||
See [LICENSE](LICENSE)
|
||||
@@ -0,0 +1,34 @@
|
||||
$env:Path += ";C:\MinGW\bin\"
|
||||
|
||||
$env:Path += ";C:\Program Files (x86)\Windows Kits\10\bin\x86\"
|
||||
gcc --version
|
||||
mingw32-make --version
|
||||
|
||||
# build/install miniupnpc manually
|
||||
tar zxf miniupnpc-1.9.tar.gz
|
||||
cd miniupnpc-1.9
|
||||
mingw32-make -f Makefile.mingw
|
||||
python setupmingw32.py build --compiler=mingw32
|
||||
python setupmingw32.py install
|
||||
cd ..\
|
||||
Remove-Item -Recurse -Force miniupnpc-1.9
|
||||
|
||||
# copy requirements from lbry, but remove gmpy and miniupnpc (installed manually)
|
||||
Get-Content ..\requirements.txt | Select-String -Pattern 'gmpy|miniupnpc' -NotMatch | Out-File requirements_base.txt
|
||||
# add in gmpy wheel
|
||||
Add-Content requirements.txt "./gmpy-1.17-cp27-none-win32.whl"
|
||||
|
||||
python set_build.py
|
||||
|
||||
pip install -r requirements.txt
|
||||
pip install ..\.
|
||||
|
||||
pyinstaller -y daemon.onefile.spec
|
||||
pyinstaller -y cli.onefile.spec
|
||||
|
||||
nuget install secure-file -ExcludeVersion
|
||||
secure-file\tools\secure-file -decrypt .\lbry2.pfx.enc -secret "$env:pfx_key"
|
||||
signtool.exe sign /f .\lbry2.pfx /p "$env:key_pass" /tr http://tsa.starfieldtech.com /td SHA256 /fd SHA256 dist\*.exe
|
||||
|
||||
python zip_daemon.py
|
||||
python upload_assets.py
|
||||
@@ -0,0 +1,58 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
||||
cd "$ROOT"
|
||||
BUILD_DIR="$ROOT/build"
|
||||
|
||||
FULL_BUILD="${FULL_BUILD:-false}"
|
||||
if [ -n "${TEAMCITY_VERSION:-}" -o -n "${APPVEYOR:-}" ]; then
|
||||
FULL_BUILD="true"
|
||||
fi
|
||||
|
||||
[ -d "$BUILD_DIR/bulid" ] && rm -rf "$BUILD_DIR/build"
|
||||
[ -d "$BUILD_DIR/dist" ] && rm -rf "$BUILD_DIR/dist"
|
||||
|
||||
if [ "$FULL_BUILD" == "true" ]; then
|
||||
# install dependencies
|
||||
$BUILD_DIR/prebuild.sh
|
||||
|
||||
VENV="$BUILD_DIR/venv"
|
||||
if [ -d "$VENV" ]; then
|
||||
rm -rf "$VENV"
|
||||
fi
|
||||
virtualenv "$VENV"
|
||||
set +u
|
||||
source "$VENV/bin/activate"
|
||||
set -u
|
||||
|
||||
# must set build before installing lbrynet. otherwise it has no effect
|
||||
python "$BUILD_DIR/set_build.py"
|
||||
fi
|
||||
|
||||
cp "$ROOT/requirements.txt" "$BUILD_DIR/requirements_base.txt"
|
||||
(
|
||||
cd "$BUILD_DIR"
|
||||
pip install -r requirements.txt
|
||||
)
|
||||
|
||||
(
|
||||
cd "$BUILD_DIR"
|
||||
pyinstaller -y daemon.onefile.spec
|
||||
pyinstaller -y cli.onefile.spec
|
||||
)
|
||||
|
||||
python "$BUILD_DIR/zip_daemon.py"
|
||||
|
||||
if [ "$FULL_BUILD" == "true" ]; then
|
||||
# electron-build has a publish feature, but I had a hard time getting
|
||||
# it to reliably work and it also seemed difficult to configure. Not proud of
|
||||
# this, but it seemed better to write my own.
|
||||
python "$BUILD_DIR/upload_assets.py"
|
||||
|
||||
deactivate
|
||||
fi
|
||||
|
||||
echo 'Build complete.'
|
||||
@@ -0,0 +1,129 @@
|
||||
import datetime
|
||||
import re
|
||||
|
||||
CHANGELOG_START_RE = re.compile(r'^\#\# \[Unreleased\]')
|
||||
CHANGELOG_END_RE = re.compile(r'^\#\# \[.*\] - \d{4}-\d{2}-\d{2}')
|
||||
# if we come across a section header between two release section headers
|
||||
# then we probably have an improperly formatted changelog
|
||||
CHANGELOG_ERROR_RE = re.compile(r'^\#\# ')
|
||||
SECTION_RE = re.compile(r'^\#\#\# (.*)$')
|
||||
EMPTY_RE = re.compile(r'^\w*\*\w*$')
|
||||
ENTRY_RE = re.compile(r'\* (.*)')
|
||||
VALID_SECTIONS = ['Added', 'Changed', 'Deprecated', 'Removed', 'Fixed', 'Security']
|
||||
|
||||
# allocate some entries to cut-down on merge conflicts
|
||||
TEMPLATE = """### Added
|
||||
*
|
||||
*
|
||||
|
||||
### Changed
|
||||
*
|
||||
*
|
||||
|
||||
### Fixed
|
||||
*
|
||||
*
|
||||
|
||||
### Deprecated
|
||||
*
|
||||
*
|
||||
|
||||
### Removed
|
||||
*
|
||||
*
|
||||
|
||||
"""
|
||||
|
||||
|
||||
class Changelog(object):
|
||||
def __init__(self, path):
|
||||
self.path = path
|
||||
self.start = []
|
||||
self.unreleased = []
|
||||
self.rest = []
|
||||
self._parse()
|
||||
|
||||
def _parse(self):
|
||||
with open(self.path) as fp:
|
||||
lines = fp.readlines()
|
||||
|
||||
unreleased_start_found = False
|
||||
unreleased_end_found = False
|
||||
|
||||
for line in lines:
|
||||
if not unreleased_start_found:
|
||||
self.start.append(line)
|
||||
if CHANGELOG_START_RE.search(line):
|
||||
unreleased_start_found = True
|
||||
continue
|
||||
if unreleased_end_found:
|
||||
self.rest.append(line)
|
||||
continue
|
||||
if CHANGELOG_END_RE.search(line):
|
||||
self.rest.append(line)
|
||||
unreleased_end_found = True
|
||||
continue
|
||||
if CHANGELOG_ERROR_RE.search(line):
|
||||
raise Exception(
|
||||
'Failed to parse {}: {}'.format(self.path, 'unexpected section header found'))
|
||||
self.unreleased.append(line)
|
||||
|
||||
self.unreleased = self._normalize_section(self.unreleased)
|
||||
|
||||
@staticmethod
|
||||
def _normalize_section(lines):
|
||||
"""Parse a changelog entry and output a normalized form"""
|
||||
sections = {}
|
||||
current_section_name = None
|
||||
current_section_contents = []
|
||||
for line in lines:
|
||||
line = line.strip()
|
||||
if not line or EMPTY_RE.match(line):
|
||||
continue
|
||||
match = SECTION_RE.match(line)
|
||||
if match:
|
||||
if current_section_contents:
|
||||
sections[current_section_name] = current_section_contents
|
||||
current_section_contents = []
|
||||
current_section_name = match.group(1)
|
||||
if current_section_name not in VALID_SECTIONS:
|
||||
raise ValueError("Section '{}' is not valid".format(current_section_name))
|
||||
continue
|
||||
match = ENTRY_RE.match(line)
|
||||
if match:
|
||||
current_section_contents.append(match.group(1))
|
||||
continue
|
||||
raise Exception('Something is wrong with line: {}'.format(line))
|
||||
if current_section_contents:
|
||||
sections[current_section_name] = current_section_contents
|
||||
|
||||
output = []
|
||||
for section in VALID_SECTIONS:
|
||||
if section not in sections:
|
||||
continue
|
||||
output.append('### {}'.format(section))
|
||||
for entry in sections[section]:
|
||||
output.append(' * {}'.format(entry))
|
||||
output.append("\n")
|
||||
return output
|
||||
|
||||
def get_unreleased(self):
|
||||
return '\n'.join(self.unreleased) if self.unreleased else None
|
||||
|
||||
def bump(self, version):
|
||||
if not self.unreleased:
|
||||
return
|
||||
|
||||
today = datetime.datetime.today()
|
||||
header = "## [{}] - {}\n\n".format(version, today.strftime('%Y-%m-%d'))
|
||||
|
||||
changelog_data = (
|
||||
''.join(self.start) +
|
||||
TEMPLATE +
|
||||
header +
|
||||
'\n'.join(self.unreleased) + '\n\n'
|
||||
+ ''.join(self.rest)
|
||||
)
|
||||
|
||||
with open(self.path, 'w') as fp:
|
||||
fp.write(changelog_data)
|
||||
@@ -0,0 +1,42 @@
|
||||
# -*- mode: python -*-
|
||||
import platform
|
||||
import os
|
||||
|
||||
dir = 'build';
|
||||
cwd = os.getcwd()
|
||||
if os.path.basename(cwd) != dir:
|
||||
raise Exception('pyinstaller build needs to be run from the ' + dir + ' directory')
|
||||
repo_base = os.path.abspath(os.path.join(cwd, '..'))
|
||||
|
||||
execfile(os.path.join(cwd, "entrypoint.py")) # ghetto import
|
||||
|
||||
|
||||
system = platform.system()
|
||||
if system == 'Darwin':
|
||||
icns = os.path.join(repo_base, 'build', 'icon.icns')
|
||||
elif system == 'Linux':
|
||||
icns = os.path.join(repo_base, 'build', 'icons', '256x256.png')
|
||||
elif system == 'Windows':
|
||||
icns = os.path.join(repo_base, 'build', 'icons', 'lbry256.ico')
|
||||
else:
|
||||
print 'Warning: System {} has no icons'.format(system)
|
||||
icns = None
|
||||
|
||||
|
||||
a = Entrypoint('lbrynet', 'console_scripts', 'lbrynet-cli', pathex=[cwd])
|
||||
|
||||
pyz = PYZ(a.pure, a.zipped_data)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
name='lbrynet-cli',
|
||||
debug=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
console=True,
|
||||
icon=icns
|
||||
)
|
||||
@@ -0,0 +1,50 @@
|
||||
# -*- mode: python -*-
|
||||
import platform
|
||||
import os
|
||||
|
||||
import lbryum
|
||||
|
||||
dir = 'build';
|
||||
cwd = os.getcwd()
|
||||
if os.path.basename(cwd) != dir:
|
||||
raise Exception('pyinstaller build needs to be run from the ' + dir + ' directory')
|
||||
repo_base = os.path.abspath(os.path.join(cwd, '..'))
|
||||
|
||||
execfile(os.path.join(cwd, "entrypoint.py")) # ghetto import
|
||||
|
||||
|
||||
system = platform.system()
|
||||
if system == 'Darwin':
|
||||
icns = os.path.join(repo_base, 'build', 'icon.icns')
|
||||
elif system == 'Linux':
|
||||
icns = os.path.join(repo_base, 'build', 'icons', '256x256.png')
|
||||
elif system == 'Windows':
|
||||
icns = os.path.join(repo_base, 'build', 'icons', 'lbry256.ico')
|
||||
else:
|
||||
print 'Warning: System {} has no icons'.format(system)
|
||||
icns = None
|
||||
|
||||
|
||||
datas = [
|
||||
(os.path.join(os.path.dirname(lbryum.__file__), 'wordlist', language + '.txt'), 'lbryum/wordlist')
|
||||
for language in ('chinese_simplified', 'japanese', 'spanish','english', 'portuguese')
|
||||
]
|
||||
|
||||
|
||||
a = Entrypoint('lbrynet', 'console_scripts', 'lbrynet-daemon', pathex=[cwd], datas=datas)
|
||||
|
||||
pyz = PYZ(a.pure, a.zipped_data)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
name='lbrynet-daemon',
|
||||
debug=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
console=True,
|
||||
icon=icns
|
||||
)
|
||||
@@ -0,0 +1,47 @@
|
||||
# https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Setuptools-Entry-Point
|
||||
def Entrypoint(dist, group, name,
|
||||
scripts=None, pathex=None, binaries=None, datas=None,
|
||||
hiddenimports=None, hookspath=None, excludes=None, runtime_hooks=None,
|
||||
cipher=None, win_no_prefer_redirects=False, win_private_assemblies=False):
|
||||
import pkg_resources
|
||||
|
||||
# get toplevel packages of distribution from metadata
|
||||
def get_toplevel(dist):
|
||||
distribution = pkg_resources.get_distribution(dist)
|
||||
if distribution.has_metadata('top_level.txt'):
|
||||
return list(distribution.get_metadata('top_level.txt').split())
|
||||
else:
|
||||
return []
|
||||
|
||||
hiddenimports = hiddenimports or []
|
||||
packages = []
|
||||
for distribution in hiddenimports:
|
||||
packages += get_toplevel(distribution)
|
||||
|
||||
scripts = scripts or []
|
||||
pathex = pathex or []
|
||||
# get the entry point
|
||||
ep = pkg_resources.get_entry_info(dist, group, name)
|
||||
# insert path of the egg at the verify front of the search path
|
||||
pathex = [ep.dist.location] + pathex
|
||||
# script name must not be a valid module name to avoid name clashes on import
|
||||
script_path = os.path.join(workpath, name + '-script.py')
|
||||
print "creating script for entry point", dist, group, name
|
||||
with open(script_path, 'w') as fh:
|
||||
fh.write("import {0}\n".format(ep.module_name))
|
||||
fh.write("{0}.{1}()\n".format(ep.module_name, '.'.join(ep.attrs)))
|
||||
for package in packages:
|
||||
fh.write("import {0}\n".format(package))
|
||||
|
||||
return Analysis([script_path] + scripts,
|
||||
pathex=pathex,
|
||||
binaries=binaries,
|
||||
datas=datas,
|
||||
hiddenimports=hiddenimports,
|
||||
hookspath=hookspath,
|
||||
excludes=excludes,
|
||||
runtime_hooks=runtime_hooks,
|
||||
cipher=cipher,
|
||||
win_no_prefer_redirects=win_no_prefer_redirects,
|
||||
win_private_assemblies=win_private_assemblies
|
||||
)
|
||||
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 361 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
@@ -0,0 +1,81 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
|
||||
LINUX=false
|
||||
OSX=false
|
||||
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
OSX=true
|
||||
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||
LINUX=true
|
||||
else
|
||||
echo "Platform detection failed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
SUDO=''
|
||||
if $LINUX && (( $EUID != 0 )); then
|
||||
SUDO='sudo'
|
||||
fi
|
||||
|
||||
cmd_exists() {
|
||||
command -v "$1" >/dev/null 2>&1
|
||||
return $?
|
||||
}
|
||||
|
||||
set +eu
|
||||
GITUSERNAME=$(git config --global --get user.name)
|
||||
if [ -z "$GITUSERNAME" ]; then
|
||||
git config --global user.name "$(whoami)"
|
||||
fi
|
||||
GITEMAIL=$(git config --global --get user.email)
|
||||
if [ -z "$GITEMAIL" ]; then
|
||||
git config --global user.email "$(whoami)@lbry.io"
|
||||
fi
|
||||
set -eu
|
||||
|
||||
|
||||
if $LINUX; then
|
||||
INSTALL="$SUDO apt-get install --no-install-recommends -y"
|
||||
$INSTALL build-essential libssl-dev libffi-dev libgmp3-dev python2.7-dev
|
||||
elif $OSX && ! cmd_exists brew ; then
|
||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
fi
|
||||
|
||||
|
||||
if ! cmd_exists python; then
|
||||
if $LINUX; then
|
||||
$INSTALL python2.7
|
||||
elif $OSX; then
|
||||
brew install python
|
||||
fi
|
||||
fi
|
||||
|
||||
PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
|
||||
if [ "$PYTHON_VERSION" != "2.7" ]; then
|
||||
echo "Python 2.7 required"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! cmd_exists pip; then
|
||||
if $LINUX; then
|
||||
$INSTALL python-pip
|
||||
$SUDO pip install --upgrade pip
|
||||
else
|
||||
echo "Pip required"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if $LINUX && [ "$(pip list --format=columns | grep setuptools | wc -l)" -ge 1 ]; then
|
||||
#$INSTALL python-setuptools
|
||||
$SUDO pip install setuptools
|
||||
fi
|
||||
|
||||
if ! cmd_exists virtualenv; then
|
||||
$SUDO pip install virtualenv
|
||||
fi
|
||||
@@ -0,0 +1,204 @@
|
||||
"""Bump version and create Github release
|
||||
|
||||
This script should be run locally, not on a build server.
|
||||
"""
|
||||
import argparse
|
||||
import contextlib
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import git
|
||||
import github
|
||||
|
||||
import changelog
|
||||
|
||||
ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
|
||||
|
||||
def main():
|
||||
bumpversion_parts = get_bumpversion_parts()
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("part", choices=bumpversion_parts, help="part of version to bump")
|
||||
parser.add_argument("--skip-sanity-checks", action="store_true")
|
||||
parser.add_argument("--skip-push", action="store_true")
|
||||
parser.add_argument("--dry-run", action="store_true")
|
||||
parser.add_argument("--confirm", action="store_true")
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.dry_run:
|
||||
print "DRY RUN. Nothing will be committed/pushed."
|
||||
|
||||
repo = Repo('lbry', args.part, ROOT)
|
||||
branch = 'master'
|
||||
|
||||
print 'Current version: {}'.format(repo.current_version)
|
||||
print 'New version: {}'.format(repo.new_version)
|
||||
|
||||
if not args.confirm and not confirm():
|
||||
print "Aborting"
|
||||
return 1
|
||||
|
||||
if not args.skip_sanity_checks:
|
||||
run_sanity_checks(repo, branch)
|
||||
repo.assert_new_tag_is_absent()
|
||||
|
||||
is_rc = re.search('\drc\d+$', repo.new_version) is not None
|
||||
# only have a release message for real releases, not for RCs
|
||||
release_msg = None if is_rc else repo.get_unreleased_changelog()
|
||||
if release_msg is None:
|
||||
release_msg = ''
|
||||
|
||||
if args.dry_run:
|
||||
print "rc: " + ("yes" if is_rc else "no")
|
||||
print "release message: \n" + (release_msg if not is_rc else " NO MESSAGE FOR RCs")
|
||||
return
|
||||
|
||||
gh_token = get_gh_token()
|
||||
auth = github.Github(gh_token)
|
||||
github_repo = auth.get_repo('lbryio/lbry')
|
||||
|
||||
if not is_rc:
|
||||
repo.bump_changelog()
|
||||
repo.bumpversion()
|
||||
|
||||
new_tag = repo.get_new_tag()
|
||||
github_repo.create_git_release(new_tag, new_tag, release_msg, draft=True, prerelease=is_rc)
|
||||
|
||||
if args.skip_push:
|
||||
print (
|
||||
'Skipping push; you will have to reset and delete tags if '
|
||||
'you want to run this script again.'
|
||||
)
|
||||
else:
|
||||
repo.git_repo.git.push(follow_tags=True, recurse_submodules='check')
|
||||
|
||||
|
||||
class Repo(object):
|
||||
def __init__(self, name, part, directory):
|
||||
self.name = name
|
||||
self.part = part
|
||||
if not self.part:
|
||||
raise Exception('Part required')
|
||||
self.directory = directory
|
||||
self.git_repo = git.Repo(self.directory)
|
||||
self._bumped = False
|
||||
|
||||
self.current_version = self._get_current_version()
|
||||
self.new_version = self._get_new_version()
|
||||
self._changelog = changelog.Changelog(os.path.join(self.directory, 'CHANGELOG.md'))
|
||||
|
||||
def get_new_tag(self):
|
||||
return 'v' + self.new_version
|
||||
|
||||
def get_unreleased_changelog(self):
|
||||
return self._changelog.get_unreleased()
|
||||
|
||||
def bump_changelog(self):
|
||||
self._changelog.bump(self.new_version)
|
||||
with pushd(self.directory):
|
||||
self.git_repo.git.add(os.path.basename(self._changelog.path))
|
||||
|
||||
def _get_current_version(self):
|
||||
with pushd(self.directory):
|
||||
output = subprocess.check_output(
|
||||
['bumpversion', '--dry-run', '--list', '--allow-dirty', self.part])
|
||||
return re.search('^current_version=(.*)$', output, re.M).group(1)
|
||||
|
||||
def _get_new_version(self):
|
||||
with pushd(self.directory):
|
||||
output = subprocess.check_output(
|
||||
['bumpversion', '--dry-run', '--list', '--allow-dirty', self.part])
|
||||
return re.search('^new_version=(.*)$', output, re.M).group(1)
|
||||
|
||||
def bumpversion(self):
|
||||
if self._bumped:
|
||||
raise Exception('Cowardly refusing to bump a repo twice')
|
||||
with pushd(self.directory):
|
||||
subprocess.check_call(['bumpversion', '--allow-dirty', self.part])
|
||||
self._bumped = True
|
||||
|
||||
def assert_new_tag_is_absent(self):
|
||||
new_tag = self.get_new_tag()
|
||||
tags = self.git_repo.git.tag()
|
||||
if new_tag in tags.split('\n'):
|
||||
raise Exception('Tag {} is already present in repo {}.'.format(new_tag, self.name))
|
||||
|
||||
def is_behind(self, branch):
|
||||
self.git_repo.remotes.origin.fetch()
|
||||
rev_list = '{branch}...origin/{branch}'.format(branch=branch)
|
||||
commits_behind = self.git_repo.git.rev_list(rev_list, right_only=True, count=True)
|
||||
commits_behind = int(commits_behind)
|
||||
return commits_behind > 0
|
||||
|
||||
|
||||
def get_bumpversion_parts():
|
||||
with pushd(ROOT):
|
||||
output = subprocess.check_output([
|
||||
'bumpversion', '--dry-run', '--list', '--allow-dirty', 'fake-part',
|
||||
])
|
||||
parse_line = re.search('^parse=(.*)$', output, re.M).group(1)
|
||||
return tuple(re.findall('<([^>]+)>', parse_line))
|
||||
|
||||
|
||||
def get_gh_token():
|
||||
if 'GH_TOKEN' in os.environ:
|
||||
return os.environ['GH_TOKEN']
|
||||
else:
|
||||
print """
|
||||
Please enter your personal access token. If you don't have one
|
||||
See https://github.com/lbryio/lbry-app/wiki/Release-Script#generate-a-personal-access-token
|
||||
for instructions on how to generate one.
|
||||
|
||||
You can also set the GH_TOKEN environment variable to avoid seeing this message
|
||||
in the future"""
|
||||
return raw_input('token: ').strip()
|
||||
|
||||
|
||||
def confirm():
|
||||
try:
|
||||
return raw_input('Is this what you want? [y/N] ').strip().lower() == 'y'
|
||||
except KeyboardInterrupt:
|
||||
return False
|
||||
|
||||
|
||||
def run_sanity_checks(repo, branch):
|
||||
if repo.git_repo.is_dirty():
|
||||
print 'Cowardly refusing to release a dirty repo'
|
||||
sys.exit(1)
|
||||
if repo.git_repo.active_branch.name != branch:
|
||||
print 'Cowardly refusing to release when not on the {} branch'.format(branch)
|
||||
sys.exit(1)
|
||||
if repo.is_behind(branch):
|
||||
print 'Cowardly refusing to release when behind origin'
|
||||
sys.exit(1)
|
||||
if not is_custom_bumpversion_version():
|
||||
print (
|
||||
'Install LBRY\'s fork of bumpversion: '
|
||||
'pip install -U git+https://github.com/lbryio/bumpversion.git'
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def is_custom_bumpversion_version():
|
||||
try:
|
||||
output = subprocess.check_output(['bumpversion', '-v'], stderr=subprocess.STDOUT).strip()
|
||||
if output == 'bumpversion 0.5.4-lbry':
|
||||
return True
|
||||
except (subprocess.CalledProcessError, OSError):
|
||||
pass
|
||||
return False
|
||||
|
||||
|
||||
@contextlib.contextmanager
|
||||
def pushd(new_dir):
|
||||
previous_dir = os.getcwd()
|
||||
os.chdir(new_dir)
|
||||
yield
|
||||
os.chdir(previous_dir)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
@@ -0,0 +1,11 @@
|
||||
# install daemon requirements (created by build script. see build.sh, build.ps1)
|
||||
-r requirements_base.txt
|
||||
|
||||
# install daemon itself. make sure you run `pip install` from this dir. this is how you do relative file paths with pip
|
||||
file:../.
|
||||
|
||||
# install other build requirements
|
||||
PyInstaller==3.2.1
|
||||
requests[security]==2.13.0
|
||||
uritemplate==3.0.0
|
||||
boto3==1.4.4
|
||||
@@ -0,0 +1,29 @@
|
||||
"""Set the build version to be 'dev', 'qa', 'rc', 'release'"""
|
||||
|
||||
import os.path
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
build = get_build()
|
||||
root_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
with open(os.path.join(root_dir, 'lbrynet', 'build_type.py'), 'w') as f:
|
||||
f.write("BUILD = '{}'\n".format(build))
|
||||
|
||||
|
||||
def get_build():
|
||||
try:
|
||||
tag = subprocess.check_output(['git', 'describe', '--exact-match']).strip()
|
||||
if re.match('v\d+\.\d+\.\d+rc\d+', tag):
|
||||
return 'rc'
|
||||
else:
|
||||
return 'release'
|
||||
except subprocess.CalledProcessError:
|
||||
# if the build doesn't have a tag
|
||||
return 'qa'
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
@@ -0,0 +1,143 @@
|
||||
import glob
|
||||
import json
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import github
|
||||
import uritemplate
|
||||
import boto3
|
||||
|
||||
|
||||
def main():
|
||||
upload_to_github_if_tagged('lbryio/lbry')
|
||||
upload_to_s3('daemon')
|
||||
|
||||
|
||||
def get_asset_filename():
|
||||
this_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
return glob.glob(this_dir + '/dist/*.zip')[0]
|
||||
|
||||
|
||||
def upload_to_s3(folder):
|
||||
tag = subprocess.check_output(['git', 'describe', '--always', 'HEAD']).strip()
|
||||
commit_date = subprocess.check_output([
|
||||
'git', 'show', '-s', '--format=%cd', '--date=format:%Y%m%d-%H%I%S', 'HEAD']).strip()
|
||||
|
||||
asset_path = get_asset_filename()
|
||||
bucket = 'releases.lbry.io'
|
||||
key = folder + '/' + commit_date + '-' + tag + '/' + os.path.basename(asset_path)
|
||||
|
||||
print "Uploading " + asset_path + " to s3://" + bucket + '/' + key + ''
|
||||
|
||||
if 'AWS_ACCESS_KEY_ID' not in os.environ or 'AWS_SECRET_ACCESS_KEY' not in os.environ:
|
||||
print 'Must set AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to publish assets to s3'
|
||||
return 1
|
||||
|
||||
s3 = boto3.resource(
|
||||
's3',
|
||||
aws_access_key_id=os.environ['AWS_ACCESS_KEY_ID'],
|
||||
aws_secret_access_key=os.environ['AWS_SECRET_ACCESS_KEY'],
|
||||
config=boto3.session.Config(signature_version='s3v4')
|
||||
)
|
||||
s3.meta.client.upload_file(asset_path, bucket, key)
|
||||
|
||||
|
||||
def upload_to_github_if_tagged(repo_name):
|
||||
try:
|
||||
current_tag = subprocess.check_output(
|
||||
['git', 'describe', '--exact-match', 'HEAD']).strip()
|
||||
except subprocess.CalledProcessError:
|
||||
print 'Not uploading to GitHub as we are not currently on a tag'
|
||||
return 1
|
||||
|
||||
print "Current tag: " + current_tag
|
||||
|
||||
if 'GH_TOKEN' not in os.environ:
|
||||
print 'Must set GH_TOKEN in order to publish assets to a release'
|
||||
return 1
|
||||
|
||||
gh_token = os.environ['GH_TOKEN']
|
||||
auth = github.Github(gh_token)
|
||||
repo = auth.get_repo(repo_name)
|
||||
|
||||
if not check_repo_has_tag(repo, current_tag):
|
||||
print 'Tag {} is not in repo {}'.format(current_tag, repo)
|
||||
# TODO: maybe this should be an error
|
||||
return 1
|
||||
|
||||
asset_path = get_asset_filename()
|
||||
print "Uploading " + asset_path + " to Github tag " + current_tag
|
||||
release = get_github_release(repo, current_tag)
|
||||
upload_asset_to_github(release, asset_path, gh_token)
|
||||
|
||||
|
||||
def check_repo_has_tag(repo, target_tag):
|
||||
tags = repo.get_tags().get_page(0)
|
||||
for tag in tags:
|
||||
if tag.name == target_tag:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def get_github_release(repo, current_tag):
|
||||
for release in repo.get_releases():
|
||||
if release.tag_name == current_tag:
|
||||
return release
|
||||
raise Exception('No release for {} was found'.format(current_tag))
|
||||
|
||||
|
||||
def upload_asset_to_github(release, asset_to_upload, token):
|
||||
basename = os.path.basename(asset_to_upload)
|
||||
for asset in release.raw_data['assets']:
|
||||
if asset['name'] == basename:
|
||||
print 'File {} has already been uploaded to {}'.format(basename, release.tag_name)
|
||||
return
|
||||
|
||||
upload_uri = uritemplate.expand(release.upload_url, {'name': basename})
|
||||
count = 0
|
||||
while count < 10:
|
||||
try:
|
||||
output = _curl_uploader(upload_uri, asset_to_upload, token)
|
||||
if 'errors' in output:
|
||||
raise Exception(output)
|
||||
else:
|
||||
print 'Successfully uploaded to {}'.format(output['browser_download_url'])
|
||||
except Exception:
|
||||
print 'Failed uploading on attempt {}'.format(count + 1)
|
||||
count += 1
|
||||
|
||||
|
||||
def _curl_uploader(upload_uri, asset_to_upload, token):
|
||||
# using requests.post fails miserably with SSL EPIPE errors. I spent
|
||||
# half a day trying to debug before deciding to switch to curl.
|
||||
#
|
||||
# TODO: actually set the content type
|
||||
print 'Using curl to upload {} to {}'.format(asset_to_upload, upload_uri)
|
||||
cmd = [
|
||||
'curl',
|
||||
'-sS',
|
||||
'-X', 'POST',
|
||||
'-u', ':{}'.format(os.environ['GH_TOKEN']),
|
||||
'--header', 'Content-Type: application/octet-stream',
|
||||
'--data-binary', '@-',
|
||||
upload_uri
|
||||
]
|
||||
# '-d', '{"some_key": "some_value"}',
|
||||
print 'Calling curl:'
|
||||
print cmd
|
||||
print
|
||||
with open(asset_to_upload, 'rb') as fp:
|
||||
p = subprocess.Popen(cmd, stdin=fp, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
|
||||
stdout, stderr = p.communicate()
|
||||
print 'curl return code:', p.returncode
|
||||
if stderr:
|
||||
print 'stderr output from curl:'
|
||||
print stderr
|
||||
print 'stdout from curl:'
|
||||
print stdout
|
||||
return json.loads(stdout)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
@@ -0,0 +1,29 @@
|
||||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import sys
|
||||
import zipfile
|
||||
|
||||
|
||||
def main():
|
||||
this_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
tag = subprocess.check_output(['git', 'describe']).strip()
|
||||
zipfilename = 'lbrynet-daemon-{}-{}.zip'.format(tag, get_system_label())
|
||||
full_filename = os.path.join(this_dir, 'dist', zipfilename)
|
||||
executables = ['lbrynet-daemon', 'lbrynet-cli']
|
||||
ext = '.exe' if platform.system() == 'Windows' else ''
|
||||
with zipfile.ZipFile(full_filename, 'w') as myzip:
|
||||
for executable in executables:
|
||||
myzip.write(os.path.join(this_dir, 'dist', executable + ext), executable + ext)
|
||||
|
||||
|
||||
def get_system_label():
|
||||
system = platform.system()
|
||||
if system == 'Darwin':
|
||||
return 'macos'
|
||||
else:
|
||||
return system.lower()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
||||
@@ -1,9 +0,0 @@
|
||||
# Files and directories created by pub
|
||||
.dart_tool/
|
||||
.packages
|
||||
|
||||
# Conventional directory for build outputs
|
||||
build/
|
||||
|
||||
# Directory created by dartdoc
|
||||
doc/api/
|
||||
@@ -1,3 +0,0 @@
|
||||
## 1.0.0
|
||||
|
||||
- Initial version, created by Stagehand
|
||||
@@ -1 +0,0 @@
|
||||
LBRY SDK in Dart.
|
||||
@@ -1,14 +0,0 @@
|
||||
# Defines a default set of lint rules enforced for
|
||||
# projects at Google. For details and rationale,
|
||||
# see https://github.com/dart-lang/pedantic#enabled-lints.
|
||||
include: package:pedantic/analysis_options.yaml
|
||||
|
||||
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
|
||||
# Uncomment to specify additional rules.
|
||||
# linter:
|
||||
# rules:
|
||||
# - camel_case_types
|
||||
|
||||
analyzer:
|
||||
# exclude:
|
||||
# - path/to/excluded/files/**
|
||||
@@ -1,6 +0,0 @@
|
||||
import 'package:lbry/src/load_generator.dart' as load;
|
||||
//import 'package:lbry/src/server_connection.dart' as load;
|
||||
|
||||
main(List<String> arguments) {
|
||||
load.generate_load();
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
export 'src/load_generator.dart';
|
||||
export 'src/server_connection.dart';
|
||||
@@ -1,153 +0,0 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
import 'dart:convert';
|
||||
|
||||
|
||||
class LoadRequest {
|
||||
final String host;
|
||||
final int port;
|
||||
final Map payload;
|
||||
Completer completer;
|
||||
Stopwatch timer;
|
||||
Socket socket;
|
||||
|
||||
bool get isDone => completer.isCompleted;
|
||||
int get elapsed => timer.elapsedMilliseconds;
|
||||
|
||||
LoadRequest(this.host, this.port, this.payload);
|
||||
|
||||
LoadRequest start() {
|
||||
completer = Completer();
|
||||
timer = Stopwatch()..start();
|
||||
completer.future.whenComplete(() => timer.stop());
|
||||
try {
|
||||
Socket.connect(this.host, this.port).then((socket) {
|
||||
this.socket = socket;
|
||||
utf8.decoder.bind(socket).listen((r) {
|
||||
if (r.contains('"jsonrpc": "2.0", "result": ')) {
|
||||
socket.close();
|
||||
completer.complete();
|
||||
}
|
||||
}, onError: (e) {print(e); completer.complete();});
|
||||
try {
|
||||
socket.write(jsonEncode(payload) + '\n');
|
||||
} catch (exception, stackTrace) {
|
||||
print(exception);
|
||||
print(stackTrace);
|
||||
completer.complete();
|
||||
}
|
||||
}, onError: (e) {print(e);completer.complete();});
|
||||
} catch (exception, stackTrace) {
|
||||
print(exception);
|
||||
print(stackTrace);
|
||||
completer.complete();
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
typedef bool LoadTickCallback(ClientLoadGenerator load_generator, ClientLoadDataPoint stats);
|
||||
|
||||
class ClientLoadGenerator {
|
||||
Timer _timer;
|
||||
|
||||
final String host;
|
||||
final int port;
|
||||
final LoadTickCallback tickCallback;
|
||||
int load = 1;
|
||||
Map query;
|
||||
List<LoadRequest> backlog = [];
|
||||
|
||||
ClientLoadGenerator(this.host, this.port, {this.tickCallback, this.query}) {
|
||||
if (query == null) {
|
||||
query = {
|
||||
'id': 1,
|
||||
'method': 'blockchain.claimtrie.resolve',
|
||||
'params': ['one', 'two', 'three']
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
start() {
|
||||
var previous = spawn_requests();
|
||||
backlog = <LoadRequest>[];
|
||||
_timer = Timer.periodic(Duration(seconds: 1), (t) {
|
||||
var stat = ClientLoadDataPoint(t.tick);
|
||||
backlog.removeWhere((r) {
|
||||
if (r.isDone) stat.addCatchup(r);
|
||||
return r.isDone;
|
||||
});
|
||||
for (var f in previous) {
|
||||
if (f.isDone) {
|
||||
stat.addSuccess(f);
|
||||
} else {
|
||||
backlog.add(f);
|
||||
}
|
||||
}
|
||||
stat.backlog = backlog.length;
|
||||
stat.load = load;
|
||||
stat.close();
|
||||
if (tickCallback(this, stat)) {
|
||||
previous = spawn_requests();
|
||||
} else {
|
||||
stop();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
stop() {
|
||||
_timer.cancel();
|
||||
for (var remaining in backlog) {
|
||||
remaining?.socket?.close();
|
||||
}
|
||||
}
|
||||
|
||||
List<LoadRequest> spawn_requests() {
|
||||
var requests = <LoadRequest>[];
|
||||
for (var _ in Iterable.generate(load)) {
|
||||
requests.add(LoadRequest(this.host, this.port, this.query).start());
|
||||
}
|
||||
return requests;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ClientLoadDataPoint {
|
||||
final int tick;
|
||||
int success = 0;
|
||||
int errored = 0;
|
||||
int backlog = 0;
|
||||
int catchup = 0;
|
||||
int _success_total = 0;
|
||||
int avg_success = 0;
|
||||
int _catchup_total = 0;
|
||||
int avg_catchup = 0;
|
||||
int load = 0;
|
||||
|
||||
ClientLoadDataPoint(this.tick);
|
||||
ClientLoadDataPoint.empty(): this(0);
|
||||
|
||||
addSuccess(LoadRequest r) {
|
||||
success++; _success_total += r.elapsed;
|
||||
}
|
||||
|
||||
addCatchup(LoadRequest r) {
|
||||
catchup++; _catchup_total += r.elapsed;
|
||||
}
|
||||
|
||||
close() {
|
||||
avg_success = _success_total > 0 ? (_success_total/success).round() : 0;
|
||||
avg_catchup = _catchup_total > 0 ? (_catchup_total/catchup).round() : 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
generate_load() {
|
||||
var runs = 1;
|
||||
ClientLoadGenerator('localhost', 50001, tickCallback: (t, stats) {
|
||||
print("run ${runs}: ${stats.load} load, ${stats.success} success, ${stats.backlog} backlog");
|
||||
t.load = (runs < 4 ? t.load*2 : t.load/2).round();
|
||||
return runs++ < 10;
|
||||
}).start();
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
build:
|
||||
protoc --dart_out=v2 -I ../../../../../../../types/v2/proto/ ../../../../../../../types/v2/proto/*.proto
|
||||
@@ -1,625 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: claim.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
import 'dart:core' as $core show bool, Deprecated, double, int, List, Map, override, pragma, String;
|
||||
|
||||
import 'package:fixnum/fixnum.dart';
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'claim.pbenum.dart';
|
||||
|
||||
export 'claim.pbenum.dart';
|
||||
|
||||
enum Claim_Type {
|
||||
stream,
|
||||
channel,
|
||||
collection,
|
||||
repost,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Claim extends $pb.GeneratedMessage {
|
||||
static const $core.Map<$core.int, Claim_Type> _Claim_TypeByTag = {
|
||||
1 : Claim_Type.stream,
|
||||
2 : Claim_Type.channel,
|
||||
3 : Claim_Type.collection,
|
||||
4 : Claim_Type.repost,
|
||||
0 : Claim_Type.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Claim', package: const $pb.PackageName('pb'))
|
||||
..oo(0, [1, 2, 3, 4])
|
||||
..a<Stream>(1, 'stream', $pb.PbFieldType.OM, Stream.getDefault, Stream.create)
|
||||
..a<Channel>(2, 'channel', $pb.PbFieldType.OM, Channel.getDefault, Channel.create)
|
||||
..a<ClaimList>(3, 'collection', $pb.PbFieldType.OM, ClaimList.getDefault, ClaimList.create)
|
||||
..a<ClaimReference>(4, 'repost', $pb.PbFieldType.OM, ClaimReference.getDefault, ClaimReference.create)
|
||||
..aOS(8, 'title')
|
||||
..aOS(9, 'description')
|
||||
..a<Source>(10, 'thumbnail', $pb.PbFieldType.OM, Source.getDefault, Source.create)
|
||||
..pPS(11, 'tags')
|
||||
..pc<Language>(12, 'languages', $pb.PbFieldType.PM,Language.create)
|
||||
..pc<Location>(13, 'locations', $pb.PbFieldType.PM,Location.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Claim._() : super();
|
||||
factory Claim() => create();
|
||||
factory Claim.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Claim.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Claim clone() => Claim()..mergeFromMessage(this);
|
||||
Claim copyWith(void Function(Claim) updates) => super.copyWith((message) => updates(message as Claim));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Claim create() => Claim._();
|
||||
Claim createEmptyInstance() => create();
|
||||
static $pb.PbList<Claim> createRepeated() => $pb.PbList<Claim>();
|
||||
static Claim getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Claim _defaultInstance;
|
||||
|
||||
Claim_Type whichType() => _Claim_TypeByTag[$_whichOneof(0)];
|
||||
void clearType() => clearField($_whichOneof(0));
|
||||
|
||||
Stream get stream => $_getN(0);
|
||||
set stream(Stream v) { setField(1, v); }
|
||||
$core.bool hasStream() => $_has(0);
|
||||
void clearStream() => clearField(1);
|
||||
|
||||
Channel get channel => $_getN(1);
|
||||
set channel(Channel v) { setField(2, v); }
|
||||
$core.bool hasChannel() => $_has(1);
|
||||
void clearChannel() => clearField(2);
|
||||
|
||||
ClaimList get collection => $_getN(2);
|
||||
set collection(ClaimList v) { setField(3, v); }
|
||||
$core.bool hasCollection() => $_has(2);
|
||||
void clearCollection() => clearField(3);
|
||||
|
||||
ClaimReference get repost => $_getN(3);
|
||||
set repost(ClaimReference v) { setField(4, v); }
|
||||
$core.bool hasRepost() => $_has(3);
|
||||
void clearRepost() => clearField(4);
|
||||
|
||||
$core.String get title => $_getS(4, '');
|
||||
set title($core.String v) { $_setString(4, v); }
|
||||
$core.bool hasTitle() => $_has(4);
|
||||
void clearTitle() => clearField(8);
|
||||
|
||||
$core.String get description => $_getS(5, '');
|
||||
set description($core.String v) { $_setString(5, v); }
|
||||
$core.bool hasDescription() => $_has(5);
|
||||
void clearDescription() => clearField(9);
|
||||
|
||||
Source get thumbnail => $_getN(6);
|
||||
set thumbnail(Source v) { setField(10, v); }
|
||||
$core.bool hasThumbnail() => $_has(6);
|
||||
void clearThumbnail() => clearField(10);
|
||||
|
||||
$core.List<$core.String> get tags => $_getList(7);
|
||||
|
||||
$core.List<Language> get languages => $_getList(8);
|
||||
|
||||
$core.List<Location> get locations => $_getList(9);
|
||||
}
|
||||
|
||||
enum Stream_Type {
|
||||
image,
|
||||
video,
|
||||
audio,
|
||||
software,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Stream extends $pb.GeneratedMessage {
|
||||
static const $core.Map<$core.int, Stream_Type> _Stream_TypeByTag = {
|
||||
10 : Stream_Type.image,
|
||||
11 : Stream_Type.video,
|
||||
12 : Stream_Type.audio,
|
||||
13 : Stream_Type.software,
|
||||
0 : Stream_Type.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Stream', package: const $pb.PackageName('pb'))
|
||||
..oo(0, [10, 11, 12, 13])
|
||||
..a<Source>(1, 'source', $pb.PbFieldType.OM, Source.getDefault, Source.create)
|
||||
..aOS(2, 'author')
|
||||
..aOS(3, 'license')
|
||||
..aOS(4, 'licenseUrl')
|
||||
..aInt64(5, 'releaseTime')
|
||||
..a<Fee>(6, 'fee', $pb.PbFieldType.OM, Fee.getDefault, Fee.create)
|
||||
..a<Image>(10, 'image', $pb.PbFieldType.OM, Image.getDefault, Image.create)
|
||||
..a<Video>(11, 'video', $pb.PbFieldType.OM, Video.getDefault, Video.create)
|
||||
..a<Audio>(12, 'audio', $pb.PbFieldType.OM, Audio.getDefault, Audio.create)
|
||||
..a<Software>(13, 'software', $pb.PbFieldType.OM, Software.getDefault, Software.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Stream._() : super();
|
||||
factory Stream() => create();
|
||||
factory Stream.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Stream.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Stream clone() => Stream()..mergeFromMessage(this);
|
||||
Stream copyWith(void Function(Stream) updates) => super.copyWith((message) => updates(message as Stream));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Stream create() => Stream._();
|
||||
Stream createEmptyInstance() => create();
|
||||
static $pb.PbList<Stream> createRepeated() => $pb.PbList<Stream>();
|
||||
static Stream getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Stream _defaultInstance;
|
||||
|
||||
Stream_Type whichType() => _Stream_TypeByTag[$_whichOneof(0)];
|
||||
void clearType() => clearField($_whichOneof(0));
|
||||
|
||||
Source get source => $_getN(0);
|
||||
set source(Source v) { setField(1, v); }
|
||||
$core.bool hasSource() => $_has(0);
|
||||
void clearSource() => clearField(1);
|
||||
|
||||
$core.String get author => $_getS(1, '');
|
||||
set author($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasAuthor() => $_has(1);
|
||||
void clearAuthor() => clearField(2);
|
||||
|
||||
$core.String get license => $_getS(2, '');
|
||||
set license($core.String v) { $_setString(2, v); }
|
||||
$core.bool hasLicense() => $_has(2);
|
||||
void clearLicense() => clearField(3);
|
||||
|
||||
$core.String get licenseUrl => $_getS(3, '');
|
||||
set licenseUrl($core.String v) { $_setString(3, v); }
|
||||
$core.bool hasLicenseUrl() => $_has(3);
|
||||
void clearLicenseUrl() => clearField(4);
|
||||
|
||||
Int64 get releaseTime => $_getI64(4);
|
||||
set releaseTime(Int64 v) { $_setInt64(4, v); }
|
||||
$core.bool hasReleaseTime() => $_has(4);
|
||||
void clearReleaseTime() => clearField(5);
|
||||
|
||||
Fee get fee => $_getN(5);
|
||||
set fee(Fee v) { setField(6, v); }
|
||||
$core.bool hasFee() => $_has(5);
|
||||
void clearFee() => clearField(6);
|
||||
|
||||
Image get image => $_getN(6);
|
||||
set image(Image v) { setField(10, v); }
|
||||
$core.bool hasImage() => $_has(6);
|
||||
void clearImage() => clearField(10);
|
||||
|
||||
Video get video => $_getN(7);
|
||||
set video(Video v) { setField(11, v); }
|
||||
$core.bool hasVideo() => $_has(7);
|
||||
void clearVideo() => clearField(11);
|
||||
|
||||
Audio get audio => $_getN(8);
|
||||
set audio(Audio v) { setField(12, v); }
|
||||
$core.bool hasAudio() => $_has(8);
|
||||
void clearAudio() => clearField(12);
|
||||
|
||||
Software get software => $_getN(9);
|
||||
set software(Software v) { setField(13, v); }
|
||||
$core.bool hasSoftware() => $_has(9);
|
||||
void clearSoftware() => clearField(13);
|
||||
}
|
||||
|
||||
class Channel extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Channel', package: const $pb.PackageName('pb'))
|
||||
..a<$core.List<$core.int>>(1, 'publicKey', $pb.PbFieldType.OY)
|
||||
..aOS(2, 'email')
|
||||
..aOS(3, 'websiteUrl')
|
||||
..a<Source>(4, 'cover', $pb.PbFieldType.OM, Source.getDefault, Source.create)
|
||||
..a<ClaimList>(5, 'featured', $pb.PbFieldType.OM, ClaimList.getDefault, ClaimList.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Channel._() : super();
|
||||
factory Channel() => create();
|
||||
factory Channel.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Channel.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Channel clone() => Channel()..mergeFromMessage(this);
|
||||
Channel copyWith(void Function(Channel) updates) => super.copyWith((message) => updates(message as Channel));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Channel create() => Channel._();
|
||||
Channel createEmptyInstance() => create();
|
||||
static $pb.PbList<Channel> createRepeated() => $pb.PbList<Channel>();
|
||||
static Channel getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Channel _defaultInstance;
|
||||
|
||||
$core.List<$core.int> get publicKey => $_getN(0);
|
||||
set publicKey($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
$core.bool hasPublicKey() => $_has(0);
|
||||
void clearPublicKey() => clearField(1);
|
||||
|
||||
$core.String get email => $_getS(1, '');
|
||||
set email($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasEmail() => $_has(1);
|
||||
void clearEmail() => clearField(2);
|
||||
|
||||
$core.String get websiteUrl => $_getS(2, '');
|
||||
set websiteUrl($core.String v) { $_setString(2, v); }
|
||||
$core.bool hasWebsiteUrl() => $_has(2);
|
||||
void clearWebsiteUrl() => clearField(3);
|
||||
|
||||
Source get cover => $_getN(3);
|
||||
set cover(Source v) { setField(4, v); }
|
||||
$core.bool hasCover() => $_has(3);
|
||||
void clearCover() => clearField(4);
|
||||
|
||||
ClaimList get featured => $_getN(4);
|
||||
set featured(ClaimList v) { setField(5, v); }
|
||||
$core.bool hasFeatured() => $_has(4);
|
||||
void clearFeatured() => clearField(5);
|
||||
}
|
||||
|
||||
class ClaimReference extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('ClaimReference', package: const $pb.PackageName('pb'))
|
||||
..a<$core.List<$core.int>>(1, 'claimHash', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
ClaimReference._() : super();
|
||||
factory ClaimReference() => create();
|
||||
factory ClaimReference.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory ClaimReference.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
ClaimReference clone() => ClaimReference()..mergeFromMessage(this);
|
||||
ClaimReference copyWith(void Function(ClaimReference) updates) => super.copyWith((message) => updates(message as ClaimReference));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClaimReference create() => ClaimReference._();
|
||||
ClaimReference createEmptyInstance() => create();
|
||||
static $pb.PbList<ClaimReference> createRepeated() => $pb.PbList<ClaimReference>();
|
||||
static ClaimReference getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static ClaimReference _defaultInstance;
|
||||
|
||||
$core.List<$core.int> get claimHash => $_getN(0);
|
||||
set claimHash($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
$core.bool hasClaimHash() => $_has(0);
|
||||
void clearClaimHash() => clearField(1);
|
||||
}
|
||||
|
||||
class ClaimList extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('ClaimList', package: const $pb.PackageName('pb'))
|
||||
..e<ClaimList_ListType>(1, 'listType', $pb.PbFieldType.OE, ClaimList_ListType.COLLECTION, ClaimList_ListType.valueOf, ClaimList_ListType.values)
|
||||
..pc<ClaimReference>(2, 'claimReferences', $pb.PbFieldType.PM,ClaimReference.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
ClaimList._() : super();
|
||||
factory ClaimList() => create();
|
||||
factory ClaimList.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory ClaimList.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
ClaimList clone() => ClaimList()..mergeFromMessage(this);
|
||||
ClaimList copyWith(void Function(ClaimList) updates) => super.copyWith((message) => updates(message as ClaimList));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClaimList create() => ClaimList._();
|
||||
ClaimList createEmptyInstance() => create();
|
||||
static $pb.PbList<ClaimList> createRepeated() => $pb.PbList<ClaimList>();
|
||||
static ClaimList getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static ClaimList _defaultInstance;
|
||||
|
||||
ClaimList_ListType get listType => $_getN(0);
|
||||
set listType(ClaimList_ListType v) { setField(1, v); }
|
||||
$core.bool hasListType() => $_has(0);
|
||||
void clearListType() => clearField(1);
|
||||
|
||||
$core.List<ClaimReference> get claimReferences => $_getList(1);
|
||||
}
|
||||
|
||||
class Source extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Source', package: const $pb.PackageName('pb'))
|
||||
..a<$core.List<$core.int>>(1, 'hash', $pb.PbFieldType.OY)
|
||||
..aOS(2, 'name')
|
||||
..a<Int64>(3, 'size', $pb.PbFieldType.OU6, Int64.ZERO)
|
||||
..aOS(4, 'mediaType')
|
||||
..aOS(5, 'url')
|
||||
..a<$core.List<$core.int>>(6, 'sdHash', $pb.PbFieldType.OY)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Source._() : super();
|
||||
factory Source() => create();
|
||||
factory Source.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Source.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Source clone() => Source()..mergeFromMessage(this);
|
||||
Source copyWith(void Function(Source) updates) => super.copyWith((message) => updates(message as Source));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Source create() => Source._();
|
||||
Source createEmptyInstance() => create();
|
||||
static $pb.PbList<Source> createRepeated() => $pb.PbList<Source>();
|
||||
static Source getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Source _defaultInstance;
|
||||
|
||||
$core.List<$core.int> get hash => $_getN(0);
|
||||
set hash($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
$core.bool hasHash() => $_has(0);
|
||||
void clearHash() => clearField(1);
|
||||
|
||||
$core.String get name => $_getS(1, '');
|
||||
set name($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasName() => $_has(1);
|
||||
void clearName() => clearField(2);
|
||||
|
||||
Int64 get size => $_getI64(2);
|
||||
set size(Int64 v) { $_setInt64(2, v); }
|
||||
$core.bool hasSize() => $_has(2);
|
||||
void clearSize() => clearField(3);
|
||||
|
||||
$core.String get mediaType => $_getS(3, '');
|
||||
set mediaType($core.String v) { $_setString(3, v); }
|
||||
$core.bool hasMediaType() => $_has(3);
|
||||
void clearMediaType() => clearField(4);
|
||||
|
||||
$core.String get url => $_getS(4, '');
|
||||
set url($core.String v) { $_setString(4, v); }
|
||||
$core.bool hasUrl() => $_has(4);
|
||||
void clearUrl() => clearField(5);
|
||||
|
||||
$core.List<$core.int> get sdHash => $_getN(5);
|
||||
set sdHash($core.List<$core.int> v) { $_setBytes(5, v); }
|
||||
$core.bool hasSdHash() => $_has(5);
|
||||
void clearSdHash() => clearField(6);
|
||||
}
|
||||
|
||||
class Fee extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Fee', package: const $pb.PackageName('pb'))
|
||||
..e<Fee_Currency>(1, 'currency', $pb.PbFieldType.OE, Fee_Currency.UNKNOWN_CURRENCY, Fee_Currency.valueOf, Fee_Currency.values)
|
||||
..a<$core.List<$core.int>>(2, 'address', $pb.PbFieldType.OY)
|
||||
..a<Int64>(3, 'amount', $pb.PbFieldType.OU6, Int64.ZERO)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Fee._() : super();
|
||||
factory Fee() => create();
|
||||
factory Fee.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Fee.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Fee clone() => Fee()..mergeFromMessage(this);
|
||||
Fee copyWith(void Function(Fee) updates) => super.copyWith((message) => updates(message as Fee));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Fee create() => Fee._();
|
||||
Fee createEmptyInstance() => create();
|
||||
static $pb.PbList<Fee> createRepeated() => $pb.PbList<Fee>();
|
||||
static Fee getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Fee _defaultInstance;
|
||||
|
||||
Fee_Currency get currency => $_getN(0);
|
||||
set currency(Fee_Currency v) { setField(1, v); }
|
||||
$core.bool hasCurrency() => $_has(0);
|
||||
void clearCurrency() => clearField(1);
|
||||
|
||||
$core.List<$core.int> get address => $_getN(1);
|
||||
set address($core.List<$core.int> v) { $_setBytes(1, v); }
|
||||
$core.bool hasAddress() => $_has(1);
|
||||
void clearAddress() => clearField(2);
|
||||
|
||||
Int64 get amount => $_getI64(2);
|
||||
set amount(Int64 v) { $_setInt64(2, v); }
|
||||
$core.bool hasAmount() => $_has(2);
|
||||
void clearAmount() => clearField(3);
|
||||
}
|
||||
|
||||
class Image extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Image', package: const $pb.PackageName('pb'))
|
||||
..a<$core.int>(1, 'width', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(2, 'height', $pb.PbFieldType.OU3)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Image._() : super();
|
||||
factory Image() => create();
|
||||
factory Image.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Image.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Image clone() => Image()..mergeFromMessage(this);
|
||||
Image copyWith(void Function(Image) updates) => super.copyWith((message) => updates(message as Image));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Image create() => Image._();
|
||||
Image createEmptyInstance() => create();
|
||||
static $pb.PbList<Image> createRepeated() => $pb.PbList<Image>();
|
||||
static Image getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Image _defaultInstance;
|
||||
|
||||
$core.int get width => $_get(0, 0);
|
||||
set width($core.int v) { $_setUnsignedInt32(0, v); }
|
||||
$core.bool hasWidth() => $_has(0);
|
||||
void clearWidth() => clearField(1);
|
||||
|
||||
$core.int get height => $_get(1, 0);
|
||||
set height($core.int v) { $_setUnsignedInt32(1, v); }
|
||||
$core.bool hasHeight() => $_has(1);
|
||||
void clearHeight() => clearField(2);
|
||||
}
|
||||
|
||||
class Video extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Video', package: const $pb.PackageName('pb'))
|
||||
..a<$core.int>(1, 'width', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(2, 'height', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(3, 'duration', $pb.PbFieldType.OU3)
|
||||
..a<Audio>(15, 'audio', $pb.PbFieldType.OM, Audio.getDefault, Audio.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Video._() : super();
|
||||
factory Video() => create();
|
||||
factory Video.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Video.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Video clone() => Video()..mergeFromMessage(this);
|
||||
Video copyWith(void Function(Video) updates) => super.copyWith((message) => updates(message as Video));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Video create() => Video._();
|
||||
Video createEmptyInstance() => create();
|
||||
static $pb.PbList<Video> createRepeated() => $pb.PbList<Video>();
|
||||
static Video getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Video _defaultInstance;
|
||||
|
||||
$core.int get width => $_get(0, 0);
|
||||
set width($core.int v) { $_setUnsignedInt32(0, v); }
|
||||
$core.bool hasWidth() => $_has(0);
|
||||
void clearWidth() => clearField(1);
|
||||
|
||||
$core.int get height => $_get(1, 0);
|
||||
set height($core.int v) { $_setUnsignedInt32(1, v); }
|
||||
$core.bool hasHeight() => $_has(1);
|
||||
void clearHeight() => clearField(2);
|
||||
|
||||
$core.int get duration => $_get(2, 0);
|
||||
set duration($core.int v) { $_setUnsignedInt32(2, v); }
|
||||
$core.bool hasDuration() => $_has(2);
|
||||
void clearDuration() => clearField(3);
|
||||
|
||||
Audio get audio => $_getN(3);
|
||||
set audio(Audio v) { setField(15, v); }
|
||||
$core.bool hasAudio() => $_has(3);
|
||||
void clearAudio() => clearField(15);
|
||||
}
|
||||
|
||||
class Audio extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Audio', package: const $pb.PackageName('pb'))
|
||||
..a<$core.int>(1, 'duration', $pb.PbFieldType.OU3)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Audio._() : super();
|
||||
factory Audio() => create();
|
||||
factory Audio.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Audio.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Audio clone() => Audio()..mergeFromMessage(this);
|
||||
Audio copyWith(void Function(Audio) updates) => super.copyWith((message) => updates(message as Audio));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Audio create() => Audio._();
|
||||
Audio createEmptyInstance() => create();
|
||||
static $pb.PbList<Audio> createRepeated() => $pb.PbList<Audio>();
|
||||
static Audio getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Audio _defaultInstance;
|
||||
|
||||
$core.int get duration => $_get(0, 0);
|
||||
set duration($core.int v) { $_setUnsignedInt32(0, v); }
|
||||
$core.bool hasDuration() => $_has(0);
|
||||
void clearDuration() => clearField(1);
|
||||
}
|
||||
|
||||
class Software extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Software', package: const $pb.PackageName('pb'))
|
||||
..aOS(1, 'os')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Software._() : super();
|
||||
factory Software() => create();
|
||||
factory Software.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Software.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Software clone() => Software()..mergeFromMessage(this);
|
||||
Software copyWith(void Function(Software) updates) => super.copyWith((message) => updates(message as Software));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Software create() => Software._();
|
||||
Software createEmptyInstance() => create();
|
||||
static $pb.PbList<Software> createRepeated() => $pb.PbList<Software>();
|
||||
static Software getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Software _defaultInstance;
|
||||
|
||||
$core.String get os => $_getS(0, '');
|
||||
set os($core.String v) { $_setString(0, v); }
|
||||
$core.bool hasOs() => $_has(0);
|
||||
void clearOs() => clearField(1);
|
||||
}
|
||||
|
||||
class Language extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Language', package: const $pb.PackageName('pb'))
|
||||
..e<Language_Language>(1, 'language', $pb.PbFieldType.OE, Language_Language.UNKNOWN_LANGUAGE, Language_Language.valueOf, Language_Language.values)
|
||||
..e<Language_Script>(2, 'script', $pb.PbFieldType.OE, Language_Script.UNKNOWN_SCRIPT, Language_Script.valueOf, Language_Script.values)
|
||||
..e<Location_Country>(3, 'region', $pb.PbFieldType.OE, Location_Country.UNKNOWN_COUNTRY, Location_Country.valueOf, Location_Country.values)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Language._() : super();
|
||||
factory Language() => create();
|
||||
factory Language.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Language.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Language clone() => Language()..mergeFromMessage(this);
|
||||
Language copyWith(void Function(Language) updates) => super.copyWith((message) => updates(message as Language));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Language create() => Language._();
|
||||
Language createEmptyInstance() => create();
|
||||
static $pb.PbList<Language> createRepeated() => $pb.PbList<Language>();
|
||||
static Language getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Language _defaultInstance;
|
||||
|
||||
Language_Language get language => $_getN(0);
|
||||
set language(Language_Language v) { setField(1, v); }
|
||||
$core.bool hasLanguage() => $_has(0);
|
||||
void clearLanguage() => clearField(1);
|
||||
|
||||
Language_Script get script => $_getN(1);
|
||||
set script(Language_Script v) { setField(2, v); }
|
||||
$core.bool hasScript() => $_has(1);
|
||||
void clearScript() => clearField(2);
|
||||
|
||||
Location_Country get region => $_getN(2);
|
||||
set region(Location_Country v) { setField(3, v); }
|
||||
$core.bool hasRegion() => $_has(2);
|
||||
void clearRegion() => clearField(3);
|
||||
}
|
||||
|
||||
class Location extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Location', package: const $pb.PackageName('pb'))
|
||||
..e<Location_Country>(1, 'country', $pb.PbFieldType.OE, Location_Country.UNKNOWN_COUNTRY, Location_Country.valueOf, Location_Country.values)
|
||||
..aOS(2, 'state')
|
||||
..aOS(3, 'city')
|
||||
..aOS(4, 'code')
|
||||
..a<$core.int>(5, 'latitude', $pb.PbFieldType.OS3)
|
||||
..a<$core.int>(6, 'longitude', $pb.PbFieldType.OS3)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Location._() : super();
|
||||
factory Location() => create();
|
||||
factory Location.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Location.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Location clone() => Location()..mergeFromMessage(this);
|
||||
Location copyWith(void Function(Location) updates) => super.copyWith((message) => updates(message as Location));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Location create() => Location._();
|
||||
Location createEmptyInstance() => create();
|
||||
static $pb.PbList<Location> createRepeated() => $pb.PbList<Location>();
|
||||
static Location getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Location _defaultInstance;
|
||||
|
||||
Location_Country get country => $_getN(0);
|
||||
set country(Location_Country v) { setField(1, v); }
|
||||
$core.bool hasCountry() => $_has(0);
|
||||
void clearCountry() => clearField(1);
|
||||
|
||||
$core.String get state => $_getS(1, '');
|
||||
set state($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasState() => $_has(1);
|
||||
void clearState() => clearField(2);
|
||||
|
||||
$core.String get city => $_getS(2, '');
|
||||
set city($core.String v) { $_setString(2, v); }
|
||||
$core.bool hasCity() => $_has(2);
|
||||
void clearCity() => clearField(3);
|
||||
|
||||
$core.String get code => $_getS(3, '');
|
||||
set code($core.String v) { $_setString(3, v); }
|
||||
$core.bool hasCode() => $_has(3);
|
||||
void clearCode() => clearField(4);
|
||||
|
||||
$core.int get latitude => $_get(4, 0);
|
||||
set latitude($core.int v) { $_setSignedInt32(4, v); }
|
||||
$core.bool hasLatitude() => $_has(4);
|
||||
void clearLatitude() => clearField(5);
|
||||
|
||||
$core.int get longitude => $_get(5, 0);
|
||||
set longitude($core.int v) { $_setSignedInt32(5, v); }
|
||||
$core.bool hasLongitude() => $_has(5);
|
||||
void clearLongitude() => clearField(6);
|
||||
}
|
||||
|
||||
@@ -1,833 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: claim.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
const Claim$json = const {
|
||||
'1': 'Claim',
|
||||
'2': const [
|
||||
const {'1': 'stream', '3': 1, '4': 1, '5': 11, '6': '.pb.Stream', '9': 0, '10': 'stream'},
|
||||
const {'1': 'channel', '3': 2, '4': 1, '5': 11, '6': '.pb.Channel', '9': 0, '10': 'channel'},
|
||||
const {'1': 'collection', '3': 3, '4': 1, '5': 11, '6': '.pb.ClaimList', '9': 0, '10': 'collection'},
|
||||
const {'1': 'repost', '3': 4, '4': 1, '5': 11, '6': '.pb.ClaimReference', '9': 0, '10': 'repost'},
|
||||
const {'1': 'title', '3': 8, '4': 1, '5': 9, '10': 'title'},
|
||||
const {'1': 'description', '3': 9, '4': 1, '5': 9, '10': 'description'},
|
||||
const {'1': 'thumbnail', '3': 10, '4': 1, '5': 11, '6': '.pb.Source', '10': 'thumbnail'},
|
||||
const {'1': 'tags', '3': 11, '4': 3, '5': 9, '10': 'tags'},
|
||||
const {'1': 'languages', '3': 12, '4': 3, '5': 11, '6': '.pb.Language', '10': 'languages'},
|
||||
const {'1': 'locations', '3': 13, '4': 3, '5': 11, '6': '.pb.Location', '10': 'locations'},
|
||||
],
|
||||
'8': const [
|
||||
const {'1': 'type'},
|
||||
],
|
||||
};
|
||||
|
||||
const Stream$json = const {
|
||||
'1': 'Stream',
|
||||
'2': const [
|
||||
const {'1': 'source', '3': 1, '4': 1, '5': 11, '6': '.pb.Source', '10': 'source'},
|
||||
const {'1': 'author', '3': 2, '4': 1, '5': 9, '10': 'author'},
|
||||
const {'1': 'license', '3': 3, '4': 1, '5': 9, '10': 'license'},
|
||||
const {'1': 'license_url', '3': 4, '4': 1, '5': 9, '10': 'licenseUrl'},
|
||||
const {'1': 'release_time', '3': 5, '4': 1, '5': 3, '10': 'releaseTime'},
|
||||
const {'1': 'fee', '3': 6, '4': 1, '5': 11, '6': '.pb.Fee', '10': 'fee'},
|
||||
const {'1': 'image', '3': 10, '4': 1, '5': 11, '6': '.pb.Image', '9': 0, '10': 'image'},
|
||||
const {'1': 'video', '3': 11, '4': 1, '5': 11, '6': '.pb.Video', '9': 0, '10': 'video'},
|
||||
const {'1': 'audio', '3': 12, '4': 1, '5': 11, '6': '.pb.Audio', '9': 0, '10': 'audio'},
|
||||
const {'1': 'software', '3': 13, '4': 1, '5': 11, '6': '.pb.Software', '9': 0, '10': 'software'},
|
||||
],
|
||||
'8': const [
|
||||
const {'1': 'type'},
|
||||
],
|
||||
};
|
||||
|
||||
const Channel$json = const {
|
||||
'1': 'Channel',
|
||||
'2': const [
|
||||
const {'1': 'public_key', '3': 1, '4': 1, '5': 12, '10': 'publicKey'},
|
||||
const {'1': 'email', '3': 2, '4': 1, '5': 9, '10': 'email'},
|
||||
const {'1': 'website_url', '3': 3, '4': 1, '5': 9, '10': 'websiteUrl'},
|
||||
const {'1': 'cover', '3': 4, '4': 1, '5': 11, '6': '.pb.Source', '10': 'cover'},
|
||||
const {'1': 'featured', '3': 5, '4': 1, '5': 11, '6': '.pb.ClaimList', '10': 'featured'},
|
||||
],
|
||||
};
|
||||
|
||||
const ClaimReference$json = const {
|
||||
'1': 'ClaimReference',
|
||||
'2': const [
|
||||
const {'1': 'claim_hash', '3': 1, '4': 1, '5': 12, '10': 'claimHash'},
|
||||
],
|
||||
};
|
||||
|
||||
const ClaimList$json = const {
|
||||
'1': 'ClaimList',
|
||||
'2': const [
|
||||
const {'1': 'list_type', '3': 1, '4': 1, '5': 14, '6': '.pb.ClaimList.ListType', '10': 'listType'},
|
||||
const {'1': 'claim_references', '3': 2, '4': 3, '5': 11, '6': '.pb.ClaimReference', '10': 'claimReferences'},
|
||||
],
|
||||
'4': const [ClaimList_ListType$json],
|
||||
};
|
||||
|
||||
const ClaimList_ListType$json = const {
|
||||
'1': 'ListType',
|
||||
'2': const [
|
||||
const {'1': 'COLLECTION', '2': 0},
|
||||
const {'1': 'DERIVATION', '2': 2},
|
||||
],
|
||||
};
|
||||
|
||||
const Source$json = const {
|
||||
'1': 'Source',
|
||||
'2': const [
|
||||
const {'1': 'hash', '3': 1, '4': 1, '5': 12, '10': 'hash'},
|
||||
const {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'},
|
||||
const {'1': 'size', '3': 3, '4': 1, '5': 4, '10': 'size'},
|
||||
const {'1': 'media_type', '3': 4, '4': 1, '5': 9, '10': 'mediaType'},
|
||||
const {'1': 'url', '3': 5, '4': 1, '5': 9, '10': 'url'},
|
||||
const {'1': 'sd_hash', '3': 6, '4': 1, '5': 12, '10': 'sdHash'},
|
||||
],
|
||||
};
|
||||
|
||||
const Fee$json = const {
|
||||
'1': 'Fee',
|
||||
'2': const [
|
||||
const {'1': 'currency', '3': 1, '4': 1, '5': 14, '6': '.pb.Fee.Currency', '10': 'currency'},
|
||||
const {'1': 'address', '3': 2, '4': 1, '5': 12, '10': 'address'},
|
||||
const {'1': 'amount', '3': 3, '4': 1, '5': 4, '10': 'amount'},
|
||||
],
|
||||
'4': const [Fee_Currency$json],
|
||||
};
|
||||
|
||||
const Fee_Currency$json = const {
|
||||
'1': 'Currency',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_CURRENCY', '2': 0},
|
||||
const {'1': 'LBC', '2': 1},
|
||||
const {'1': 'BTC', '2': 2},
|
||||
const {'1': 'USD', '2': 3},
|
||||
],
|
||||
};
|
||||
|
||||
const Image$json = const {
|
||||
'1': 'Image',
|
||||
'2': const [
|
||||
const {'1': 'width', '3': 1, '4': 1, '5': 13, '10': 'width'},
|
||||
const {'1': 'height', '3': 2, '4': 1, '5': 13, '10': 'height'},
|
||||
],
|
||||
};
|
||||
|
||||
const Video$json = const {
|
||||
'1': 'Video',
|
||||
'2': const [
|
||||
const {'1': 'width', '3': 1, '4': 1, '5': 13, '10': 'width'},
|
||||
const {'1': 'height', '3': 2, '4': 1, '5': 13, '10': 'height'},
|
||||
const {'1': 'duration', '3': 3, '4': 1, '5': 13, '10': 'duration'},
|
||||
const {'1': 'audio', '3': 15, '4': 1, '5': 11, '6': '.pb.Audio', '10': 'audio'},
|
||||
],
|
||||
};
|
||||
|
||||
const Audio$json = const {
|
||||
'1': 'Audio',
|
||||
'2': const [
|
||||
const {'1': 'duration', '3': 1, '4': 1, '5': 13, '10': 'duration'},
|
||||
],
|
||||
};
|
||||
|
||||
const Software$json = const {
|
||||
'1': 'Software',
|
||||
'2': const [
|
||||
const {'1': 'os', '3': 1, '4': 1, '5': 9, '10': 'os'},
|
||||
],
|
||||
'4': const [Software_OS$json],
|
||||
};
|
||||
|
||||
const Software_OS$json = const {
|
||||
'1': 'OS',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_OS', '2': 0},
|
||||
const {'1': 'ANY', '2': 1},
|
||||
const {'1': 'LINUX', '2': 2},
|
||||
const {'1': 'WINDOWS', '2': 3},
|
||||
const {'1': 'MAC', '2': 4},
|
||||
const {'1': 'ANDROID', '2': 5},
|
||||
const {'1': 'IOS', '2': 6},
|
||||
],
|
||||
};
|
||||
|
||||
const Language$json = const {
|
||||
'1': 'Language',
|
||||
'2': const [
|
||||
const {'1': 'language', '3': 1, '4': 1, '5': 14, '6': '.pb.Language.Language', '10': 'language'},
|
||||
const {'1': 'script', '3': 2, '4': 1, '5': 14, '6': '.pb.Language.Script', '10': 'script'},
|
||||
const {'1': 'region', '3': 3, '4': 1, '5': 14, '6': '.pb.Location.Country', '10': 'region'},
|
||||
],
|
||||
'4': const [Language_Language$json, Language_Script$json],
|
||||
};
|
||||
|
||||
const Language_Language$json = const {
|
||||
'1': 'Language',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_LANGUAGE', '2': 0},
|
||||
const {'1': 'en', '2': 1},
|
||||
const {'1': 'aa', '2': 2},
|
||||
const {'1': 'ab', '2': 3},
|
||||
const {'1': 'ae', '2': 4},
|
||||
const {'1': 'af', '2': 5},
|
||||
const {'1': 'ak', '2': 6},
|
||||
const {'1': 'am', '2': 7},
|
||||
const {'1': 'an', '2': 8},
|
||||
const {'1': 'ar', '2': 9},
|
||||
const {'1': 'as', '2': 10},
|
||||
const {'1': 'av', '2': 11},
|
||||
const {'1': 'ay', '2': 12},
|
||||
const {'1': 'az', '2': 13},
|
||||
const {'1': 'ba', '2': 14},
|
||||
const {'1': 'be', '2': 15},
|
||||
const {'1': 'bg', '2': 16},
|
||||
const {'1': 'bh', '2': 17},
|
||||
const {'1': 'bi', '2': 18},
|
||||
const {'1': 'bm', '2': 19},
|
||||
const {'1': 'bn', '2': 20},
|
||||
const {'1': 'bo', '2': 21},
|
||||
const {'1': 'br', '2': 22},
|
||||
const {'1': 'bs', '2': 23},
|
||||
const {'1': 'ca', '2': 24},
|
||||
const {'1': 'ce', '2': 25},
|
||||
const {'1': 'ch', '2': 26},
|
||||
const {'1': 'co', '2': 27},
|
||||
const {'1': 'cr', '2': 28},
|
||||
const {'1': 'cs', '2': 29},
|
||||
const {'1': 'cu', '2': 30},
|
||||
const {'1': 'cv', '2': 31},
|
||||
const {'1': 'cy', '2': 32},
|
||||
const {'1': 'da', '2': 33},
|
||||
const {'1': 'de', '2': 34},
|
||||
const {'1': 'dv', '2': 35},
|
||||
const {'1': 'dz', '2': 36},
|
||||
const {'1': 'ee', '2': 37},
|
||||
const {'1': 'el', '2': 38},
|
||||
const {'1': 'eo', '2': 39},
|
||||
const {'1': 'es', '2': 40},
|
||||
const {'1': 'et', '2': 41},
|
||||
const {'1': 'eu', '2': 42},
|
||||
const {'1': 'fa', '2': 43},
|
||||
const {'1': 'ff', '2': 44},
|
||||
const {'1': 'fi', '2': 45},
|
||||
const {'1': 'fj', '2': 46},
|
||||
const {'1': 'fo', '2': 47},
|
||||
const {'1': 'fr', '2': 48},
|
||||
const {'1': 'fy', '2': 49},
|
||||
const {'1': 'ga', '2': 50},
|
||||
const {'1': 'gd', '2': 51},
|
||||
const {'1': 'gl', '2': 52},
|
||||
const {'1': 'gn', '2': 53},
|
||||
const {'1': 'gu', '2': 54},
|
||||
const {'1': 'gv', '2': 55},
|
||||
const {'1': 'ha', '2': 56},
|
||||
const {'1': 'he', '2': 57},
|
||||
const {'1': 'hi', '2': 58},
|
||||
const {'1': 'ho', '2': 59},
|
||||
const {'1': 'hr', '2': 60},
|
||||
const {'1': 'ht', '2': 61},
|
||||
const {'1': 'hu', '2': 62},
|
||||
const {'1': 'hy', '2': 63},
|
||||
const {'1': 'hz', '2': 64},
|
||||
const {'1': 'ia', '2': 65},
|
||||
const {'1': 'id', '2': 66},
|
||||
const {'1': 'ie', '2': 67},
|
||||
const {'1': 'ig', '2': 68},
|
||||
const {'1': 'ii', '2': 69},
|
||||
const {'1': 'ik', '2': 70},
|
||||
const {'1': 'io', '2': 71},
|
||||
const {'1': 'is', '2': 72},
|
||||
const {'1': 'it', '2': 73},
|
||||
const {'1': 'iu', '2': 74},
|
||||
const {'1': 'ja', '2': 75},
|
||||
const {'1': 'jv', '2': 76},
|
||||
const {'1': 'ka', '2': 77},
|
||||
const {'1': 'kg', '2': 78},
|
||||
const {'1': 'ki', '2': 79},
|
||||
const {'1': 'kj', '2': 80},
|
||||
const {'1': 'kk', '2': 81},
|
||||
const {'1': 'kl', '2': 82},
|
||||
const {'1': 'km', '2': 83},
|
||||
const {'1': 'kn', '2': 84},
|
||||
const {'1': 'ko', '2': 85},
|
||||
const {'1': 'kr', '2': 86},
|
||||
const {'1': 'ks', '2': 87},
|
||||
const {'1': 'ku', '2': 88},
|
||||
const {'1': 'kv', '2': 89},
|
||||
const {'1': 'kw', '2': 90},
|
||||
const {'1': 'ky', '2': 91},
|
||||
const {'1': 'la', '2': 92},
|
||||
const {'1': 'lb', '2': 93},
|
||||
const {'1': 'lg', '2': 94},
|
||||
const {'1': 'li', '2': 95},
|
||||
const {'1': 'ln', '2': 96},
|
||||
const {'1': 'lo', '2': 97},
|
||||
const {'1': 'lt', '2': 98},
|
||||
const {'1': 'lu', '2': 99},
|
||||
const {'1': 'lv', '2': 100},
|
||||
const {'1': 'mg', '2': 101},
|
||||
const {'1': 'mh', '2': 102},
|
||||
const {'1': 'mi', '2': 103},
|
||||
const {'1': 'mk', '2': 104},
|
||||
const {'1': 'ml', '2': 105},
|
||||
const {'1': 'mn', '2': 106},
|
||||
const {'1': 'mr', '2': 107},
|
||||
const {'1': 'ms', '2': 108},
|
||||
const {'1': 'mt', '2': 109},
|
||||
const {'1': 'my', '2': 110},
|
||||
const {'1': 'na', '2': 111},
|
||||
const {'1': 'nb', '2': 112},
|
||||
const {'1': 'nd', '2': 113},
|
||||
const {'1': 'ne', '2': 114},
|
||||
const {'1': 'ng', '2': 115},
|
||||
const {'1': 'nl', '2': 116},
|
||||
const {'1': 'nn', '2': 117},
|
||||
const {'1': 'no', '2': 118},
|
||||
const {'1': 'nr', '2': 119},
|
||||
const {'1': 'nv', '2': 120},
|
||||
const {'1': 'ny', '2': 121},
|
||||
const {'1': 'oc', '2': 122},
|
||||
const {'1': 'oj', '2': 123},
|
||||
const {'1': 'om', '2': 124},
|
||||
const {'1': 'or', '2': 125},
|
||||
const {'1': 'os', '2': 126},
|
||||
const {'1': 'pa', '2': 127},
|
||||
const {'1': 'pi', '2': 128},
|
||||
const {'1': 'pl', '2': 129},
|
||||
const {'1': 'ps', '2': 130},
|
||||
const {'1': 'pt', '2': 131},
|
||||
const {'1': 'qu', '2': 132},
|
||||
const {'1': 'rm', '2': 133},
|
||||
const {'1': 'rn', '2': 134},
|
||||
const {'1': 'ro', '2': 135},
|
||||
const {'1': 'ru', '2': 136},
|
||||
const {'1': 'rw', '2': 137},
|
||||
const {'1': 'sa', '2': 138},
|
||||
const {'1': 'sc', '2': 139},
|
||||
const {'1': 'sd', '2': 140},
|
||||
const {'1': 'se', '2': 141},
|
||||
const {'1': 'sg', '2': 142},
|
||||
const {'1': 'si', '2': 143},
|
||||
const {'1': 'sk', '2': 144},
|
||||
const {'1': 'sl', '2': 145},
|
||||
const {'1': 'sm', '2': 146},
|
||||
const {'1': 'sn', '2': 147},
|
||||
const {'1': 'so', '2': 148},
|
||||
const {'1': 'sq', '2': 149},
|
||||
const {'1': 'sr', '2': 150},
|
||||
const {'1': 'ss', '2': 151},
|
||||
const {'1': 'st', '2': 152},
|
||||
const {'1': 'su', '2': 153},
|
||||
const {'1': 'sv', '2': 154},
|
||||
const {'1': 'sw', '2': 155},
|
||||
const {'1': 'ta', '2': 156},
|
||||
const {'1': 'te', '2': 157},
|
||||
const {'1': 'tg', '2': 158},
|
||||
const {'1': 'th', '2': 159},
|
||||
const {'1': 'ti', '2': 160},
|
||||
const {'1': 'tk', '2': 161},
|
||||
const {'1': 'tl', '2': 162},
|
||||
const {'1': 'tn', '2': 163},
|
||||
const {'1': 'to', '2': 164},
|
||||
const {'1': 'tr', '2': 165},
|
||||
const {'1': 'ts', '2': 166},
|
||||
const {'1': 'tt', '2': 167},
|
||||
const {'1': 'tw', '2': 168},
|
||||
const {'1': 'ty', '2': 169},
|
||||
const {'1': 'ug', '2': 170},
|
||||
const {'1': 'uk', '2': 171},
|
||||
const {'1': 'ur', '2': 172},
|
||||
const {'1': 'uz', '2': 173},
|
||||
const {'1': 've', '2': 174},
|
||||
const {'1': 'vi', '2': 175},
|
||||
const {'1': 'vo', '2': 176},
|
||||
const {'1': 'wa', '2': 177},
|
||||
const {'1': 'wo', '2': 178},
|
||||
const {'1': 'xh', '2': 179},
|
||||
const {'1': 'yi', '2': 180},
|
||||
const {'1': 'yo', '2': 181},
|
||||
const {'1': 'za', '2': 182},
|
||||
const {'1': 'zh', '2': 183},
|
||||
const {'1': 'zu', '2': 184},
|
||||
],
|
||||
};
|
||||
|
||||
const Language_Script$json = const {
|
||||
'1': 'Script',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_SCRIPT', '2': 0},
|
||||
const {'1': 'Adlm', '2': 1},
|
||||
const {'1': 'Afak', '2': 2},
|
||||
const {'1': 'Aghb', '2': 3},
|
||||
const {'1': 'Ahom', '2': 4},
|
||||
const {'1': 'Arab', '2': 5},
|
||||
const {'1': 'Aran', '2': 6},
|
||||
const {'1': 'Armi', '2': 7},
|
||||
const {'1': 'Armn', '2': 8},
|
||||
const {'1': 'Avst', '2': 9},
|
||||
const {'1': 'Bali', '2': 10},
|
||||
const {'1': 'Bamu', '2': 11},
|
||||
const {'1': 'Bass', '2': 12},
|
||||
const {'1': 'Batk', '2': 13},
|
||||
const {'1': 'Beng', '2': 14},
|
||||
const {'1': 'Bhks', '2': 15},
|
||||
const {'1': 'Blis', '2': 16},
|
||||
const {'1': 'Bopo', '2': 17},
|
||||
const {'1': 'Brah', '2': 18},
|
||||
const {'1': 'Brai', '2': 19},
|
||||
const {'1': 'Bugi', '2': 20},
|
||||
const {'1': 'Buhd', '2': 21},
|
||||
const {'1': 'Cakm', '2': 22},
|
||||
const {'1': 'Cans', '2': 23},
|
||||
const {'1': 'Cari', '2': 24},
|
||||
const {'1': 'Cham', '2': 25},
|
||||
const {'1': 'Cher', '2': 26},
|
||||
const {'1': 'Cirt', '2': 27},
|
||||
const {'1': 'Copt', '2': 28},
|
||||
const {'1': 'Cpmn', '2': 29},
|
||||
const {'1': 'Cprt', '2': 30},
|
||||
const {'1': 'Cyrl', '2': 31},
|
||||
const {'1': 'Cyrs', '2': 32},
|
||||
const {'1': 'Deva', '2': 33},
|
||||
const {'1': 'Dogr', '2': 34},
|
||||
const {'1': 'Dsrt', '2': 35},
|
||||
const {'1': 'Dupl', '2': 36},
|
||||
const {'1': 'Egyd', '2': 37},
|
||||
const {'1': 'Egyh', '2': 38},
|
||||
const {'1': 'Egyp', '2': 39},
|
||||
const {'1': 'Elba', '2': 40},
|
||||
const {'1': 'Elym', '2': 41},
|
||||
const {'1': 'Ethi', '2': 42},
|
||||
const {'1': 'Geok', '2': 43},
|
||||
const {'1': 'Geor', '2': 44},
|
||||
const {'1': 'Glag', '2': 45},
|
||||
const {'1': 'Gong', '2': 46},
|
||||
const {'1': 'Gonm', '2': 47},
|
||||
const {'1': 'Goth', '2': 48},
|
||||
const {'1': 'Gran', '2': 49},
|
||||
const {'1': 'Grek', '2': 50},
|
||||
const {'1': 'Gujr', '2': 51},
|
||||
const {'1': 'Guru', '2': 52},
|
||||
const {'1': 'Hanb', '2': 53},
|
||||
const {'1': 'Hang', '2': 54},
|
||||
const {'1': 'Hani', '2': 55},
|
||||
const {'1': 'Hano', '2': 56},
|
||||
const {'1': 'Hans', '2': 57},
|
||||
const {'1': 'Hant', '2': 58},
|
||||
const {'1': 'Hatr', '2': 59},
|
||||
const {'1': 'Hebr', '2': 60},
|
||||
const {'1': 'Hira', '2': 61},
|
||||
const {'1': 'Hluw', '2': 62},
|
||||
const {'1': 'Hmng', '2': 63},
|
||||
const {'1': 'Hmnp', '2': 64},
|
||||
const {'1': 'Hrkt', '2': 65},
|
||||
const {'1': 'Hung', '2': 66},
|
||||
const {'1': 'Inds', '2': 67},
|
||||
const {'1': 'Ital', '2': 68},
|
||||
const {'1': 'Jamo', '2': 69},
|
||||
const {'1': 'Java', '2': 70},
|
||||
const {'1': 'Jpan', '2': 71},
|
||||
const {'1': 'Jurc', '2': 72},
|
||||
const {'1': 'Kali', '2': 73},
|
||||
const {'1': 'Kana', '2': 74},
|
||||
const {'1': 'Khar', '2': 75},
|
||||
const {'1': 'Khmr', '2': 76},
|
||||
const {'1': 'Khoj', '2': 77},
|
||||
const {'1': 'Kitl', '2': 78},
|
||||
const {'1': 'Kits', '2': 79},
|
||||
const {'1': 'Knda', '2': 80},
|
||||
const {'1': 'Kore', '2': 81},
|
||||
const {'1': 'Kpel', '2': 82},
|
||||
const {'1': 'Kthi', '2': 83},
|
||||
const {'1': 'Lana', '2': 84},
|
||||
const {'1': 'Laoo', '2': 85},
|
||||
const {'1': 'Latf', '2': 86},
|
||||
const {'1': 'Latg', '2': 87},
|
||||
const {'1': 'Latn', '2': 88},
|
||||
const {'1': 'Leke', '2': 89},
|
||||
const {'1': 'Lepc', '2': 90},
|
||||
const {'1': 'Limb', '2': 91},
|
||||
const {'1': 'Lina', '2': 92},
|
||||
const {'1': 'Linb', '2': 93},
|
||||
const {'1': 'Lisu', '2': 94},
|
||||
const {'1': 'Loma', '2': 95},
|
||||
const {'1': 'Lyci', '2': 96},
|
||||
const {'1': 'Lydi', '2': 97},
|
||||
const {'1': 'Mahj', '2': 98},
|
||||
const {'1': 'Maka', '2': 99},
|
||||
const {'1': 'Mand', '2': 100},
|
||||
const {'1': 'Mani', '2': 101},
|
||||
const {'1': 'Marc', '2': 102},
|
||||
const {'1': 'Maya', '2': 103},
|
||||
const {'1': 'Medf', '2': 104},
|
||||
const {'1': 'Mend', '2': 105},
|
||||
const {'1': 'Merc', '2': 106},
|
||||
const {'1': 'Mero', '2': 107},
|
||||
const {'1': 'Mlym', '2': 108},
|
||||
const {'1': 'Modi', '2': 109},
|
||||
const {'1': 'Mong', '2': 110},
|
||||
const {'1': 'Moon', '2': 111},
|
||||
const {'1': 'Mroo', '2': 112},
|
||||
const {'1': 'Mtei', '2': 113},
|
||||
const {'1': 'Mult', '2': 114},
|
||||
const {'1': 'Mymr', '2': 115},
|
||||
const {'1': 'Nand', '2': 116},
|
||||
const {'1': 'Narb', '2': 117},
|
||||
const {'1': 'Nbat', '2': 118},
|
||||
const {'1': 'Newa', '2': 119},
|
||||
const {'1': 'Nkdb', '2': 120},
|
||||
const {'1': 'Nkgb', '2': 121},
|
||||
const {'1': 'Nkoo', '2': 122},
|
||||
const {'1': 'Nshu', '2': 123},
|
||||
const {'1': 'Ogam', '2': 124},
|
||||
const {'1': 'Olck', '2': 125},
|
||||
const {'1': 'Orkh', '2': 126},
|
||||
const {'1': 'Orya', '2': 127},
|
||||
const {'1': 'Osge', '2': 128},
|
||||
const {'1': 'Osma', '2': 129},
|
||||
const {'1': 'Palm', '2': 130},
|
||||
const {'1': 'Pauc', '2': 131},
|
||||
const {'1': 'Perm', '2': 132},
|
||||
const {'1': 'Phag', '2': 133},
|
||||
const {'1': 'Phli', '2': 134},
|
||||
const {'1': 'Phlp', '2': 135},
|
||||
const {'1': 'Phlv', '2': 136},
|
||||
const {'1': 'Phnx', '2': 137},
|
||||
const {'1': 'Plrd', '2': 138},
|
||||
const {'1': 'Piqd', '2': 139},
|
||||
const {'1': 'Prti', '2': 140},
|
||||
const {'1': 'Qaaa', '2': 141},
|
||||
const {'1': 'Qabx', '2': 142},
|
||||
const {'1': 'Rjng', '2': 143},
|
||||
const {'1': 'Rohg', '2': 144},
|
||||
const {'1': 'Roro', '2': 145},
|
||||
const {'1': 'Runr', '2': 146},
|
||||
const {'1': 'Samr', '2': 147},
|
||||
const {'1': 'Sara', '2': 148},
|
||||
const {'1': 'Sarb', '2': 149},
|
||||
const {'1': 'Saur', '2': 150},
|
||||
const {'1': 'Sgnw', '2': 151},
|
||||
const {'1': 'Shaw', '2': 152},
|
||||
const {'1': 'Shrd', '2': 153},
|
||||
const {'1': 'Shui', '2': 154},
|
||||
const {'1': 'Sidd', '2': 155},
|
||||
const {'1': 'Sind', '2': 156},
|
||||
const {'1': 'Sinh', '2': 157},
|
||||
const {'1': 'Sogd', '2': 158},
|
||||
const {'1': 'Sogo', '2': 159},
|
||||
const {'1': 'Sora', '2': 160},
|
||||
const {'1': 'Soyo', '2': 161},
|
||||
const {'1': 'Sund', '2': 162},
|
||||
const {'1': 'Sylo', '2': 163},
|
||||
const {'1': 'Syrc', '2': 164},
|
||||
const {'1': 'Syre', '2': 165},
|
||||
const {'1': 'Syrj', '2': 166},
|
||||
const {'1': 'Syrn', '2': 167},
|
||||
const {'1': 'Tagb', '2': 168},
|
||||
const {'1': 'Takr', '2': 169},
|
||||
const {'1': 'Tale', '2': 170},
|
||||
const {'1': 'Talu', '2': 171},
|
||||
const {'1': 'Taml', '2': 172},
|
||||
const {'1': 'Tang', '2': 173},
|
||||
const {'1': 'Tavt', '2': 174},
|
||||
const {'1': 'Telu', '2': 175},
|
||||
const {'1': 'Teng', '2': 176},
|
||||
const {'1': 'Tfng', '2': 177},
|
||||
const {'1': 'Tglg', '2': 178},
|
||||
const {'1': 'Thaa', '2': 179},
|
||||
const {'1': 'Thai', '2': 180},
|
||||
const {'1': 'Tibt', '2': 181},
|
||||
const {'1': 'Tirh', '2': 182},
|
||||
const {'1': 'Ugar', '2': 183},
|
||||
const {'1': 'Vaii', '2': 184},
|
||||
const {'1': 'Visp', '2': 185},
|
||||
const {'1': 'Wara', '2': 186},
|
||||
const {'1': 'Wcho', '2': 187},
|
||||
const {'1': 'Wole', '2': 188},
|
||||
const {'1': 'Xpeo', '2': 189},
|
||||
const {'1': 'Xsux', '2': 190},
|
||||
const {'1': 'Yiii', '2': 191},
|
||||
const {'1': 'Zanb', '2': 192},
|
||||
const {'1': 'Zinh', '2': 193},
|
||||
const {'1': 'Zmth', '2': 194},
|
||||
const {'1': 'Zsye', '2': 195},
|
||||
const {'1': 'Zsym', '2': 196},
|
||||
const {'1': 'Zxxx', '2': 197},
|
||||
const {'1': 'Zyyy', '2': 198},
|
||||
const {'1': 'Zzzz', '2': 199},
|
||||
],
|
||||
};
|
||||
|
||||
const Location$json = const {
|
||||
'1': 'Location',
|
||||
'2': const [
|
||||
const {'1': 'country', '3': 1, '4': 1, '5': 14, '6': '.pb.Location.Country', '10': 'country'},
|
||||
const {'1': 'state', '3': 2, '4': 1, '5': 9, '10': 'state'},
|
||||
const {'1': 'city', '3': 3, '4': 1, '5': 9, '10': 'city'},
|
||||
const {'1': 'code', '3': 4, '4': 1, '5': 9, '10': 'code'},
|
||||
const {'1': 'latitude', '3': 5, '4': 1, '5': 17, '10': 'latitude'},
|
||||
const {'1': 'longitude', '3': 6, '4': 1, '5': 17, '10': 'longitude'},
|
||||
],
|
||||
'4': const [Location_Country$json],
|
||||
};
|
||||
|
||||
const Location_Country$json = const {
|
||||
'1': 'Country',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_COUNTRY', '2': 0},
|
||||
const {'1': 'AF', '2': 1},
|
||||
const {'1': 'AX', '2': 2},
|
||||
const {'1': 'AL', '2': 3},
|
||||
const {'1': 'DZ', '2': 4},
|
||||
const {'1': 'AS', '2': 5},
|
||||
const {'1': 'AD', '2': 6},
|
||||
const {'1': 'AO', '2': 7},
|
||||
const {'1': 'AI', '2': 8},
|
||||
const {'1': 'AQ', '2': 9},
|
||||
const {'1': 'AG', '2': 10},
|
||||
const {'1': 'AR', '2': 11},
|
||||
const {'1': 'AM', '2': 12},
|
||||
const {'1': 'AW', '2': 13},
|
||||
const {'1': 'AU', '2': 14},
|
||||
const {'1': 'AT', '2': 15},
|
||||
const {'1': 'AZ', '2': 16},
|
||||
const {'1': 'BS', '2': 17},
|
||||
const {'1': 'BH', '2': 18},
|
||||
const {'1': 'BD', '2': 19},
|
||||
const {'1': 'BB', '2': 20},
|
||||
const {'1': 'BY', '2': 21},
|
||||
const {'1': 'BE', '2': 22},
|
||||
const {'1': 'BZ', '2': 23},
|
||||
const {'1': 'BJ', '2': 24},
|
||||
const {'1': 'BM', '2': 25},
|
||||
const {'1': 'BT', '2': 26},
|
||||
const {'1': 'BO', '2': 27},
|
||||
const {'1': 'BQ', '2': 28},
|
||||
const {'1': 'BA', '2': 29},
|
||||
const {'1': 'BW', '2': 30},
|
||||
const {'1': 'BV', '2': 31},
|
||||
const {'1': 'BR', '2': 32},
|
||||
const {'1': 'IO', '2': 33},
|
||||
const {'1': 'BN', '2': 34},
|
||||
const {'1': 'BG', '2': 35},
|
||||
const {'1': 'BF', '2': 36},
|
||||
const {'1': 'BI', '2': 37},
|
||||
const {'1': 'KH', '2': 38},
|
||||
const {'1': 'CM', '2': 39},
|
||||
const {'1': 'CA', '2': 40},
|
||||
const {'1': 'CV', '2': 41},
|
||||
const {'1': 'KY', '2': 42},
|
||||
const {'1': 'CF', '2': 43},
|
||||
const {'1': 'TD', '2': 44},
|
||||
const {'1': 'CL', '2': 45},
|
||||
const {'1': 'CN', '2': 46},
|
||||
const {'1': 'CX', '2': 47},
|
||||
const {'1': 'CC', '2': 48},
|
||||
const {'1': 'CO', '2': 49},
|
||||
const {'1': 'KM', '2': 50},
|
||||
const {'1': 'CG', '2': 51},
|
||||
const {'1': 'CD', '2': 52},
|
||||
const {'1': 'CK', '2': 53},
|
||||
const {'1': 'CR', '2': 54},
|
||||
const {'1': 'CI', '2': 55},
|
||||
const {'1': 'HR', '2': 56},
|
||||
const {'1': 'CU', '2': 57},
|
||||
const {'1': 'CW', '2': 58},
|
||||
const {'1': 'CY', '2': 59},
|
||||
const {'1': 'CZ', '2': 60},
|
||||
const {'1': 'DK', '2': 61},
|
||||
const {'1': 'DJ', '2': 62},
|
||||
const {'1': 'DM', '2': 63},
|
||||
const {'1': 'DO', '2': 64},
|
||||
const {'1': 'EC', '2': 65},
|
||||
const {'1': 'EG', '2': 66},
|
||||
const {'1': 'SV', '2': 67},
|
||||
const {'1': 'GQ', '2': 68},
|
||||
const {'1': 'ER', '2': 69},
|
||||
const {'1': 'EE', '2': 70},
|
||||
const {'1': 'ET', '2': 71},
|
||||
const {'1': 'FK', '2': 72},
|
||||
const {'1': 'FO', '2': 73},
|
||||
const {'1': 'FJ', '2': 74},
|
||||
const {'1': 'FI', '2': 75},
|
||||
const {'1': 'FR', '2': 76},
|
||||
const {'1': 'GF', '2': 77},
|
||||
const {'1': 'PF', '2': 78},
|
||||
const {'1': 'TF', '2': 79},
|
||||
const {'1': 'GA', '2': 80},
|
||||
const {'1': 'GM', '2': 81},
|
||||
const {'1': 'GE', '2': 82},
|
||||
const {'1': 'DE', '2': 83},
|
||||
const {'1': 'GH', '2': 84},
|
||||
const {'1': 'GI', '2': 85},
|
||||
const {'1': 'GR', '2': 86},
|
||||
const {'1': 'GL', '2': 87},
|
||||
const {'1': 'GD', '2': 88},
|
||||
const {'1': 'GP', '2': 89},
|
||||
const {'1': 'GU', '2': 90},
|
||||
const {'1': 'GT', '2': 91},
|
||||
const {'1': 'GG', '2': 92},
|
||||
const {'1': 'GN', '2': 93},
|
||||
const {'1': 'GW', '2': 94},
|
||||
const {'1': 'GY', '2': 95},
|
||||
const {'1': 'HT', '2': 96},
|
||||
const {'1': 'HM', '2': 97},
|
||||
const {'1': 'VA', '2': 98},
|
||||
const {'1': 'HN', '2': 99},
|
||||
const {'1': 'HK', '2': 100},
|
||||
const {'1': 'HU', '2': 101},
|
||||
const {'1': 'IS', '2': 102},
|
||||
const {'1': 'IN', '2': 103},
|
||||
const {'1': 'ID', '2': 104},
|
||||
const {'1': 'IR', '2': 105},
|
||||
const {'1': 'IQ', '2': 106},
|
||||
const {'1': 'IE', '2': 107},
|
||||
const {'1': 'IM', '2': 108},
|
||||
const {'1': 'IL', '2': 109},
|
||||
const {'1': 'IT', '2': 110},
|
||||
const {'1': 'JM', '2': 111},
|
||||
const {'1': 'JP', '2': 112},
|
||||
const {'1': 'JE', '2': 113},
|
||||
const {'1': 'JO', '2': 114},
|
||||
const {'1': 'KZ', '2': 115},
|
||||
const {'1': 'KE', '2': 116},
|
||||
const {'1': 'KI', '2': 117},
|
||||
const {'1': 'KP', '2': 118},
|
||||
const {'1': 'KR', '2': 119},
|
||||
const {'1': 'KW', '2': 120},
|
||||
const {'1': 'KG', '2': 121},
|
||||
const {'1': 'LA', '2': 122},
|
||||
const {'1': 'LV', '2': 123},
|
||||
const {'1': 'LB', '2': 124},
|
||||
const {'1': 'LS', '2': 125},
|
||||
const {'1': 'LR', '2': 126},
|
||||
const {'1': 'LY', '2': 127},
|
||||
const {'1': 'LI', '2': 128},
|
||||
const {'1': 'LT', '2': 129},
|
||||
const {'1': 'LU', '2': 130},
|
||||
const {'1': 'MO', '2': 131},
|
||||
const {'1': 'MK', '2': 132},
|
||||
const {'1': 'MG', '2': 133},
|
||||
const {'1': 'MW', '2': 134},
|
||||
const {'1': 'MY', '2': 135},
|
||||
const {'1': 'MV', '2': 136},
|
||||
const {'1': 'ML', '2': 137},
|
||||
const {'1': 'MT', '2': 138},
|
||||
const {'1': 'MH', '2': 139},
|
||||
const {'1': 'MQ', '2': 140},
|
||||
const {'1': 'MR', '2': 141},
|
||||
const {'1': 'MU', '2': 142},
|
||||
const {'1': 'YT', '2': 143},
|
||||
const {'1': 'MX', '2': 144},
|
||||
const {'1': 'FM', '2': 145},
|
||||
const {'1': 'MD', '2': 146},
|
||||
const {'1': 'MC', '2': 147},
|
||||
const {'1': 'MN', '2': 148},
|
||||
const {'1': 'ME', '2': 149},
|
||||
const {'1': 'MS', '2': 150},
|
||||
const {'1': 'MA', '2': 151},
|
||||
const {'1': 'MZ', '2': 152},
|
||||
const {'1': 'MM', '2': 153},
|
||||
const {'1': 'NA', '2': 154},
|
||||
const {'1': 'NR', '2': 155},
|
||||
const {'1': 'NP', '2': 156},
|
||||
const {'1': 'NL', '2': 157},
|
||||
const {'1': 'NC', '2': 158},
|
||||
const {'1': 'NZ', '2': 159},
|
||||
const {'1': 'NI', '2': 160},
|
||||
const {'1': 'NE', '2': 161},
|
||||
const {'1': 'NG', '2': 162},
|
||||
const {'1': 'NU', '2': 163},
|
||||
const {'1': 'NF', '2': 164},
|
||||
const {'1': 'MP', '2': 165},
|
||||
const {'1': 'NO', '2': 166},
|
||||
const {'1': 'OM', '2': 167},
|
||||
const {'1': 'PK', '2': 168},
|
||||
const {'1': 'PW', '2': 169},
|
||||
const {'1': 'PS', '2': 170},
|
||||
const {'1': 'PA', '2': 171},
|
||||
const {'1': 'PG', '2': 172},
|
||||
const {'1': 'PY', '2': 173},
|
||||
const {'1': 'PE', '2': 174},
|
||||
const {'1': 'PH', '2': 175},
|
||||
const {'1': 'PN', '2': 176},
|
||||
const {'1': 'PL', '2': 177},
|
||||
const {'1': 'PT', '2': 178},
|
||||
const {'1': 'PR', '2': 179},
|
||||
const {'1': 'QA', '2': 180},
|
||||
const {'1': 'RE', '2': 181},
|
||||
const {'1': 'RO', '2': 182},
|
||||
const {'1': 'RU', '2': 183},
|
||||
const {'1': 'RW', '2': 184},
|
||||
const {'1': 'BL', '2': 185},
|
||||
const {'1': 'SH', '2': 186},
|
||||
const {'1': 'KN', '2': 187},
|
||||
const {'1': 'LC', '2': 188},
|
||||
const {'1': 'MF', '2': 189},
|
||||
const {'1': 'PM', '2': 190},
|
||||
const {'1': 'VC', '2': 191},
|
||||
const {'1': 'WS', '2': 192},
|
||||
const {'1': 'SM', '2': 193},
|
||||
const {'1': 'ST', '2': 194},
|
||||
const {'1': 'SA', '2': 195},
|
||||
const {'1': 'SN', '2': 196},
|
||||
const {'1': 'RS', '2': 197},
|
||||
const {'1': 'SC', '2': 198},
|
||||
const {'1': 'SL', '2': 199},
|
||||
const {'1': 'SG', '2': 200},
|
||||
const {'1': 'SX', '2': 201},
|
||||
const {'1': 'SK', '2': 202},
|
||||
const {'1': 'SI', '2': 203},
|
||||
const {'1': 'SB', '2': 204},
|
||||
const {'1': 'SO', '2': 205},
|
||||
const {'1': 'ZA', '2': 206},
|
||||
const {'1': 'GS', '2': 207},
|
||||
const {'1': 'SS', '2': 208},
|
||||
const {'1': 'ES', '2': 209},
|
||||
const {'1': 'LK', '2': 210},
|
||||
const {'1': 'SD', '2': 211},
|
||||
const {'1': 'SR', '2': 212},
|
||||
const {'1': 'SJ', '2': 213},
|
||||
const {'1': 'SZ', '2': 214},
|
||||
const {'1': 'SE', '2': 215},
|
||||
const {'1': 'CH', '2': 216},
|
||||
const {'1': 'SY', '2': 217},
|
||||
const {'1': 'TW', '2': 218},
|
||||
const {'1': 'TJ', '2': 219},
|
||||
const {'1': 'TZ', '2': 220},
|
||||
const {'1': 'TH', '2': 221},
|
||||
const {'1': 'TL', '2': 222},
|
||||
const {'1': 'TG', '2': 223},
|
||||
const {'1': 'TK', '2': 224},
|
||||
const {'1': 'TO', '2': 225},
|
||||
const {'1': 'TT', '2': 226},
|
||||
const {'1': 'TN', '2': 227},
|
||||
const {'1': 'TR', '2': 228},
|
||||
const {'1': 'TM', '2': 229},
|
||||
const {'1': 'TC', '2': 230},
|
||||
const {'1': 'TV', '2': 231},
|
||||
const {'1': 'UG', '2': 232},
|
||||
const {'1': 'UA', '2': 233},
|
||||
const {'1': 'AE', '2': 234},
|
||||
const {'1': 'GB', '2': 235},
|
||||
const {'1': 'US', '2': 236},
|
||||
const {'1': 'UM', '2': 237},
|
||||
const {'1': 'UY', '2': 238},
|
||||
const {'1': 'UZ', '2': 239},
|
||||
const {'1': 'VU', '2': 240},
|
||||
const {'1': 'VE', '2': 241},
|
||||
const {'1': 'VN', '2': 242},
|
||||
const {'1': 'VG', '2': 243},
|
||||
const {'1': 'VI', '2': 244},
|
||||
const {'1': 'WF', '2': 245},
|
||||
const {'1': 'EH', '2': 246},
|
||||
const {'1': 'YE', '2': 247},
|
||||
const {'1': 'ZM', '2': 248},
|
||||
const {'1': 'ZW', '2': 249},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: claim.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
export 'claim.pb.dart';
|
||||
|
||||
@@ -1,260 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: result.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
import 'dart:core' as $core show bool, Deprecated, double, int, List, Map, override, pragma, String;
|
||||
|
||||
import 'package:fixnum/fixnum.dart';
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'result.pbenum.dart';
|
||||
|
||||
export 'result.pbenum.dart';
|
||||
|
||||
class Outputs extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Outputs', package: const $pb.PackageName('pb'))
|
||||
..pc<Output>(1, 'txos', $pb.PbFieldType.PM,Output.create)
|
||||
..pc<Output>(2, 'extraTxos', $pb.PbFieldType.PM,Output.create)
|
||||
..a<$core.int>(3, 'total', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(4, 'offset', $pb.PbFieldType.OU3)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Outputs._() : super();
|
||||
factory Outputs() => create();
|
||||
factory Outputs.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Outputs.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Outputs clone() => Outputs()..mergeFromMessage(this);
|
||||
Outputs copyWith(void Function(Outputs) updates) => super.copyWith((message) => updates(message as Outputs));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Outputs create() => Outputs._();
|
||||
Outputs createEmptyInstance() => create();
|
||||
static $pb.PbList<Outputs> createRepeated() => $pb.PbList<Outputs>();
|
||||
static Outputs getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Outputs _defaultInstance;
|
||||
|
||||
$core.List<Output> get txos => $_getList(0);
|
||||
|
||||
$core.List<Output> get extraTxos => $_getList(1);
|
||||
|
||||
$core.int get total => $_get(2, 0);
|
||||
set total($core.int v) { $_setUnsignedInt32(2, v); }
|
||||
$core.bool hasTotal() => $_has(2);
|
||||
void clearTotal() => clearField(3);
|
||||
|
||||
$core.int get offset => $_get(3, 0);
|
||||
set offset($core.int v) { $_setUnsignedInt32(3, v); }
|
||||
$core.bool hasOffset() => $_has(3);
|
||||
void clearOffset() => clearField(4);
|
||||
}
|
||||
|
||||
enum Output_Meta {
|
||||
claim,
|
||||
error,
|
||||
notSet
|
||||
}
|
||||
|
||||
class Output extends $pb.GeneratedMessage {
|
||||
static const $core.Map<$core.int, Output_Meta> _Output_MetaByTag = {
|
||||
7 : Output_Meta.claim,
|
||||
15 : Output_Meta.error,
|
||||
0 : Output_Meta.notSet
|
||||
};
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Output', package: const $pb.PackageName('pb'))
|
||||
..oo(0, [7, 15])
|
||||
..a<$core.List<$core.int>>(1, 'txHash', $pb.PbFieldType.OY)
|
||||
..a<$core.int>(2, 'nout', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(3, 'height', $pb.PbFieldType.OU3)
|
||||
..a<ClaimMeta>(7, 'claim', $pb.PbFieldType.OM, ClaimMeta.getDefault, ClaimMeta.create)
|
||||
..a<Error>(15, 'error', $pb.PbFieldType.OM, Error.getDefault, Error.create)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Output._() : super();
|
||||
factory Output() => create();
|
||||
factory Output.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Output.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Output clone() => Output()..mergeFromMessage(this);
|
||||
Output copyWith(void Function(Output) updates) => super.copyWith((message) => updates(message as Output));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Output create() => Output._();
|
||||
Output createEmptyInstance() => create();
|
||||
static $pb.PbList<Output> createRepeated() => $pb.PbList<Output>();
|
||||
static Output getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Output _defaultInstance;
|
||||
|
||||
Output_Meta whichMeta() => _Output_MetaByTag[$_whichOneof(0)];
|
||||
void clearMeta() => clearField($_whichOneof(0));
|
||||
|
||||
$core.List<$core.int> get txHash => $_getN(0);
|
||||
set txHash($core.List<$core.int> v) { $_setBytes(0, v); }
|
||||
$core.bool hasTxHash() => $_has(0);
|
||||
void clearTxHash() => clearField(1);
|
||||
|
||||
$core.int get nout => $_get(1, 0);
|
||||
set nout($core.int v) { $_setUnsignedInt32(1, v); }
|
||||
$core.bool hasNout() => $_has(1);
|
||||
void clearNout() => clearField(2);
|
||||
|
||||
$core.int get height => $_get(2, 0);
|
||||
set height($core.int v) { $_setUnsignedInt32(2, v); }
|
||||
$core.bool hasHeight() => $_has(2);
|
||||
void clearHeight() => clearField(3);
|
||||
|
||||
ClaimMeta get claim => $_getN(3);
|
||||
set claim(ClaimMeta v) { setField(7, v); }
|
||||
$core.bool hasClaim() => $_has(3);
|
||||
void clearClaim() => clearField(7);
|
||||
|
||||
Error get error => $_getN(4);
|
||||
set error(Error v) { setField(15, v); }
|
||||
$core.bool hasError() => $_has(4);
|
||||
void clearError() => clearField(15);
|
||||
}
|
||||
|
||||
class ClaimMeta extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('ClaimMeta', package: const $pb.PackageName('pb'))
|
||||
..a<Output>(1, 'channel', $pb.PbFieldType.OM, Output.getDefault, Output.create)
|
||||
..aOS(2, 'shortUrl')
|
||||
..aOS(3, 'canonicalUrl')
|
||||
..aOB(4, 'isControlling')
|
||||
..a<$core.int>(5, 'takeOverHeight', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(6, 'creationHeight', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(7, 'activationHeight', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(8, 'expirationHeight', $pb.PbFieldType.OU3)
|
||||
..a<$core.int>(9, 'claimsInChannel', $pb.PbFieldType.OU3)
|
||||
..a<Int64>(10, 'effectiveAmount', $pb.PbFieldType.OU6, Int64.ZERO)
|
||||
..a<Int64>(11, 'supportAmount', $pb.PbFieldType.OU6, Int64.ZERO)
|
||||
..a<$core.int>(12, 'trendingGroup', $pb.PbFieldType.OU3)
|
||||
..a<$core.double>(13, 'trendingMixed', $pb.PbFieldType.OF)
|
||||
..a<$core.double>(14, 'trendingLocal', $pb.PbFieldType.OF)
|
||||
..a<$core.double>(15, 'trendingGlobal', $pb.PbFieldType.OF)
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
ClaimMeta._() : super();
|
||||
factory ClaimMeta() => create();
|
||||
factory ClaimMeta.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory ClaimMeta.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
ClaimMeta clone() => ClaimMeta()..mergeFromMessage(this);
|
||||
ClaimMeta copyWith(void Function(ClaimMeta) updates) => super.copyWith((message) => updates(message as ClaimMeta));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static ClaimMeta create() => ClaimMeta._();
|
||||
ClaimMeta createEmptyInstance() => create();
|
||||
static $pb.PbList<ClaimMeta> createRepeated() => $pb.PbList<ClaimMeta>();
|
||||
static ClaimMeta getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static ClaimMeta _defaultInstance;
|
||||
|
||||
Output get channel => $_getN(0);
|
||||
set channel(Output v) { setField(1, v); }
|
||||
$core.bool hasChannel() => $_has(0);
|
||||
void clearChannel() => clearField(1);
|
||||
|
||||
$core.String get shortUrl => $_getS(1, '');
|
||||
set shortUrl($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasShortUrl() => $_has(1);
|
||||
void clearShortUrl() => clearField(2);
|
||||
|
||||
$core.String get canonicalUrl => $_getS(2, '');
|
||||
set canonicalUrl($core.String v) { $_setString(2, v); }
|
||||
$core.bool hasCanonicalUrl() => $_has(2);
|
||||
void clearCanonicalUrl() => clearField(3);
|
||||
|
||||
$core.bool get isControlling => $_get(3, false);
|
||||
set isControlling($core.bool v) { $_setBool(3, v); }
|
||||
$core.bool hasIsControlling() => $_has(3);
|
||||
void clearIsControlling() => clearField(4);
|
||||
|
||||
$core.int get takeOverHeight => $_get(4, 0);
|
||||
set takeOverHeight($core.int v) { $_setUnsignedInt32(4, v); }
|
||||
$core.bool hasTakeOverHeight() => $_has(4);
|
||||
void clearTakeOverHeight() => clearField(5);
|
||||
|
||||
$core.int get creationHeight => $_get(5, 0);
|
||||
set creationHeight($core.int v) { $_setUnsignedInt32(5, v); }
|
||||
$core.bool hasCreationHeight() => $_has(5);
|
||||
void clearCreationHeight() => clearField(6);
|
||||
|
||||
$core.int get activationHeight => $_get(6, 0);
|
||||
set activationHeight($core.int v) { $_setUnsignedInt32(6, v); }
|
||||
$core.bool hasActivationHeight() => $_has(6);
|
||||
void clearActivationHeight() => clearField(7);
|
||||
|
||||
$core.int get expirationHeight => $_get(7, 0);
|
||||
set expirationHeight($core.int v) { $_setUnsignedInt32(7, v); }
|
||||
$core.bool hasExpirationHeight() => $_has(7);
|
||||
void clearExpirationHeight() => clearField(8);
|
||||
|
||||
$core.int get claimsInChannel => $_get(8, 0);
|
||||
set claimsInChannel($core.int v) { $_setUnsignedInt32(8, v); }
|
||||
$core.bool hasClaimsInChannel() => $_has(8);
|
||||
void clearClaimsInChannel() => clearField(9);
|
||||
|
||||
Int64 get effectiveAmount => $_getI64(9);
|
||||
set effectiveAmount(Int64 v) { $_setInt64(9, v); }
|
||||
$core.bool hasEffectiveAmount() => $_has(9);
|
||||
void clearEffectiveAmount() => clearField(10);
|
||||
|
||||
Int64 get supportAmount => $_getI64(10);
|
||||
set supportAmount(Int64 v) { $_setInt64(10, v); }
|
||||
$core.bool hasSupportAmount() => $_has(10);
|
||||
void clearSupportAmount() => clearField(11);
|
||||
|
||||
$core.int get trendingGroup => $_get(11, 0);
|
||||
set trendingGroup($core.int v) { $_setUnsignedInt32(11, v); }
|
||||
$core.bool hasTrendingGroup() => $_has(11);
|
||||
void clearTrendingGroup() => clearField(12);
|
||||
|
||||
$core.double get trendingMixed => $_getN(12);
|
||||
set trendingMixed($core.double v) { $_setFloat(12, v); }
|
||||
$core.bool hasTrendingMixed() => $_has(12);
|
||||
void clearTrendingMixed() => clearField(13);
|
||||
|
||||
$core.double get trendingLocal => $_getN(13);
|
||||
set trendingLocal($core.double v) { $_setFloat(13, v); }
|
||||
$core.bool hasTrendingLocal() => $_has(13);
|
||||
void clearTrendingLocal() => clearField(14);
|
||||
|
||||
$core.double get trendingGlobal => $_getN(14);
|
||||
set trendingGlobal($core.double v) { $_setFloat(14, v); }
|
||||
$core.bool hasTrendingGlobal() => $_has(14);
|
||||
void clearTrendingGlobal() => clearField(15);
|
||||
}
|
||||
|
||||
class Error extends $pb.GeneratedMessage {
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo('Error', package: const $pb.PackageName('pb'))
|
||||
..e<Error_Code>(1, 'code', $pb.PbFieldType.OE, Error_Code.UNKNOWN_CODE, Error_Code.valueOf, Error_Code.values)
|
||||
..aOS(2, 'text')
|
||||
..hasRequiredFields = false
|
||||
;
|
||||
|
||||
Error._() : super();
|
||||
factory Error() => create();
|
||||
factory Error.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
|
||||
factory Error.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
|
||||
Error clone() => Error()..mergeFromMessage(this);
|
||||
Error copyWith(void Function(Error) updates) => super.copyWith((message) => updates(message as Error));
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Error create() => Error._();
|
||||
Error createEmptyInstance() => create();
|
||||
static $pb.PbList<Error> createRepeated() => $pb.PbList<Error>();
|
||||
static Error getDefault() => _defaultInstance ??= create()..freeze();
|
||||
static Error _defaultInstance;
|
||||
|
||||
Error_Code get code => $_getN(0);
|
||||
set code(Error_Code v) { setField(1, v); }
|
||||
$core.bool hasCode() => $_has(0);
|
||||
void clearCode() => clearField(1);
|
||||
|
||||
$core.String get text => $_getS(1, '');
|
||||
set text($core.String v) { $_setString(1, v); }
|
||||
$core.bool hasText() => $_has(1);
|
||||
void clearText() => clearField(2);
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: result.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
// ignore_for_file: UNDEFINED_SHOWN_NAME,UNUSED_SHOWN_NAME
|
||||
import 'dart:core' as $core show int, dynamic, String, List, Map;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
class Error_Code extends $pb.ProtobufEnum {
|
||||
static const Error_Code UNKNOWN_CODE = Error_Code._(0, 'UNKNOWN_CODE');
|
||||
static const Error_Code NOT_FOUND = Error_Code._(1, 'NOT_FOUND');
|
||||
static const Error_Code INVALID = Error_Code._(2, 'INVALID');
|
||||
|
||||
static const $core.List<Error_Code> values = <Error_Code> [
|
||||
UNKNOWN_CODE,
|
||||
NOT_FOUND,
|
||||
INVALID,
|
||||
];
|
||||
|
||||
static final $core.Map<$core.int, Error_Code> _byValue = $pb.ProtobufEnum.initByValue(values);
|
||||
static Error_Code valueOf($core.int value) => _byValue[value];
|
||||
|
||||
const Error_Code._($core.int v, $core.String n) : super(v, n);
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: result.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
const Outputs$json = const {
|
||||
'1': 'Outputs',
|
||||
'2': const [
|
||||
const {'1': 'txos', '3': 1, '4': 3, '5': 11, '6': '.pb.Output', '10': 'txos'},
|
||||
const {'1': 'extra_txos', '3': 2, '4': 3, '5': 11, '6': '.pb.Output', '10': 'extraTxos'},
|
||||
const {'1': 'total', '3': 3, '4': 1, '5': 13, '10': 'total'},
|
||||
const {'1': 'offset', '3': 4, '4': 1, '5': 13, '10': 'offset'},
|
||||
],
|
||||
};
|
||||
|
||||
const Output$json = const {
|
||||
'1': 'Output',
|
||||
'2': const [
|
||||
const {'1': 'tx_hash', '3': 1, '4': 1, '5': 12, '10': 'txHash'},
|
||||
const {'1': 'nout', '3': 2, '4': 1, '5': 13, '10': 'nout'},
|
||||
const {'1': 'height', '3': 3, '4': 1, '5': 13, '10': 'height'},
|
||||
const {'1': 'claim', '3': 7, '4': 1, '5': 11, '6': '.pb.ClaimMeta', '9': 0, '10': 'claim'},
|
||||
const {'1': 'error', '3': 15, '4': 1, '5': 11, '6': '.pb.Error', '9': 0, '10': 'error'},
|
||||
],
|
||||
'8': const [
|
||||
const {'1': 'meta'},
|
||||
],
|
||||
};
|
||||
|
||||
const ClaimMeta$json = const {
|
||||
'1': 'ClaimMeta',
|
||||
'2': const [
|
||||
const {'1': 'channel', '3': 1, '4': 1, '5': 11, '6': '.pb.Output', '10': 'channel'},
|
||||
const {'1': 'short_url', '3': 2, '4': 1, '5': 9, '10': 'shortUrl'},
|
||||
const {'1': 'canonical_url', '3': 3, '4': 1, '5': 9, '10': 'canonicalUrl'},
|
||||
const {'1': 'is_controlling', '3': 4, '4': 1, '5': 8, '10': 'isControlling'},
|
||||
const {'1': 'take_over_height', '3': 5, '4': 1, '5': 13, '10': 'takeOverHeight'},
|
||||
const {'1': 'creation_height', '3': 6, '4': 1, '5': 13, '10': 'creationHeight'},
|
||||
const {'1': 'activation_height', '3': 7, '4': 1, '5': 13, '10': 'activationHeight'},
|
||||
const {'1': 'expiration_height', '3': 8, '4': 1, '5': 13, '10': 'expirationHeight'},
|
||||
const {'1': 'claims_in_channel', '3': 9, '4': 1, '5': 13, '10': 'claimsInChannel'},
|
||||
const {'1': 'effective_amount', '3': 10, '4': 1, '5': 4, '10': 'effectiveAmount'},
|
||||
const {'1': 'support_amount', '3': 11, '4': 1, '5': 4, '10': 'supportAmount'},
|
||||
const {'1': 'trending_group', '3': 12, '4': 1, '5': 13, '10': 'trendingGroup'},
|
||||
const {'1': 'trending_mixed', '3': 13, '4': 1, '5': 2, '10': 'trendingMixed'},
|
||||
const {'1': 'trending_local', '3': 14, '4': 1, '5': 2, '10': 'trendingLocal'},
|
||||
const {'1': 'trending_global', '3': 15, '4': 1, '5': 2, '10': 'trendingGlobal'},
|
||||
],
|
||||
};
|
||||
|
||||
const Error$json = const {
|
||||
'1': 'Error',
|
||||
'2': const [
|
||||
const {'1': 'code', '3': 1, '4': 1, '5': 14, '6': '.pb.Error.Code', '10': 'code'},
|
||||
const {'1': 'text', '3': 2, '4': 1, '5': 9, '10': 'text'},
|
||||
],
|
||||
'4': const [Error_Code$json],
|
||||
};
|
||||
|
||||
const Error_Code$json = const {
|
||||
'1': 'Code',
|
||||
'2': const [
|
||||
const {'1': 'UNKNOWN_CODE', '2': 0},
|
||||
const {'1': 'NOT_FOUND', '2': 1},
|
||||
const {'1': 'INVALID', '2': 2},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
///
|
||||
// Generated code. Do not modify.
|
||||
// source: result.proto
|
||||
///
|
||||
// ignore_for_file: camel_case_types,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type
|
||||
|
||||
export 'result.pb.dart';
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
import 'dart:async';
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:web_socket_channel/io.dart';
|
||||
import 'package:web_socket_channel/status.dart' as status;
|
||||
|
||||
|
||||
class ServerConnection {
|
||||
String url = "";
|
||||
IOWebSocketChannel channel;
|
||||
bool get isConnected => channel != null && channel.closeCode == null;
|
||||
|
||||
final StreamController<ServerLoadDataPoint> _loadDataController = StreamController.broadcast();
|
||||
Stream<ServerLoadDataPoint> get load_data => _loadDataController.stream;
|
||||
|
||||
ServerConnection({this.url});
|
||||
|
||||
open() {
|
||||
if (isConnected) return Future.value('already open');
|
||||
channel = IOWebSocketChannel.connect(this.url);
|
||||
int tick = 1;
|
||||
channel.stream.listen((message) {
|
||||
var data = json.decode(message);
|
||||
print(data);
|
||||
_loadDataController.add(
|
||||
ServerLoadDataPoint.from_map(
|
||||
tick, data
|
||||
)
|
||||
);
|
||||
tick++;
|
||||
});
|
||||
}
|
||||
|
||||
close() {
|
||||
if (isConnected) {
|
||||
return channel.sink.close(status.goingAway);
|
||||
}
|
||||
return Future.value('already closed');
|
||||
}
|
||||
|
||||
subscribe_to_server_load_data() {
|
||||
if (isConnected) channel.sink.add('subscribe');
|
||||
}
|
||||
|
||||
unsubscribe_from_server_load_data() {
|
||||
if (isConnected) channel.sink.add('unsubscribe');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
class TimeStats {
|
||||
final int avg, min, max;
|
||||
// percentiles
|
||||
final int five;
|
||||
final int twenty_five;
|
||||
final int fifty;
|
||||
final int seventy_five;
|
||||
final int ninety_five;
|
||||
TimeStats(
|
||||
this.avg, this.min, this.five, this.twenty_five,
|
||||
this.fifty, this.seventy_five, this.ninety_five,
|
||||
this.max
|
||||
);
|
||||
TimeStats.from_list(List l): this(
|
||||
l[0], l[1], l[2], l[3], l[4], l[5], l[6], l[7]
|
||||
);
|
||||
TimeStats.from_zeros(): this(
|
||||
0, 0, 0, 0, 0, 0, 0, 0
|
||||
);
|
||||
factory TimeStats.from_list_or_zeros(List l) =>
|
||||
l != null ? TimeStats.from_list(l): TimeStats.from_zeros();
|
||||
}
|
||||
|
||||
|
||||
class APICallMetrics {
|
||||
// total requests received
|
||||
final int receive_count;
|
||||
// sum of these is total responses made
|
||||
final int cache_response_count;
|
||||
final int query_response_count;
|
||||
final int intrp_response_count;
|
||||
final int error_response_count;
|
||||
// stacked values for chart
|
||||
final int cache_response_stack;
|
||||
final int query_response_stack;
|
||||
final int intrp_response_stack;
|
||||
final int error_response_stack;
|
||||
// millisecond timings for non-cache responses
|
||||
final TimeStats response;
|
||||
final TimeStats interrupt;
|
||||
final TimeStats error;
|
||||
// response, interrupt and error each also report the python, wait and sql stats:
|
||||
final TimeStats python;
|
||||
final TimeStats wait;
|
||||
final TimeStats sql;
|
||||
// extended timings for individual sql executions
|
||||
final TimeStats individual_sql;
|
||||
final int individual_sql_count;
|
||||
// actual queries
|
||||
final List<String> errored_queries;
|
||||
final List<String> interrupted_queries;
|
||||
APICallMetrics(
|
||||
this.receive_count,
|
||||
this.cache_response_count, this.query_response_count,
|
||||
this.intrp_response_count, this.error_response_count,
|
||||
this.response, this.interrupt, this.error,
|
||||
this.python, this.wait, this.sql,
|
||||
this.individual_sql, this.individual_sql_count,
|
||||
this.errored_queries, this.interrupted_queries
|
||||
):
|
||||
cache_response_stack=cache_response_count+query_response_count+intrp_response_count+error_response_count,
|
||||
query_response_stack=query_response_count+intrp_response_count+error_response_count,
|
||||
intrp_response_stack=intrp_response_count+error_response_count,
|
||||
error_response_stack=error_response_count;
|
||||
APICallMetrics.from_map(Map data): this(
|
||||
data["receive_count"] ?? 0,
|
||||
data["cache_response_count"] ?? 0,
|
||||
data["query_response_count"] ?? 0,
|
||||
data["intrp_response_count"] ?? 0,
|
||||
data["error_response_count"] ?? 0,
|
||||
TimeStats.from_list_or_zeros(data["response"]),
|
||||
TimeStats.from_list_or_zeros(data["interrupt"]),
|
||||
TimeStats.from_list_or_zeros(data["error"]),
|
||||
TimeStats.from_list_or_zeros(data["python"]),
|
||||
TimeStats.from_list_or_zeros(data["wait"]),
|
||||
TimeStats.from_list_or_zeros(data["sql"]),
|
||||
TimeStats.from_list_or_zeros(data["individual_sql"]),
|
||||
data["individual_sql_count"] ?? 0,
|
||||
List<String>.from(data["errored_queries"] ?? const []),
|
||||
List<String>.from(data["interrupted_queries"] ?? const []),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
class ServerLoadDataPoint {
|
||||
final int tick;
|
||||
final int sessions;
|
||||
final APICallMetrics search;
|
||||
final APICallMetrics resolve;
|
||||
const ServerLoadDataPoint(
|
||||
this.tick, this.sessions, this.search, this.resolve
|
||||
);
|
||||
ServerLoadDataPoint.from_map(int tick, Map data): this(
|
||||
tick, (data['status'] ?? const {})['sessions'] ?? 0,
|
||||
APICallMetrics.from_map((data['api'] ?? const {})['search'] ?? const {}),
|
||||
APICallMetrics.from_map((data['api'] ?? const {})['resolve'] ?? const {})
|
||||
);
|
||||
ServerLoadDataPoint.empty(): this(
|
||||
0, 0, APICallMetrics.from_map(const {}), APICallMetrics.from_map(const {})
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
connect_and_listen_for_load_data() {
|
||||
ServerConnection(url: 'ws://localhost:8181/')..open()..load_data.listen((m) {
|
||||
print(m.search);
|
||||
});
|
||||
}
|
||||
@@ -1,376 +0,0 @@
|
||||
# Generated by pub
|
||||
# See https://dart.dev/tools/pub/glossary#lockfile
|
||||
packages:
|
||||
analyzer:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: analyzer
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.37.0"
|
||||
args:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: args
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.5.2"
|
||||
async:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: async
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.2.0"
|
||||
boolean_selector:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: boolean_selector
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.5"
|
||||
charcode:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: charcode
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.2"
|
||||
collection:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: collection
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.14.11"
|
||||
convert:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: convert
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.1"
|
||||
crypto:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: crypto
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.6"
|
||||
csslib:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: csslib
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.16.1"
|
||||
dart_style:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: dart_style
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.2.9"
|
||||
fixnum:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: fixnum
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.10.9"
|
||||
front_end:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: front_end
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.1.20"
|
||||
glob:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: glob
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.7"
|
||||
html:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: html
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.14.0+2"
|
||||
http:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: http
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.12.0+2"
|
||||
http_multi_server:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: http_multi_server
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.0"
|
||||
http_parser:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: http_parser
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.1.3"
|
||||
io:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: io
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.3.3"
|
||||
js:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: js
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.6.1+1"
|
||||
kernel:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: kernel
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.3.20"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: matcher
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.12.5"
|
||||
meta:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: meta
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.7"
|
||||
mime:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: mime
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.9.6+3"
|
||||
multi_server_socket:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: multi_server_socket
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.2"
|
||||
node_preamble:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: node_preamble
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.4.4"
|
||||
package_config:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: package_config
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.5"
|
||||
package_resolver:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: package_resolver
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.10"
|
||||
path:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: path
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.6.2"
|
||||
pedantic:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: pedantic
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.8.0+1"
|
||||
pool:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: pool
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.4.0"
|
||||
protobuf:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: protobuf
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.13.15"
|
||||
protoc_plugin:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: protoc_plugin
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "17.0.4"
|
||||
pub_semver:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: pub_semver
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.4.2"
|
||||
shelf:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shelf
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.7.5"
|
||||
shelf_packages_handler:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shelf_packages_handler
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.4"
|
||||
shelf_static:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shelf_static
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.8"
|
||||
shelf_web_socket:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shelf_web_socket
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.3"
|
||||
source_map_stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_map_stack_trace
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.5"
|
||||
source_maps:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_maps
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.10.8"
|
||||
source_span:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: source_span
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.5.5"
|
||||
stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stack_trace
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.9.3"
|
||||
stream_channel:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stream_channel
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.0"
|
||||
stream_transform:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: stream_transform
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.0.19"
|
||||
string_scanner:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: string_scanner
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.4"
|
||||
term_glyph:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: term_glyph
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.0"
|
||||
test:
|
||||
dependency: "direct dev"
|
||||
description:
|
||||
name: test
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.6.5"
|
||||
test_api:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_api
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.6"
|
||||
test_core:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: test_core
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.2.7"
|
||||
typed_data:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: typed_data
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.1.6"
|
||||
vm_service_lib:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vm_service_lib
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "3.22.0"
|
||||
watcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: watcher
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "0.9.7+10"
|
||||
web_socket_channel:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: web_socket_channel
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.0.14"
|
||||
yaml:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: yaml
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.1.16"
|
||||
sdks:
|
||||
dart: ">=2.3.0 <3.0.0"
|
||||
@@ -1,19 +0,0 @@
|
||||
name: lbry
|
||||
description: LBRY SDK in Dart.
|
||||
version: 0.0.1
|
||||
homepage: https://lbry.com
|
||||
author: LBRY Inc. <hello@lbry.com>
|
||||
|
||||
environment:
|
||||
sdk: '>=2.2.0 <3.0.0'
|
||||
|
||||
dependencies:
|
||||
http: ^0.12.0+2
|
||||
path: ^1.4.1
|
||||
protobuf: ^0.13.12
|
||||
web_socket_channel: ^1.0.4
|
||||
|
||||
dev_dependencies:
|
||||
pedantic: ^1.0.0
|
||||
test: ^1.0.0
|
||||
protoc_plugin: ^17.0.2
|
||||
@@ -1,8 +0,0 @@
|
||||
import 'package:lbry/lbry.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
test('calculate', () {
|
||||
expect(calculate(), 42);
|
||||
});
|
||||
}
|
||||
@@ -1,72 +0,0 @@
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
|
||||
# IntelliJ related
|
||||
*.iml
|
||||
*.ipr
|
||||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
**/doc/api/
|
||||
.dart_tool/
|
||||
.flutter-plugins
|
||||
.packages
|
||||
.pub-cache/
|
||||
.pub/
|
||||
/build/
|
||||
|
||||
# Android related
|
||||
**/android/**/gradle-wrapper.jar
|
||||
**/android/.gradle
|
||||
**/android/captures/
|
||||
**/android/gradlew
|
||||
**/android/gradlew.bat
|
||||
**/android/local.properties
|
||||
**/android/**/GeneratedPluginRegistrant.java
|
||||
|
||||
# iOS/XCode related
|
||||
**/ios/**/*.mode1v3
|
||||
**/ios/**/*.mode2v3
|
||||
**/ios/**/*.moved-aside
|
||||
**/ios/**/*.pbxuser
|
||||
**/ios/**/*.perspectivev3
|
||||
**/ios/**/*sync/
|
||||
**/ios/**/.sconsign.dblite
|
||||
**/ios/**/.tags*
|
||||
**/ios/**/.vagrant/
|
||||
**/ios/**/DerivedData/
|
||||
**/ios/**/Icon?
|
||||
**/ios/**/Pods/
|
||||
**/ios/**/.symlinks/
|
||||
**/ios/**/profile
|
||||
**/ios/**/xcuserdata
|
||||
**/ios/.generated/
|
||||
**/ios/Flutter/App.framework
|
||||
**/ios/Flutter/Flutter.framework
|
||||
**/ios/Flutter/Generated.xcconfig
|
||||
**/ios/Flutter/app.flx
|
||||
**/ios/Flutter/app.zip
|
||||
**/ios/Flutter/flutter_assets/
|
||||
**/ios/ServiceDefinitions.json
|
||||
**/ios/Runner/GeneratedPluginRegistrant.*
|
||||
|
||||
# Exceptions to above rules.
|
||||
!**/ios/**/default.mode1v3
|
||||
!**/ios/**/default.mode2v3
|
||||
!**/ios/**/default.pbxuser
|
||||
!**/ios/**/default.perspectivev3
|
||||
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
|
||||
@@ -1,10 +0,0 @@
|
||||
# This file tracks properties of this Flutter project.
|
||||
# Used by Flutter tool to assess capabilities and perform upgrades etc.
|
||||
#
|
||||
# This file should be version controlled and should not be manually edited.
|
||||
|
||||
version:
|
||||
revision: 871b58986d6d401efb8dd66af67814bf37c42cd1
|
||||
channel: master
|
||||
|
||||
project_type: app
|
||||
@@ -1,16 +0,0 @@
|
||||
# ver
|
||||
|
||||
A new Flutter project.
|
||||
|
||||
## Getting Started
|
||||
|
||||
This project is a starting point for a Flutter application.
|
||||
|
||||
A few resources to get you started if this is your first Flutter project:
|
||||
|
||||
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
|
||||
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
|
||||
|
||||
For help getting started with Flutter, view our
|
||||
[online documentation](https://flutter.dev/docs), which offers tutorials,
|
||||
samples, guidance on mobile development, and a full API reference.
|
||||
@@ -1,61 +0,0 @@
|
||||
def localProperties = new Properties()
|
||||
def localPropertiesFile = rootProject.file('local.properties')
|
||||
if (localPropertiesFile.exists()) {
|
||||
localPropertiesFile.withReader('UTF-8') { reader ->
|
||||
localProperties.load(reader)
|
||||
}
|
||||
}
|
||||
|
||||
def flutterRoot = localProperties.getProperty('flutter.sdk')
|
||||
if (flutterRoot == null) {
|
||||
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
|
||||
}
|
||||
|
||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||
if (flutterVersionCode == null) {
|
||||
flutterVersionCode = '1'
|
||||
}
|
||||
|
||||
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
||||
if (flutterVersionName == null) {
|
||||
flutterVersionName = '1.0'
|
||||
}
|
||||
|
||||
apply plugin: 'com.android.application'
|
||||
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
|
||||
lintOptions {
|
||||
disable 'InvalidPackage'
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "com.lbry.ver"
|
||||
minSdkVersion 16
|
||||
targetSdkVersion 28
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// TODO: Add your own signing config for the release build.
|
||||
// Signing with the debug keys for now, so `flutter run --release` works.
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source '../..'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
||||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.lbry.ver">
|
||||
<!-- Flutter needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
@@ -1,33 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.lbry.ver">
|
||||
|
||||
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
|
||||
calls FlutterMain.startInitialization(this); in its onCreate method.
|
||||
In most cases you can leave this as-is, but you if you want to provide
|
||||
additional functionality it is fine to subclass or reimplement
|
||||
FlutterApplication and put your custom class here. -->
|
||||
<application
|
||||
android:name="io.flutter.app.FlutterApplication"
|
||||
android:label="ver"
|
||||
android:icon="@mipmap/ic_launcher">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:launchMode="singleTop"
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:hardwareAccelerated="true"
|
||||
android:windowSoftInputMode="adjustResize">
|
||||
<!-- This keeps the window background of the activity showing
|
||||
until Flutter renders its first frame. It can be removed if
|
||||
there is no splash screen (such as the default splash screen
|
||||
defined in @style/LaunchTheme). -->
|
||||
<meta-data
|
||||
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
|
||||
android:value="true" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
</manifest>
|
||||
@@ -1,13 +0,0 @@
|
||||
package com.lbry.ver;
|
||||
|
||||
import android.os.Bundle;
|
||||
import io.flutter.app.FlutterActivity;
|
||||
import io.flutter.plugins.GeneratedPluginRegistrant;
|
||||
|
||||
public class MainActivity extends FlutterActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
GeneratedPluginRegistrant.registerWith(this);
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
||||
|
Before Width: | Height: | Size: 544 B |
|
Before Width: | Height: | Size: 442 B |
|
Before Width: | Height: | Size: 721 B |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
Flutter draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
</resources>
|
||||
@@ -1,7 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.lbry.ver">
|
||||
<!-- Flutter needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
@@ -1,29 +0,0 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.2.1'
|
||||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.buildDir = '../build'
|
||||
subprojects {
|
||||
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(':app')
|
||||
}
|
||||
|
||||
task clean(type: Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
org.gradle.jvmargs=-Xmx1536M
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#Fri Jun 23 08:50:38 CEST 2017
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
|
||||
@@ -1,15 +0,0 @@
|
||||
include ':app'
|
||||
|
||||
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
|
||||
|
||||
def plugins = new Properties()
|
||||
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
|
||||
if (pluginsFile.exists()) {
|
||||
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
|
||||
}
|
||||
|
||||
plugins.each { name, path ->
|
||||
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
|
||||
include ":$name"
|
||||
project(":$name").projectDir = pluginDirectory
|
||||
}
|
||||
@@ -1,202 +0,0 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>App</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>io.flutter.flutter.app</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>App</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>FMWK</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>8.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1 +0,0 @@
|
||||
#include "Generated.xcconfig"
|
||||
@@ -1 +0,0 @@
|
||||
#include "Generated.xcconfig"
|
||||
@@ -1,519 +0,0 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
|
||||
3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
|
||||
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
|
||||
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
|
||||
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
dstPath = "";
|
||||
dstSubfolderSpec = 10;
|
||||
files = (
|
||||
3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */,
|
||||
9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */,
|
||||
);
|
||||
name = "Embed Frameworks";
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
|
||||
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
|
||||
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = "<group>"; };
|
||||
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
||||
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
97C146EB1CF9000F007C117D /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
|
||||
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
9740EEB11CF90186004384FC /* Flutter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3B80C3931E831B6300D905FE /* App.framework */,
|
||||
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
|
||||
9740EEBA1CF902C7004384FC /* Flutter.framework */,
|
||||
9740EEB21CF90195004384FC /* Debug.xcconfig */,
|
||||
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
|
||||
9740EEB31CF90195004384FC /* Generated.xcconfig */,
|
||||
);
|
||||
name = Flutter;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146E51CF9000F007C117D = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
9740EEB11CF90186004384FC /* Flutter */,
|
||||
97C146F01CF9000F007C117D /* Runner */,
|
||||
97C146EF1CF9000F007C117D /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146EF1CF9000F007C117D /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97C146EE1CF9000F007C117D /* Runner.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146F01CF9000F007C117D /* Runner */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
97C146FA1CF9000F007C117D /* Main.storyboard */,
|
||||
97C146FD1CF9000F007C117D /* Assets.xcassets */,
|
||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
|
||||
97C147021CF9000F007C117D /* Info.plist */,
|
||||
97C146F11CF9000F007C117D /* Supporting Files */,
|
||||
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
|
||||
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
|
||||
74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
|
||||
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
|
||||
);
|
||||
path = Runner;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146F11CF9000F007C117D /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = "Supporting Files";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
97C146ED1CF9000F007C117D /* Runner */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
|
||||
buildPhases = (
|
||||
9740EEB61CF901F6004384FC /* Run Script */,
|
||||
97C146EA1CF9000F007C117D /* Sources */,
|
||||
97C146EB1CF9000F007C117D /* Frameworks */,
|
||||
97C146EC1CF9000F007C117D /* Resources */,
|
||||
9705A1C41CF9048500538489 /* Embed Frameworks */,
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = Runner;
|
||||
productName = Runner;
|
||||
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
97C146E61CF9000F007C117D /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 1020;
|
||||
ORGANIZATIONNAME = "The Chromium Authors";
|
||||
TargetAttributes = {
|
||||
97C146ED1CF9000F007C117D = {
|
||||
CreatedOnToolsVersion = 7.3.1;
|
||||
LastSwiftMigration = 0910;
|
||||
};
|
||||
};
|
||||
};
|
||||
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = en;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
mainGroup = 97C146E51CF9000F007C117D;
|
||||
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
97C146ED1CF9000F007C117D /* Runner */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
97C146EC1CF9000F007C117D /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
|
||||
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
|
||||
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
|
||||
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
|
||||
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Thin Binary";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
|
||||
};
|
||||
9740EEB61CF901F6004384FC /* Run Script */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Run Script";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
97C146EA1CF9000F007C117D /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
|
||||
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
97C146FB1CF9000F007C117D /* Base */,
|
||||
);
|
||||
name = Main.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
97C147001CF9000F007C117D /* Base */,
|
||||
);
|
||||
name = LaunchScreen.storyboard;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
249021D3217E4FDB00AE95B9 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
249021D4217E4FDB00AE95B9 /* Profile */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.lbry.ver;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_VERSION = 4.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Profile;
|
||||
};
|
||||
97C147031CF9000F007C117D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
ENABLE_TESTABILITY = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG=1",
|
||||
"$(inherited)",
|
||||
);
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
97C147041CF9000F007C117D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_ANALYZER_NONNULL = YES;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_CXX_LIBRARY = "libc++";
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CLANG_ENABLE_OBJC_ARC = YES;
|
||||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
||||
CLANG_WARN_BOOL_CONVERSION = YES;
|
||||
CLANG_WARN_COMMA = YES;
|
||||
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
||||
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
||||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
||||
CLANG_WARN_EMPTY_BODY = YES;
|
||||
CLANG_WARN_ENUM_CONVERSION = YES;
|
||||
CLANG_WARN_INFINITE_RECURSION = YES;
|
||||
CLANG_WARN_INT_CONVERSION = YES;
|
||||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
||||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
||||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
||||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
||||
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
||||
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
||||
CLANG_WARN_UNREACHABLE_CODE = YES;
|
||||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
COPY_PHASE_STRIP = NO;
|
||||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
||||
ENABLE_NS_ASSERTIONS = NO;
|
||||
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_NO_COMMON_BLOCKS = YES;
|
||||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
||||
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
SDKROOT = iphoneos;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
97C147061CF9000F007C117D /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.lbry.ver;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 4.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
97C147071CF9000F007C117D /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
CLANG_ENABLE_MODULES = YES;
|
||||
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
|
||||
ENABLE_BITCODE = NO;
|
||||
FRAMEWORK_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
INFOPLIST_FILE = Runner/Info.plist;
|
||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"$(PROJECT_DIR)/Flutter",
|
||||
);
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.lbry.ver;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
|
||||
SWIFT_VERSION = 4.0;
|
||||
VERSIONING_SYSTEM = "apple-generic";
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
97C147031CF9000F007C117D /* Debug */,
|
||||
97C147041CF9000F007C117D /* Release */,
|
||||
249021D3217E4FDB00AE95B9 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
97C147061CF9000F007C117D /* Debug */,
|
||||
97C147071CF9000F007C117D /* Release */,
|
||||
249021D4217E4FDB00AE95B9 /* Profile */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
|
||||
};
|
||||
rootObject = 97C146E61CF9000F007C117D /* Project object */;
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:Runner.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -1,91 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1020"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
</Testables>
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Profile"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
|
||||
BuildableName = "Runner.app"
|
||||
BlueprintName = "Runner"
|
||||
ReferencedContainer = "container:Runner.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:Runner.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -1,13 +0,0 @@
|
||||
import UIKit
|
||||
import Flutter
|
||||
|
||||
@UIApplicationMain
|
||||
@objc class AppDelegate: FlutterAppDelegate {
|
||||
override func application(
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
GeneratedPluginRegistrant.register(with: self)
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-20x20@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-29x29@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-40x40@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "60x60",
|
||||
"idiom" : "iphone",
|
||||
"filename" : "Icon-App-60x60@3x.png",
|
||||
"scale" : "3x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "20x20",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-20x20@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "29x29",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-29x29@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "40x40",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-40x40@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@1x.png",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"size" : "76x76",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-76x76@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "83.5x83.5",
|
||||
"idiom" : "ipad",
|
||||
"filename" : "Icon-App-83.5x83.5@2x.png",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"size" : "1024x1024",
|
||||
"idiom" : "ios-marketing",
|
||||
"filename" : "Icon-App-1024x1024@1x.png",
|
||||
"scale" : "1x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"version" : 1,
|
||||
"author" : "xcode"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 564 B |