GithubHelp home page GithubHelp logo

bluezoneglobal / bluezone-app Goto Github PK

View Code? Open in Web Editor NEW
361.0 35.0 143.0 10.48 MB

Bluezone - Bảo vệ mình, bảo vệ cộng đồng

Home Page: https://bluezone.ai

License: GNU General Public License v3.0

JavaScript 91.26% Starlark 0.11% Java 0.66% Objective-C 0.67% Ruby 0.35% Swift 6.93% Shell 0.01%

bluezone-app's Introduction


Bluezone

Protect yourself, protect the community

Bluezone is an open source software for contact tracing in COVID-19 pandemic

Installation

Step 1. Clone the bluezone repository from github:

Bluezone:

git clone https://github.com/BluezoneGlobal/bluezone-app.git --recursive

Step 2. install package.

npm install

Step 3. Start project with 2 command

npx react-native start

Android:

npx react-native run-android

Ios:

npx react-native run-ios

Native debugging

  1. Install LLDB from SDK Tools in Android-studio.

  2. In Android-studio go to Run->Edit Configurations->Debugger.

  3. Select 'Dual' or 'Native' and add the path to linphone-sdk debug libraries (build/libs-debug/ for example).

  4. Open native file and put your breakpoint on it.

  5. Make sure you are using the debug AAR in the app/build.gradle script and not the release one (to have faster builds by default the release AAR is used even for debug APK flavor).

  6. Debug app.

Building the app

If you have Android Studio, simply open the project, wait for the gradle synchronization and then build/install the app. It will download the bluezone library from our Maven repository as an AAR file so you don't have to build anything yourself.

If you don't have Android Studio, you can build and install the app using gradle:

./gradlew assembleDebug

will compile the APK file (assembleRelease to instead if you want to build a release package), and then

./gradlew installDebug

to install the generated APK in the previous step (use installRelease instead if you built a release package).

APK files are stored within ./app/build/outputs/apk/debug/ and ./app/build/outputs/apk/release/ directories.

License

Copyright © 2020 - Bluezone Global.

  • under a GNU/GPLv3 license, for free (open source). Please make sure that you understand and agree with the terms of this license before using it (see LICENSE file for details).

bluezone-app's People

Contributors

bachthanhle avatar bluezoner01 avatar khanguy00 avatar ntcuong avatar phucnguyen021295 avatar xuannghia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bluezone-app's Issues

QR code Địa điểm

hi all,
Hiện tại QRcode địa điểm đổi phương án chỉ là mã địa điểm nên các ứng dụng khác như ncovi zalo ko còn hỗ trợ checkin. gây khó khăn trong việc khai báo vì có nhiều khách hàng sài các ứng dụng khác.
Nên đề nghị các nhóm nghiên cứu có phương an dùng chung.
Thanks

Requirement to enable gps tracking is unneeded and nullifies low energy usage of ble

The app won't let me use it without enabling GPS. The app doesn't need GPS because it only monitors for proximity to other Bluetooth enabled devices. GPS is a known battery hog and totally nullifies the low energy advantages. This SO thread discusses the issue without being able to clearly articulate why Google requires the use of GPS. I note this comment:

...Yes, it is possible to scan without enabling Location services. You can do a Bluetooth classic scan using BluetoothAdapter.getDefaultAdapter().startDiscovery() and that will work with Location services off. This will discover all Bluetooth devices, BLE and otherwise. However, BLE devices won't have a scan record that they would have had if they were seen as a result of startScan().

At this point the discussion departs from my pay scale, but I assume it's the latter - "BLE devices won't have a scan record" - that is the stumbling block. If not, is it then an option to avoid enabling GPS.

Incompatible with react native 0.62.2

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:

  • react-native-sqlite-storage (to unlink run: "react-native unlink react-native-sqlite-storage")
  • react-native-firebase (to unlink run: "react-native unlink react-native-firebase")
  • react-native-fs (to unlink run: "react-native unlink react-native-fs")
  • react-native-svg (to unlink run: "react-native unlink react-native-svg")
  • react-native-system-setting (to unlink run: "react-native unlink react-native-system-setting")

Revoke storage permission

Hi team,
I know that bluezone requires storage permission, it should save data in private app storage than public user storage.

File google-services.json is missing

Hiện tại em đang biuld app và gặp lỗi thiếu file google-services.json
Mọi người cho em xin hướng cách giải quyết với ạ
Em cảm ơn

App Stop on inactive state

Hi,
Hiện tại Bluezone chưa handle onStop() và onPause() state. Mỗi lần các app khác chạy, Bluezone chuyển sang inactive là nó crash luôn.

"Unfortunately, Bluezone has stopped.

Report
OK
"

Is the repository dead?

I haven't seen the maintainer actually reply any issue in this repo and its sister's repositories for a while.

The source code is also outdated with the app on Play Store here.

Looks like this repo is just a shadow, and the real one is a closed source project.

@ any maintainers: If you're still alive, and this project are continuing, please response and let the your Github community know. Thanks

bluezone fixes and expansion

Hiện tại nhà nước đang hướng ng dân xử dụng Bluezone rộng rãi
Mình là Long - 0987811090 - hiện đang làm tại trung tâm y tế Cầu Giấy. muốn gửi tới nhà phát triển mà k biết liên lạc như nào
mình có viết bài lên 1 page cộng đồng nhằm góp ý Bluezone thêm tính năng truy cập và lưu trữ định vị GPS ( tương tự mục " Dòng Thời Gian của Bạn" trong Gmaps, để trợ giúp truy vết 1 ca F0 từ việc người tiếp xúc đến địa điểm F0 đã từng ăn, uống, nghỉ ngơi... để có phương án xử lý tốt nhất
Dưới đây là chi tiết ý kiến mình đã gửi lên 1 page:
E xin góp ý vài điều:
Phương thức hoạt động của bluezone e cũng đc biết nhưng thực sự e thấy còn hạn chế ở 3 yếu tố:
1: bắt buộc phải dùng app và bật bloutooth 24/24
2: khi mở app bluezone (khi cài đặt vô tình để chế độ truy cập bloutooth khi mở app) thì mới quét được các bluezoner xung quanh
3: những ai đã cài blouzone mà trở thành F0, F1 thì app mới có tính khả thi
Và hiện nay, khi điều tra có rất nhiều Ca F1 k nhớ đã đi đâu, thời gian nào
Vậy
Thay vào đó trong thời gian gấp này chính phủ nên cho phép bluezone truy xuất vào vị trí của các thuê bao, kết hợp với app ncov, tờ khai y tế để truy xuất các thông tin F0, F1 lập dữ liệu Data, vị trí các F0,F1 để xây dựng bản đồ khu vực
Để blouzoner đi đâu sẽ lưu lại địa chỉ các nơi đã đến, có nằm trong khu vực F0, F1 đã có hay k? Để sau này khi truy xuất thì chỉ cần truy xuất vào tài khoản bluezoner đó là có danh sách các nơi đã đến, các số đt đã tiếp xúc tại các nơi...
Nhiều ng sẽ cảm giác như bị kiểm soát, nh với kỳ dịch bệnh như này có thể giúp chính ng dùng 1 cách tốt hơn


Sau 1 thời gian đăng bài, cùng các coment của các bạn trên tinh thần xây dựng và được bạn #TranThienKhiem giải thích... em có chắt lọc ra được 2 ý
A) sử dụng bluezone hiệu quả khi toàn dân đồng lòng dùng
B) cấp quyền truy cập GPS làm mất quyền riêng tư, GPS không hoàn toàn chính xác.
Oki, e xin tiếp thu vấn đề góp ý của mọi ng
Và hi vọng toàn dân đồng lòng bluezone, sẽ giúp ích rất nhiều.
E xin chia sẻ riêng về ý B
Hiện tại như mọi ng có thể được biết để truy quyét và xử lý 1 ca F0 gồm có:

  1. xử lý người tiếp xúc( điều mà Bluezone đã và đang hướng tới giúp ích cho cộng đồng và nhà nước) điều tra cách ly các F1,F2...
  2. phun khử khuẩn các địa điểm F0 đã đến (gia đình, văn phòng, phương tiện, quán nước, quán ăn, siêu thị, chợ......) vì covid tồn tại trên bề mặt của các sản phẩm khác rất lâu thậm chí 1 tuần. Đã có rất nhiều lần bên em điều tra F0 quên địa điểm đến, thậm chí quên thời gian đến( k thể đưa F0 đi để tìm quán được). Vì thế e đề xuất thêm GPS phối hợp cùng Bloutooth cũng là để giúp xử lý được tối đa vấn đề này( không hẳn là 100%)
    Để giải quyết vấn đề
    A) gps không đúng vị trí ( hiển thị vị trí trên Gmaps bán kính lệch 50m- như các máy đời cao k quá 15m)
    Thực tế khi đi ăn, uống đa phần xin wifi ở nơi đó. Dù đt hiển thị sai vị trí nhưng trong phần "Dòng thời gian của bạn" đã note đúng địa chỉ của quán đó( nếu đã đăng ký vị trí trên maps)
    Nếu quán không có vị trí trên map, gps k truy xuất chính xác thì muc"dòng thời gian của bạn" cũng đã lưu dữ liệu tương đối là ở đoạn đường nào
    Cái này cực kỳ tiện cho bên điều tra
    B) làm mất quyền riêng tư.
    Thực ra vấn đề này em k nói mọi ng cũng hiểu là sẽ tắt gps trong trường hợp nào. Phải k ạ?
    Vậy thì lúc đó các bác tắt GPS, bluezone vẫn cứ hoạt động bằng Bloutooth được. K vấn đề.
    Chỉ có điều sẽ thiếu dữ liệu địa điểm đó vào thời gian nào... cái này sẽ hỏi riêng f0 và giữ bí mật... ( trường hợp này bên e gặp nhiều) nh vẫn xử lý nhé

P/S: Như bạn #Khiêm có nói cơ chế của Bluezone là do Apple và Google phối hợp, vì thế việc truy xuất GPS k còn gì là khó rồi. Nhưng sẽ ngốn nguồn data khá lớn để lưu trữ.
Bên e đôi khi phải dùng "Dòng thời gian của bạn" trong gmaps ở máy đt của F0, nhưng k phải ai cũng có.
Thực sự trong cuộc chiến này rất cần người dân đồng hành cùng toàn dân để đạt được hiệu quả tối đa cho việc dập dịch. Nên e nghĩ vấn đề hết pin thì có thể bỏ qua.

Hướng phát triển

Ứng dụng này tương tự như TraceTogether ở SingaporeSingapore. Tuy nhiên, nhóm phát triển Singapore đã giải quyết được vấn đề chạy nền trên iOS và những người không sử dụng điện thoại hoặc sử dụng điện thoại không cài được ứng dụng. Họ đã phát triển "TraceTogether token": https://www.gov.sg/article/seniors-to-receive-their-first-batch-of-tracetogether-tokens-from-28-june-2020

Đây có lẻ là hướng phát triển tốt khi mà vấn đề kiềm chế dịch hiệu quả hay không sẽ phụ thuộc vào việc truy vết nhanh hay không.

Áp dụng hệ thống của Google

Theo như mình biết, thì trong khoảng thời gian cách ly xã hội trước đó thì Google có lên kế hoạch với Apple tạo ra hệ thống giám sát tiếp xúc gần, hiện tại có tên là COVID-19 Exposure Notification. Vậy tại sao không thấy Bluezone áp dụng hệ thống này vào trong ứng dụng của mình?

Và theo như hệ thống trên nói là: bạn phải tự nguyện khai báo tình trạng sức khỏe của bản thân cho app chính thức của quốc gia sở tại có áp dụng COVID-19 Exposure Notification để có thông báo chính xác nhất về việc tiếp xúc gần, vậy cách làm này có khả thi không? Hay Bluezone có cách làm khác hiệu quả hơn? 🤔

Build failed android

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :react-native-bluetooth-scan.
Show Details
Affected Modules: app

Thông báo theo mức độ nghiêm trọng

Hiện tại không có chức năng tắt hay lọc thông báo. Nên có tùy chọn hiển thị những thông báo dạng nào. Ví dụ:

  • Tiếp xúc F0 - severity 1
  • Tin tức về lây nhiễm cộng đồng - severity 2
  • Tin covid thế giới, tin khác... - severity 3

Người dùng có thể bỏ qua các thông báo severity 2, 3.

Bluezone got crashed on iPhone 5

Dear team,

Environment

iPhone 5, version 10.3.4.

Context

Bluezone got crashed when open. Only splash screen was shown and crashed after 1 second.

Please check it.

Thank team.

App crash randomly on Android 5.1.1

App crash randomly

Hi developer, the app seem good and simple to use but it always crash randomly when I turn on Bluetooth and GPS, kidda annoying :/

New version

Dear Bluezone,

I'm doing about the technique inside the Bluezone. Could you please upload the latest version of this opensource project?

I will appreciate that!

Need more Guide/template

Bluezone vui lòng thêm tài liệu chỉ dẫn cho cộng đồng có thể cùng vào contribute app.
Cần có Một số document, wiki:

  1. Development guide (Hiện đã có cơ bản, nhưng cần hoàn thiện hơn).
  2. contribute guide: https://gist.github.com/PurpleBooth/b24679402957c63ec426
  3. Issue template: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository
  4. Pull request template: https://help.github.com/en/github/building-a-strong-community/creating-a-pull-request-template-for-your-repository

Xin được hỗ trợ giảng dạy về công nghệ

Xin chào nhóm dev Bluezone, em hiện tại đang là sinh viên tại 1 trường công nghệ ở HN.
Hiện tại e và nhóm e đang học môn Mobile và hiện đang phát triển một ứng dụng có thể xác định vị trí của các thiết bị khác thông qua Bluetooth thì bọn e nghĩ ngay tới Bluezone làm tài liệu tham khảo.
Em xin phép được tìm người hỗ trợ giảng dạy về folder structure và flow của ứng dụng.

Should rework Home screen, focusing on explaining the mechanics and sharing

The current home screen is now showing the number of nearby users and there is a button to scan nearby. These things are not necessary at all and make a lot of people confused. The way how Bluezone helps to trace is not clear now with most of normal people.

I suggest to change this screen to show:

  • Total number of users are using the app, with a progress bar of of milestone number.
  • Video or slides to explain how the app works.
  • A big button to encourage people to share download link to their friends.

bluezone

In the case the user met a F0 case, a big banner will appear on the top like that:
bluezone 2

Open source contribution guidelines

Mình thấy trên đây có rất nhiều bạn dev giỏi có mong muốn đóng góp cho dự án. Đọc báo ở đâu đó thấy cơ quan quản lý cũng kêu gọi mọi người đóng góp. Đối với một dự án lớn như thế này, thiết nghĩ team nên có một guideline cho việc đóng góp để mọi người biết rõ process hơn. Mình thấy một số bạn có mở một số PR một thời gian rồi mà không có feedbacks hay reviews gì cả, thật sự đáng tiếc.

Github cũng có hướng dẫn cụ thể cách tạo một guideline, team có thể tham khảo: https://docs.github.com/en/github/building-a-strong-community/setting-guidelines-for-repository-contributors

Bluezone somehow stucks at screen “You haven’t been exposed to any F0 Cases”

Recently I have noticed an issue of Bluezone, here are the following details:

Specs
Device: iPhone 7 Plus
OS: iOS 13.5.1

Brief info
Date of conduct: 18:17 GMT(+7) - 6/8/2020 (D/M/Y)

Description: Bluezone app will freeze at the screen indicating that the user haven't been exposed to any F0 Cases

Recreating Method: Run Bluezone in iPhone 7 Plus (after setting up OTP and mobile number).

Expected Result: The App should freeze after opening

Hỗ trợ thêm gps

Gps cũng khá phổ biến trên điện thoại thông minh hiện nay . Mình nghĩ nên hỗ trợ thêm gps, các wifi location chứ không nhất thiết phải phụ thuộc vào bluetooth

Bluezone không hoạt động trên iPhone khi thoát ra

Hiện tại mình dùng iPhone 7, các chế độ tiết kiệm năng lượng, hạn chế, đều tắt. Kể cả khi điện thoại hoạt động với hiệu năng tối đa thì bluezone liên tục không ghi nhận tiếp xúc nếu mình không bật app và để app mở. Một loạt ngày mình không để ý tới điều này đều có kết quả là 0 lượt tiếp xúc. Rất mong vấn đề này được cải thiện để người dùng app an toàn hơn ạ!

Lấy danh sách F0

ko thấy có code phần nhận danh sách F0 và phần so sánh rồi thông báo lên người dùng 🤒

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.