Skip to content

Commit

Permalink
embed monero.dart into monero_c repository
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCyjaneK committed Jul 26, 2024
1 parent 700a6cb commit d133a8d
Show file tree
Hide file tree
Showing 18 changed files with 18,818 additions and 15 deletions.
18 changes: 5 additions & 13 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
FROM debian:bookworm
FROM ghcr.io/cirruslabs/flutter:3.22.2
# FROM debian:bookworm

# Install dependencies

RUN apt update \
&& apt install -y wget build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 gcc-mingw-w64-i686 g++-mingw-w64-i686 build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf unzip python-is-python3 build-essential pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf gcc-aarch64-linux-gnu g++-aarch64-linux-gnu gcc-i686-linux-gnu g++-i686-linux-gnu pkg-config autoconf libtool ccache make cmake gcc g++ git curl lbzip2 libtinfo5 gperf python-is-python3 zsh

# Install zsh and configure it

ARG USERNAME=user
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN bash -c 'if [[ "$(uname -m)" == "aarch64" || "$(uname -m)" == "arm64" ]] then sudo rm -rf /opt/android-sdk-linux/platform-tools; fi'

RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& apt-get update \
&& apt-get install -y sudo \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
&& chmod 0440 /etc/sudoers.d/$USERNAME
# Install zsh and configure it

USER $USERNAME
USER ubuntu

RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.0/zsh-in-docker.sh)" \
-t robbyrussell
Expand Down
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
"terminal.integrated.profiles.linux": { "zsh": { "path": "/bin/zsh" } }
},
"extensions": [
"dart-code.flutter",
"dart-code.dart-code"
]
}
},
"remoteUser": "user"
"remoteUser": "ubuntu"
}
34 changes: 34 additions & 0 deletions .github/workflows/dart_bindings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check if dart bindings are in sync
on:
pull_request:
types: [opened, reopened, synchronize]
permissions:
issues: write
pull-requests: write
jobs:
android:
strategy:
matrix:
coin: [monero, wownero]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- uses: 8BitJonny/gh-get-current-pr@3.0.0
id: PR
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: generate bindings
run:
cd impls/monero.dart
./update_bindings.sh
- name: Create or update comment
if: failure()
uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
1 change: 0 additions & 1 deletion .github/workflows/xmruw.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build xmruw
run-name: Building xmruw for supported targets
on: [push]
jobs:
android:
Expand Down
12 changes: 12 additions & 0 deletions impls/monero.dart/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://dart.dev/guides/libraries/private-files
# Created by `dart pub`
.dart_tool/

# Avoid committing pubspec.lock for library packages; see
# https://dart.dev/guides/libraries/private-files#pubspeclock.
pubspec.lock

wallet2_api_c.h

# FVM Version Cache
.fvm/
Loading

0 comments on commit d133a8d

Please sign in to comment.