Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
a6ae735
initial commit
Oct 13, 2019
59af7f1
add database support
Oct 13, 2019
983d635
message support
Oct 13, 2019
d5b5b55
change applicatiion name
Oct 13, 2019
aa6d310
removed onclick on volunteering
Oct 13, 2019
b8a9a7a
handle alert
Oct 13, 2019
5d8a956
Update README.md
udhay24 Oct 13, 2019
9033b95
updated bridgefy license
udhay24 Feb 21, 2020
c79c51a
added user detail file
udhay24 Feb 21, 2020
5163ac8
added login and database support
udhay24 Feb 22, 2020
814d274
updated the emergency contact number to be dynamic
udhay24 Feb 22, 2020
a1aea1c
dashboard and custom message page dine
gauravrai1 Feb 22, 2020
9c13ee1
print a toast message in with the no of devices
udhay24 Feb 22, 2020
872c355
login screen
gauravrai1 Feb 22, 2020
eed4973
added user detail file
udhay24 Feb 21, 2020
2b76d7d
added login and database support
udhay24 Feb 22, 2020
ea68a2d
updated the emergency contact number to be dynamic
udhay24 Feb 22, 2020
68acccc
print a toast message in with the no of devices
udhay24 Feb 22, 2020
460c5c7
updated to new ui
udhay24 Feb 22, 2020
925dd2d
added user detail file
udhay24 Feb 21, 2020
244e798
added login and database support
udhay24 Feb 22, 2020
ab6ba6d
updated the emergency contact number to be dynamic
udhay24 Feb 22, 2020
2ba702f
print a toast message in with the no of devices
udhay24 Feb 22, 2020
cfd0590
Merge remote-tracking branch 'origin/master'
udhay24 Feb 22, 2020
7c65023
contacts
gauravrai1 Feb 22, 2020
580f150
added user detail file
udhay24 Feb 21, 2020
98bba34
added login and database support
udhay24 Feb 22, 2020
da0e973
updated the emergency contact number to be dynamic
udhay24 Feb 22, 2020
154abb5
print a toast message in with the no of devices
udhay24 Feb 22, 2020
62cbf90
updated to new ui
udhay24 Feb 22, 2020
b50a2db
added user detail file
udhay24 Feb 21, 2020
5d086fc
added login and database support
udhay24 Feb 22, 2020
0b72dbf
updated the emergency contact number to be dynamic
udhay24 Feb 22, 2020
ea0bd35
print a toast message in with the no of devices
udhay24 Feb 22, 2020
5763bd8
added user detail file
udhay24 Feb 21, 2020
a10299c
added login and database support
udhay24 Feb 22, 2020
509c910
updated the emergency contact number to be dynamic
udhay24 Feb 22, 2020
bbffdf4
print a toast message in with the no of devices
udhay24 Feb 22, 2020
85f698a
added emergency contact flow
udhay24 Feb 22, 2020
e1288ed
Merge remote-tracking branch 'origin/master'
udhay24 Feb 22, 2020
45c235f
added location support
udhay24 Feb 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

116 changes: 116 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
# disaster-management
Lynk Hackathon 2019 - Disaster Management

Helfy App
an android app that creates a mesh network to stimulate a decentralized network communication which is build upon wifi, bluetooth, network, sms and the internet. this network enables the users to perform complex message transfer and the message analysis on the every device connected to the network to help them in times of emergency.

Project Specification:
1. the app is entirely written in kotlin.
2. uses bridgify and hype mesh sdk to connect with near by devices
3. custom location class component to indentify users location and even without interent or any network connection
4. uses twilio to send sms and what's app message to the emergency contact
5. uses android architecture components like, livedata coroutines, viewmodel, navigation
4. uses room library to collect and store the nearby devices id.

app features:
1. send emergency sms to others without network or internet.
2. request for food or medicien support through the network.
3. enable volunteers to join the network easily and help the victims
4. send out a alert message to nearby devices, to help the person in danger
5. send network call request to volunteer server to inform about the situation and help needed.
6. all the payload consists of location of the user
7. allow anyone to work as a volunteer on the fly without any registration
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
91 changes: 91 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}

packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
}

dependencies {
def lifecycle_version = "2.1.0"
def nav_version = "2.1.0"
def google_play_service = '17.0.0'

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation "androidx.core:core-ktx:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.bridgefy:android-sdk:1.1.24'
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
// For Kotlin use lifecycle-viewmodel-ktx
// Kotlin
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'

//twilio for sms
implementation group: "com.twilio.sdk", name: "twilio", version: "7.42.0"

implementation "com.google.android.gms:play-services-location:${google_play_service}"
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.1.0'

def room_version = "2.2.0"

implementation "androidx.room:room-runtime:$room_version"
kapt "androidx.room:room-compiler:$room_version"
// For Kotlin use kapt instead of annotationProcessor

// optional - Kotlin Extensions and Coroutines support for Room
implementation "androidx.room:room-ktx:$room_version"

// Animations
implementation 'com.airbnb.android:lottie:3.0.7'
implementation 'com.wang.avi:library:2.1.3'
implementation 'com.skyfishjy.ripplebackground:library:1.0.1'


}
repositories {
mavenCentral()
maven {
url "http://maven.bridgefy.com/artifactory/libs-release-local"
artifactUrls = ["http://jcenter.bintray.com/"]
}
}
32 changes: 32 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keep class com.bridgefy.sdk.** { *; }
-dontwarn com.bridgefy.sdk.**
-dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepnames class com.fasterxml.jackson.** { *; }
-dontwarn com.fasterxml.jackson.databind.**
-keep class org.codehaus.** { *; }
-keepclassmembers public final enum org.codehaus.jackson.annotate.JsonAutoDetect$Visibility {
public static final org.codehaus.jackson.annotate.JsonAutoDetect$Visibility *; }
-keep class org.msgpack.core.**{ *; }
-dontwarn org.msgpack.core.**
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.example.myapplication;

import android.content.Context;

import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();

assertEquals("com.example.myapplication", appContext.getPackageName());
}
}
Loading