Skip to content

Commit eaa193c

Browse files
authored
Merge branch 'master' into master
2 parents a9fd658 + 36d6901 commit eaa193c

20 files changed

Lines changed: 577 additions & 34 deletions

File tree

.expo/packager-info.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"expoServerPort": null,
3+
"packagerPort": null,
4+
"packagerPid": null,
5+
"expoServerNgrokUrl": null,
6+
"packagerNgrokUrl": null,
7+
"ngrokPid": null
8+
}

.expo/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"hostType": "tunnel",
3+
"lanType": "ip",
4+
"dev": true,
5+
"strict": false,
6+
"minify": false,
7+
"urlType": "exp",
8+
"urlRandomness": null
9+
}

App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { Component } from 'react'
22
import { Screens } from './src/config/router'
3-
4-
var HockeyApp = require('react-native-hockeyapp')
3+
// const TestFairy = require('react-native-testfairy')
4+
const HockeyApp = require('react-native-hockeyapp')
55

66
class App extends Component {
77
constructor () {

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Software
1919
* Native geolocation
2020
* Communications library to send SMS
2121

22-
2322
## Getting Started
2423

2524
To see a working version of the phone app, you will need to
@@ -32,10 +31,8 @@ To see a working version of the phone app, you will need to
3231

3332

3433
## ERD
35-
3634
<img src="src/images/ERD.png">
3735

38-
3936
## Wireframe
4037

4138
<img src="src/images/1Home.png" height="400"><img src="src/images/2CreateProfilePage.png" height="400"><img src="src/images/3Sensor.png" height="400"><br>
@@ -61,7 +58,6 @@ To see a working version of the phone app, you will need to
6158
2. Will app running in background continually receive bluetooth data?
6259
3. iOS doe not allow apps to send messages without prompting user to click 'send'
6360

64-
6561
## Future Plans
6662

6763
1. Deployment to Play Store
@@ -70,7 +66,6 @@ To see a working version of the phone app, you will need to
7066
4. 'Forget Password' feature
7167
5. Provide settings page to enable users to amend details such as emergency contact, allergies and health status
7268

73-
7469
## Authors
7570

7671
* **Wan Zhen** - [thecodingdog](https://github.com/thecodingdog)

android/app/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def enableProguardInReleaseBuilds = false
9191

9292
android {
9393
compileSdkVersion 23
94-
buildToolsVersion '25.0.0'
94+
buildToolsVersion "23.0.1"
9595

9696
defaultConfig {
9797
applicationId "com.androidtest"
@@ -137,13 +137,14 @@ dependencies {
137137
compile project(':react-native-bluetooth-serial')
138138
compile project(':react-native-maps')
139139
compile project(':react-native-vector-icons')
140+
compile project(':react-native-sms-android')
141+
compile project(':react-native-maps')
142+
compile project(':react-native-hockeyapp')
140143
compile fileTree(dir: "libs", include: ["*.jar"])
141144
compile "com.android.support:appcompat-v7:23.0.1"
142145
compile "com.facebook.react:react-native:+" // From node_modules
143-
compile project(':react-native-sms-android')
144146
compile 'com.facebook.fresco:fresco:1.5.0'
145147
compile 'com.facebook.fresco:animated-gif:1.5.0'
146-
compile project(":react-native-hockeyapp")
147148
}
148149

149150
// Run this once to be able to run the application with BUCK

android/app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
88
<uses-permission android:name="android.permission.SEND_SMS" />
99
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
10+
<activity android:name="net.hockeyapp.android.UpdateActivity" />
11+
<activity android:name="net.hockeyapp.android.FeedbackActivity" />
1012
<uses-permission android:name="android.permission.BLUETOOTH" />
1113
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
12-
14+
1315
<uses-sdk
1416
android:minSdkVersion="16"
1517
android:targetSdkVersion="22" />
@@ -31,15 +33,9 @@
3133
</intent-filter>
3234
</activity>
3335
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
34-
<activity android:name="net.hockeyapp.android.UpdateActivity" />
35-
<activity android:name="net.hockeyapp.android.FeedbackActivity" />
36-
3736
<meta-data
38-
android:name="com.google.android.geo.API_KEY"
39-
android:value="AIzaSyBgoQ72_YnhMWOHjgFFEQuxW_w8KjRw970
40-
"/>
41-
<!-- <meta-data android:name="net.hockeyapp.android.appIdentifier" android:value="${499de5c783a145babda49068385acdb2}" /> -->
42-
37+
android:name="com.google.android.geo.API_KEY"
38+
android:value="AIzaSyBgoQ72_YnhMWOHjgFFEQuxW_w8KjRw970"/>
4339
</application>
4440

4541
</manifest>

android/app/src/main/java/com/androidtest/MainApplication.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
import com.facebook.react.ReactApplication;
66
import com.showlocationservicesdialogbox.LocationServicesDialogBoxPackage;
77
import com.rusel.RCTBluetoothSerial.RCTBluetoothSerialPackage;
8+
import com.rhaker.reactnativesmsandroid.RNSmsAndroidPackage;
89
import com.airbnb.android.react.maps.MapsPackage;
910
import com.oblador.vectoricons.VectorIconsPackage;
1011
import com.facebook.react.ReactNativeHost;
1112
import com.facebook.react.ReactPackage;
1213
import com.facebook.react.shell.MainReactPackage;
1314
import com.facebook.soloader.SoLoader;
1415

15-
import com.rhaker.reactnativesmsandroid.RNSmsAndroidPackage;
16+
import com.slowpath.hockeyapp.RNHockeyAppModule;
17+
import com.slowpath.hockeyapp.RNHockeyAppPackage;
1618

1719
import com.slowpath.hockeyapp.RNHockeyAppModule;
1820
import com.slowpath.hockeyapp.RNHockeyAppPackage;
@@ -34,7 +36,7 @@ protected List<ReactPackage> getPackages() {
3436
new RNHockeyAppPackage(MainApplication.this),
3537
new RNSmsAndroidPackage(),
3638
new MainReactPackage(),
37-
new LocationServicesDialogBoxPackage(),
39+
new LocationServicesDialogBoxPackage(),
3840
new RCTBluetoothSerialPackage(),
3941
new MapsPackage(),
4042
new VectorIconsPackage()

android/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.3.3'
8+
classpath 'com.android.tools.build:gradle:2.2.3'
99
classpath 'net.hockeyapp.android:HockeySDK:4.1.0'
10-
1110
// NOTE: Do not place your application dependencies here; they belong
1211
// in the individual module build.gradle files
1312
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Wed Sep 06 17:39:14 SGT 2017
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
zipStoreBase=GRADLE_USER_HOME
54
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

android/settings.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ include ':react-native-maps'
77
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
88
include ':react-native-vector-icons'
99
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
10-
11-
include ':app'
12-
1310
include ':react-native-sms-android'
14-
project(':react-native-sms-android').projectDir = new File(settingsDir, '../node_modules/react-native-sms-android/android')
15-
16-
include ':react-native-hockeyapp', ':app'
11+
project(':react-native-sms-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sms-android/android')
12+
include ':react-native-maps'
13+
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
14+
include ':react-native-hockeyapp'
1715
project(':react-native-hockeyapp').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-hockeyapp/android')
16+
17+
include ':app'

0 commit comments

Comments
 (0)