Giter Site home page Giter Site logo

seanwu1105 / capture-lite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from numbersprotocol/capture-lite

0.0 0.0 0.0 18.52 MB

A photo-sharing app with only verifiable photos and videos.

Home Page: https://numbersprotocol.github.io/

License: GNU General Public License v3.0

JavaScript 0.53% TypeScript 83.40% HTML 8.86% Java 0.59% Swift 0.89% Ruby 0.15% SCSS 5.57% Shell 0.01%

capture-lite's Introduction

Capture Lite

Get it on Google Play Get it on Google Play

branch build coverage quality
master build Codacy Badge Codacy Badge
develop build Codacy Badge Codacy Badge

Getting Started

Node 16.2.0+ and NPM 7.13.0+ is required.

Install the dependencies.

npm i

Set the system environment variable NUMBERS_STORAGE_BASE_URL before build the app by appending the following string in ~/.profile:

export NUMBERS_STORAGE_BASE_URL="THE PRIVATE BASE URL"

Preview the app in web browser.

npm run serve

Development

Start a local dev server for app dev/testing.

npm run serve

Run tests.

npm run test

Run tests in headless mode.

npm run test.ci

Lint the projects.

npm run lint

Update cordova-res (splash screens and launcher icons).

cordova-res android --skip-config --copy

Contribution

  • Run npm run lint before each commit.
  • The committed codes should pass all GitHub checks.
  • Use Visual Studio Code with workspace settings for consistent coding style.
  • Use Prettier extension to auto format on save.
  • Prefer Promise than Observable when only emitting one value. See issue #233.
  • Avoid using toPromise() to convert Observable to Promise as it is an anti-pattern.

Platform

Android

If your operating system is Linux, set the linuxAndroidStudioPath in capacitor.config.json. For example,

{
  "linuxAndroidStudioPath": "/home/username/android-studio/bin/studio.sh"
}

Before running the app with Android Studio, build and sync the dependencies and web assets.

npm run build
npx cap sync android

Open the project in Android Studio.

npx cap open android

The script does the same thing for you.

npm run build.android

Caveat

  • This app is still in the experimental stage.
  • This app uses raw file system to save proofs, and thus the performance is not optimized.

Release

Bump version in package.json.

{
  "version": "a.b.c"
}

Bump version in android/app/build.gradle.

android {
    defaultConfig {
        versionCode <versionCode += a_diff*100 + b_diff*10 + c_diff>
        versionName "a.b.c"
    }
}

Run npm i to update package-lock.json.

Write the changelog in CHANGELOG.md.

When push to the master branch with new version in the package.json file, GitHub Action would automatically do the following jobs:

  1. Create release GitHub page with debug APK.
  2. Publish the app to Play Console on alpha track.
  3. Upload debug apk to Google Drive.
  4. Send notification to the private reminder-releases slack channel.

capture-lite's People

Contributors

bafu avatar cs6 avatar dependabot-preview[bot] avatar ethanwu155 avatar seanwu1105 avatar shc261392 avatar tammyyang avatar vincent10400094 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.