-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,026 changed files
with
1,166,162 additions
and
7,988 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.gitattributes text eol=lf | ||
.gitignore text eol=lf | ||
*.java text eol=lf | ||
*.md text eol=lf | ||
*.txt text eol=lf | ||
*.rst text eol=lf | ||
build.gradle text eol=lf | ||
build.gradle filter=crypto-keywords | ||
*.html filter=crypto-website | ||
settings.gradle text eol=lf | ||
gradlew text eol=lf | ||
gradlew.bat eol=crlf | ||
gradle.properties text eol=lf | ||
*.ipynb text eol=lf | ||
Dockerfile text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
name: Clean, build, test, and release the project. | ||
|
||
on: | ||
[push, workflow_dispatch] | ||
|
||
jobs: | ||
Setup: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Granting Execution permission | ||
run: chmod +x gradlew | ||
|
||
- name: Setup Android Environment | ||
run: cd /opt && wget --output-document=android-sdk.zip --quiet https://dl.google.com/android/repository/android-22_r02.zip && unzip android-sdk.zip && mv android-5.1.1 android && sudo chown -R 777 android | ||
|
||
- name: Downloading SDK Man | ||
run: curl -s "https://get.sdkman.io" | bash | ||
|
||
- name: Initializing SDKMan | ||
run: source ~/.sdkman/bin/sdkman-init.sh && chmod 777 -R ~/.sdkman | ||
|
||
- name: Installing Java 7 from SDKMan | ||
run: source ~/.sdkman/bin/sdkman-init.sh && yes | sdk install java $(sdk ls java|grep 7.0.*-zulu|head -n 1|cut -d '|' -f6|awk '{$1=$1};1') | ||
|
||
- name: Installing Java 8 from SDKMan | ||
run: source ~/.sdkman/bin/sdkman-init.sh && yes | sdk install java $(sdk ls java|grep 8.0.*-zulu|head -n 1|cut -d '|' -f6|awk '{$1=$1};1') | ||
|
||
- name: Installing Gradle 6 from SDKMan | ||
run: source ~/.sdkman/bin/sdkman-init.sh && yes | sdk install gradle 6.0 | ||
|
||
- name: Setting up Android SDK in SDKMan | ||
run: mkdir -p ~/.sdkman/candidates/android/22_r02 | ||
|
||
- name: Moving the Android SDK into SDKMan | ||
run: mv /opt/android ~/.sdkman/candidates/android/22_r02/platforms | ||
|
||
- name: Linking the latest Android SDK in the SDKMan Structure | ||
run: ln -s ~/.sdkman/candidates/android/22_r02/platforms ~/.sdkman/candidates/android/current | ||
|
||
- name: Read version from Properties-file | ||
id: read_property_original | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: 'gradle.properties' | ||
property: 'versionNumber' | ||
|
||
- name: Get Time | ||
id: time | ||
uses: nanzm/[email protected] | ||
with: | ||
format: 'YYYY-MM-DD-HH-mm' | ||
|
||
- name: Find and Replace | ||
uses: shitiomatic/str-replace@master | ||
with: | ||
find: "${{steps.read_property_original.outputs.value}}" | ||
replace: "${{steps.read_property_original.outputs.value}}_${{ steps.time.outputs.time }}" | ||
include: gradle.properties | ||
|
||
- name: Read version from Properties-file | ||
id: read_property | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: 'gradle.properties' | ||
property: 'versionNumber' | ||
|
||
- name: Building the project | ||
run: ./gradlew clean build # -x test | ||
|
||
- name: Move the Jar File | ||
if: github.ref == 'refs/heads/master' | ||
run: mv build/libs/cryptoguard-*.jar cryptoguard.jar | ||
|
||
- name: Create Release | ||
if: github.ref == 'refs/heads/master' | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: Release_${{ steps.read_property.outputs.value }}_${{ steps.time.outputs.value }} | ||
release_name: Release_${{ steps.read_property.outputs.value }}_${{ steps.time.outputs.value }} | ||
body: Release_${{ steps.read_property.outputs.value }}}_${{ steps.time.outputs.value }} | ||
|
||
- name: Upload the Jar to the Release | ||
if: github.ref == 'refs/heads/master' | ||
id: upload-release-asset-resume | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ${{ github.workspace }}/cryptoguard.jar | ||
asset_name: cryptoguard.jar | ||
asset_content_type: application/jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,44 @@ | ||
# Compiled class file | ||
!build.gradle | ||
# Compiled class filetarget/ | ||
.gradle | ||
out | ||
.idea | ||
/build/ | ||
/bin/ | ||
/target/ | ||
/.settings/ | ||
.project | ||
/*.jar | ||
/*.tar | ||
.attach_pid* | ||
*.iml | ||
build | ||
apk | ||
*.log | ||
*gradlew | ||
*gradlew.bat | ||
/.ipynb_checkpoints/ | ||
/.classpath | ||
/.vscode/ | ||
/scratchSpace | ||
/_cryptoguard.source | ||
/rsc/ | ||
/__pycache__/ | ||
/cfg/ | ||
/samples/base/ | ||
/rsc/ | ||
Notebook/.ipynb_checkpoints/ | ||
rsc/ | ||
/rsc/ | ||
|
||
tmp/ | ||
|
||
rsc/ | ||
|
||
rsc/ | ||
|
||
|
||
|
||
|
||
Notebook/tmp/ | ||
|
||
rsc/ | ||
|
||
|
||
signature.sig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
FROM openjdk:11.0.7-jdk | ||
|
||
RUN apt-get update | ||
RUN apt update | ||
|
||
RUN yes|apt-get install zip | ||
RUN apt-get install -y python3-pip | ||
RUN apt-get update | ||
|
||
# Downloading the Android Library | ||
RUN cd /opt && \ | ||
wget --output-document=android-sdk.zip --quiet https://dl.google.com/android/repository/android-22_r02.zip && \ | ||
unzip android-sdk.zip && \ | ||
rm -f android-sdk.zip && \ | ||
mv android-5.1.1 android && \ | ||
chown -R 777 android | ||
|
||
# add requirements.txt, written this way to gracefully ignore a missing file | ||
COPY . . | ||
RUN ([ -f requirements.txt ] \ | ||
&& pip3 install --no-cache-dir -r requirements.txt) \ | ||
|| pip3 install --no-cache-dir jupyter jupyterlab | ||
|
||
USER root | ||
|
||
# Download the kernel release | ||
RUN curl -L https://github.com/SpencerPark/IJava/releases/download/v1.3.0/ijava-1.3.0.zip > ijava-kernel.zip | ||
|
||
# Unpack and install the kernel | ||
RUN unzip ijava-kernel.zip -d ijava-kernel \ | ||
&& cd ijava-kernel \ | ||
&& python3 install.py --sys-prefix | ||
|
||
# Set up the user environment | ||
ENV NB_USER runner | ||
ENV NB_UID 1000 | ||
ENV HOME /home/$NB_USER | ||
|
||
RUN adduser --disabled-password \ | ||
--gecos "Default user" \ | ||
--uid $NB_UID \ | ||
$NB_USER | ||
|
||
COPY . $HOME | ||
RUN chown -R $NB_UID $HOME | ||
|
||
USER $NB_USER | ||
|
||
# Installing SDK Man | ||
RUN curl -s "https://get.sdkman.io" | bash | ||
|
||
# Installing Java and Maven, removing some unnecessary SDKMAN files | ||
RUN bash -c "source /home/runner/.sdkman/bin/sdkman-init.sh && yes | sdk install java $(sdk ls java|grep 11.0.*-hs-adpt|head -n 1|cut -d '|' -f6|awk '{$1=$1};1')" | ||
RUN bash -c "source /home/runner/.sdkman/bin/sdkman-init.sh && yes | sdk install java $(sdk ls java|grep 7.0.*-zulu|head -n 1|cut -d '|' -f6|awk '{$1=$1};1')" | ||
RUN bash -c "source /home/runner/.sdkman/bin/sdkman-init.sh && yes | sdk install java $(sdk ls java|grep 8.0.*-zulu|head -n 1|cut -d '|' -f6|awk '{$1=$1};1')" | ||
RUN bash -c "source /home/runner/.sdkman/bin/sdkman-init.sh && yes | sdk install gradle 6.0" | ||
|
||
USER root | ||
|
||
RUN mkdir -p /home/runner/.sdkman/candidates/android/22_r02 | ||
RUN mv /opt/android /home/runner/.sdkman/candidates/android/22_r02/platforms | ||
RUN ln -s /home/runner/.sdkman/candidates/android/22_r02/platforms /home/runner/.sdkman/candidates/android/current | ||
|
||
RUN chmod 777 -R /home/runner/.sdkman | ||
|
||
USER $NB_USER | ||
|
||
RUN bash -c "echo \"jupyter lab --ip=0.0.0.0\">>/home/runner/.bash_aliases" | ||
|
||
# Launch the notebook server | ||
WORKDIR $HOME | ||
CMD ["jupyter", "lab", "--ip", "0.0.0.0"] |
Oops, something went wrong.