Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xoureldeen committed Jun 27, 2024
1 parent ac79cb2 commit da15406
Show file tree
Hide file tree
Showing 440 changed files with 8,492 additions and 187,534 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

github: twaik # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
open_collective: termux # Replace with a single Open Collective username
custom: https://termux.dev/donate
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: "Bug report"
description: "Create a report to help us improve"
title: "[Bug]: "
labels: [untriaged, "bug report"]
body:
- type: markdown
attributes:
value: |
This is a bug tracker of the official Termux:X11.
Please do not report issues of third-party software there, but ask in [Termux Packages GitHub Discussions](https://github.com/termux/termux-packages/discussions) or [Community Social Media](https://wiki.termux.com/wiki/Community) instead.
Also you can ask questions in [Discord](https://discord.gg/termux-641256914684084234).
Use search to check whether your issue has been already reported and perhaps solved.
Android versions below 8.x are not supported.
To submit a bug report, fill the form below.
Provide as much as possible information about the encountered issue.
We may request extended information such as logs if considered necessary.
This will help package maintainers to understand the problem correctly and provide a solution.
Be patient, do not expect that issue could get resolved immediately.
### Logs
If you need to obtain logs from the `com.vectras.boxvidra` application,
set the `TERMUX_X11_DEBUG` environment variable to 1, like this:
`TERMUX_X11_DEBUG=1 termux-x11 :0`
- type: textarea
attributes:
label: Problem description
description: |
A clear and concise description of what the problem is. You may attach the logs, screenshots, screen video recording and whatever else that will help to understand the issue.
Issues without proper description will be closed without solution.
validations:
required: true
- type: textarea
attributes:
label: What steps will reproduce the bug?
validations:
required: true
- type: textarea
attributes:
label: What is the expected behavior?
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
Binary file added .github/static/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/static/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/static/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/static/dpi-scale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
105 changes: 105 additions & 0 deletions .github/workflows/debug_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Build

on: workflow_dispatch

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y libarchive-tools
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Validation
uses: gradle/actions/wrapper-validation@v3

- name: Java setup
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Restore cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}

restore-keys: |
${{ runner.os }}-gradle-
- name: Build
run: ./gradlew assembleDebug
- name: Build companion package
run: ./build_termux_package
- name: Copy loader to target directory
run: cp ./shell-loader/build/outputs/apk/debug/shell-loader-debug.apk ./app/build/outputs/apk/debug/shell-loader-nightly.apk
- name: Store app-arm64-v8a-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-arm64-v8a-debug
path: ./app/build/outputs/apk/debug/app-arm64-v8a-debug.apk

- name: Store app-armeabi-v7a-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-armeabi-v7a-debug
path: ./app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk

- name: Store app-universal-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-universal-debug
path: ./app/build/outputs/apk/debug/app-universal-debug.apk

- name: Store app-x86_64-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-x86_64-debug
path: ./app/build/outputs/apk/debug/app-x86_64-debug.apk

- name: Store app-x86-debug
uses: actions/upload-artifact@v4
with:
name: termux-x11-x86-debug
path: ./app/build/outputs/apk/debug/app-x86-debug.apk

- name: Store companion package
uses: actions/upload-artifact@v4
with:
name: termux-companion packages
path: |
./app/build/outputs/apk/debug/shell-loader-nightly.apk
./app/build/outputs/apk/debug/termux-x11-*-all.deb
./app/build/outputs/apk/debug/termux-x11-*-any.pkg.tar.xz
- name: Store unstripped libraries with debug symbols
uses: actions/upload-artifact@v4
with:
name: termux-x11-unstripped-libraries-for-ndk-stack
path: ./app/build/intermediates/cxx/Debug/*

- name: Update Nightly Release
uses: andelf/nightly-release@main
if: github.repository == 'termux/termux-x11' && github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: 'Nightly Release $$'
draft: false
prerelease: false
body: |
This is a nightly release of the termux-x11 app.
Based on ${{ github.sha }}
files: |
./app/build/outputs/apk/debug/app-*-debug.apk
./app/build/outputs/apk/debug/shell-loader-nightly.apk
./app/build/outputs/apk/debug/termux-x11-*-all.deb
./app/build/outputs/apk/debug/termux-x11-*-any.pkg.tar.xz
22 changes: 22 additions & 0 deletions .github/workflows/update-wrapper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update Gradle Wrapper

on:
schedule:
- cron: "30 6 * * SAT"

jobs:
update-gradle-wrapper:
runs-on: ubuntu-latest

steps:
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- uses: actions/checkout@v4
with:
submodules: recursive

- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v1
50 changes: 38 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
# From https://gist.github.com/iainconnor/8605514
# with the addition of the /captures below.
/captures

# Built application files
build/
*.apk
*.so
.externalNativeBuild
.cxx

# Crashlytics configuations
com_crashlytics_export_strings.xml

# Local configuration file (sdk path, etc)
local.properties

# Gradle generated files
.gradle/

# Signing files
.signing/

# Intellij
.idea/
*.iml

# OS-specific files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
.swp
ehthumbs.db
Thumbs.db

#files containing github tokens
github.properties

*.cxx
app/.cxx/*
63 changes: 63 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[submodule "app/src/main/cpp/libtirpc"]
path = app/src/main/cpp/libtirpc
url = https://github.com/alisw/libtirpc
ignore = dirty
[submodule "app/src/main/cpp/pixman"]
path = app/src/main/cpp/pixman
url = https://gitlab.freedesktop.org/pixman/pixman
ignore = dirty
[submodule "app/src/main/cpp/libfontenc"]
path = app/src/main/cpp/libfontenc
url = https://gitlab.freedesktop.org/xorg/lib/libfontenc
ignore = dirty
[submodule "app/src/main/cpp/libxau"]
path = app/src/main/cpp/libxau
url = https://gitlab.freedesktop.org/xorg/lib/libxau
ignore = dirty
[submodule "app/src/main/cpp/libxdmcp"]
path = app/src/main/cpp/libxdmcp
url = https://gitlab.freedesktop.org/xorg/lib/libxdmcp
ignore = dirty
[submodule "app/src/main/cpp/libxfont"]
path = app/src/main/cpp/libxfont
url = https://gitlab.freedesktop.org/xorg/lib/libxfont
ignore = dirty
[submodule "app/src/main/cpp/libxkbfile"]
path = app/src/main/cpp/libxkbfile
url = https://gitlab.freedesktop.org/xorg/lib/libxkbfile
ignore = dirty
[submodule "app/src/main/cpp/libxshmfence"]
path = app/src/main/cpp/libxshmfence
url = https://gitlab.freedesktop.org/xorg/lib/libxshmfence
ignore = dirty
[submodule "app/src/main/cpp/libxtrans"]
path = app/src/main/cpp/libxtrans
url = https://gitlab.freedesktop.org/xorg/lib/libxtrans
ignore = dirty
[submodule "app/src/main/cpp/libepoxy"]
path = app/src/main/cpp/libepoxy
url = https://github.com/anholt/libepoxy
ignore = dirty
[submodule "app/src/main/cpp/libxcvt"]
path = app/src/main/cpp/libxcvt
url = https://gitlab.freedesktop.org/xorg/lib/libxcvt
ignore = dirty
[submodule "app/src/main/cpp/libx11"]
path = app/src/main/cpp/libx11
url = https://gitlab.freedesktop.org/xorg/lib/libx11
ignore = dirty
[submodule "app/src/main/cpp/xorgproto"]
path = app/src/main/cpp/xorgproto
url = https://gitlab.freedesktop.org/xorg/proto/xorgproto
ignore = dirty
[submodule "app/src/main/cpp/xkbcomp"]
path = app/src/main/cpp/xkbcomp
url = https://gitlab.freedesktop.org/xorg/app/xkbcomp
ignore = dirty
[submodule "app/src/main/cpp/xserver"]
path = app/src/main/cpp/xserver
url = https://gitlab.freedesktop.org/xorg/xserver
ignore = dirty
[submodule "app/src/main/cpp/bzip2"]
path = app/src/main/cpp/bzip2
url = https://gitlab.com/bzip2/bzip2
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/deploymentTargetSelector.xml

This file was deleted.

20 changes: 0 additions & 20 deletions .idea/gradle.xml

This file was deleted.

10 changes: 0 additions & 10 deletions .idea/migrations.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

Loading

0 comments on commit da15406

Please sign in to comment.