Skip to content
Proyectos

Acerca de

Una aplicación desarrollada con React Native que integra diversas fuentes de información del campus.

Desarrollo web y de aplicaciones

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

thu-info-app

Build Status GitHub release Platform Android Platform iOS Platform HarmonyOS

An APP aimed at integrating various sources of campus information.

Checkout our official website!

Release

Android:

iOS: App Store

HarmonyOS: AppGallery

Verify downloads

Push builds generate GitHub build provenance attestations for the Android APK, iOS IPA, and signed HarmonyOS HAP and APP artifacts. These attestations identify the source revision and workflow that produced the exact downloaded bytes. They apply to CI artifacts, including APKs distributed through GitHub Releases and mirrors, provided the file is unchanged. They do not cover binaries subsequently processed by app stores. iOS attestation runs after the existing TestFlight upload.

Install the GitHub CLI and authenticate with gh auth login. To verify an Android release download, set the tag and local file path:

TAG=vX.Y.Z # Replace with the downloaded release's tag.
FILE="THUInfo_release_${TAG}.apk"
gh attestation verify "$FILE" \
  -R thu-info-community/thu-info-app \
  --signer-workflow thu-info-community/thu-info-app/.github/workflows/ci.yml \
  --source-ref "refs/tags/$TAG"

gh release verify "$TAG" -R thu-info-community/thu-info-app
gh release verify-asset "$TAG" "$FILE" -R thu-info-community/thu-info-app

For branch CI artifacts, use the downloaded artifact's path and replace refs/tags/$TAG with refs/heads/BRANCH. Add --source-digest COMMIT_SHA to verify a specific build revision. The two gh release commands apply only to immutable GitHub Releases and their attached assets; GitHub Releases contain the Android APK only. Builds predating attestation support cannot be verified with these commands.

Release immutability setup

After the attestation workflow is validated, enable Settings → General → Releases → Enable release immutability in this GitHub repository. This repository setting is required to generate automatic release attestations and applies only to future releases. See GitHub's setup instructions.

Tagged Android builds attest the APK before the release action uploads it to a draft and publishes the release. Tags containing a hyphen, such as v3.17.0-alpha1, are published as prereleases and do not replace the latest stable release. Failed drafts can be retried. Reruns for an already published immutable release generate new CI artifacts and attestations but skip release publication. To publish changed binaries, create a new version tag: published immutable assets and their associated tag cannot be replaced or moved.


If you are a developer...

Build from source

Prerequisites

Android

These are pinned by apps/thu-info-app/android/build.gradle; the NDK and CMake are required because the New Architecture compiles the codegen'd C++ for each native module.

iOS

Make sure you have Xcode >= 12 installed and the command line tools enabled.

We recommend using Homebrew to install the tools required.

brew install node
brew install yarn
brew install cocoapods
brew install watchman   # optional, install only for higher development performance

HarmonyOS

We recommend following the official docs:

Make sure you have environment variable RNOH_C_API_ARCH=1 set.

Building (Android, iOS)

cd thu-info-app
yarn
yarn android                  # For Android
npx pod-install && yarn ios   # For iOS

Local Android builds and branch push / PR CI builds target arm64-v8a and x86_64. Tag builds, including prerelease tags, produce a single APK containing all four ABIs: armeabi-v7a, arm64-v8a, x86, and x86_64. Release downloads keep the filename THUInfo_release_<tag>.apk.

To build an Android APK containing all four ABIs locally:

cd apps/thu-info-app/android
./gradlew assembleDebug -PreactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64

Use assembleRelease instead of assembleDebug when release signing is configured.

Building (HarmonyOS)

cd thu-info-app
./setup-harmony.sh
cd apps/thu-info-app
yarn codegen-harmony
yarn bundle-harmony

Build and run project with DevEco Studio.

Optional: for react-native hot reload

hdc rport tcp:8081 tcp:8081
yarn start

Contributing

Please follow the Contributing guidelines.

Commercial Use

The source code is licenced under Business Source License 1.1, and is not allowed for commercial use unless explicitly granted by UNIDY2002 or after the Change Date arrives.

Acknowledgement

Great thanks to the learnX project, without referring to whose code the migration to React Native would never be as smooth.

Best regards to the JavaScript and the React Native community.

Explorar proyectos relacionados

Cargando…