Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
206 commits
Select commit Hold shift + click to select a range
16a6142
First attempt at migrating to android studio and gradle. #76 #51
jmatsushita Apr 22, 2015
d558600
Clean up, updated gitignore
jmatsushita Apr 28, 2015
d65265a
Changed trigger window to 6 secs and added one click.
jmatsushita Apr 28, 2015
7d45c4d
Fixed access to nested fragments and diplaying phone numbers in conta…
niccs Jul 15, 2015
e93a292
Merge pull request #86 from niccs/gradle
jmatsushita Aug 3, 2015
7216673
Merge pull request #92 from PanicInitiative/master
jmatsushita Sep 8, 2015
7927a0d
Merge branch 'gradle' into dev
niccs Sep 9, 2015
1339b56
Merge pull request #94 from niccs/gradle
niccs Sep 9, 2015
80aa5eb
Merge pull request #93 from PanicInitiative/dev
niccs Sep 9, 2015
2d47383
changed the gradle plugin version to 1.2.3
niccs Sep 9, 2015
58ada08
modified the compilesdk and targetsdk version to API 21
niccs Sep 9, 2015
18abcd6
Merge branch 'gradle' of https://github.com/PanicInitiative/PanicButt…
niccs Sep 9, 2015
a1b1004
Merge pull request #95 from PanicInitiative/gradle
niccs Sep 9, 2015
236c2bb
Changed disguise screen unlock time from 5 sec to 3 sec
niccs Sep 10, 2015
aa86369
Merge pull request #96 from PanicInitiative/feature/PB-90
niccs Sep 10, 2015
f72c825
Modified the intent action for contact picker screen and handled the …
niccs Sep 11, 2015
809977b
Merge pull request #97 from PanicInitiative/feature/PB-57
niccs Sep 11, 2015
a35ac20
Fixed nested fragments access for Message UI Screen
niccs Sep 14, 2015
f236ca5
Merge pull request #99 from PanicInitiative/feature/PB-98
niccs Sep 14, 2015
58d6f17
Added the workflow for letting the users change the Stop alert messa…
niccs Sep 15, 2015
cb40992
Merge pull request #100 from PanicInitiative/feature/PB-69
niccs Sep 15, 2015
b63ca53
Added Stop Alert message header string for locale en
niccs Sep 15, 2015
900d398
Merge pull request #101 from PanicInitiative/feature/PB-69
niccs Sep 15, 2015
a3916aa
Handling of nested fragments programatically
niccs Sep 16, 2015
f4d573f
Merge pull request #102 from PanicInitiative/feature/PB-81
niccs Sep 16, 2015
cf16622
Saved stop alert message is fetched while sending stop alert message
niccs Sep 17, 2015
9318323
Saved stop alert message is fetched while sending stop alert message
niccs Sep 17, 2015
af55953
Merge pull request #106 from PanicInitiative/feature/PB-69
niccs Sep 17, 2015
4b5d76c
Delete MyTextView.java
niccs Sep 17, 2015
53f5084
Updating .gitignore
jmatsushita Sep 18, 2015
04eaa36
More .gitignore changes for android studio
jmatsushita Sep 18, 2015
bb15b01
Fixing .gitignore
jmatsushita Sep 18, 2015
805bbda
Bumped version to prepare for release
jmatsushita Sep 18, 2015
d3ffa83
Delete sms_settings_fragment.xml
niccs Sep 18, 2015
6829f11
Delete roboguice.xml
niccs Sep 18, 2015
d97943d
Modified build.gradle to ignore missing transltions
niccs Sep 18, 2015
7dfc193
removed fragment tag specific attributes from layout files
niccs Sep 18, 2015
fa48948
Refactoring MyTextview usgae to MessageTextView
niccs Sep 18, 2015
07bb9e5
Merge pull request #110 from PanicInitiative/feature/PB-69
niccs Sep 18, 2015
2372895
Merge pull request #111 from PanicInitiative/feature/PB-109
niccs Sep 18, 2015
8b884a7
Added Changelog.md draft version
niccs Sep 20, 2015
7967764
Merge pull request #112 from PanicInitiative/feature/PB-108
niccs Sep 20, 2015
67ccea8
Update CHANGELOG.md
niccs Sep 21, 2015
0f3ac2e
Update CHANGELOG.md
niccs Sep 21, 2015
cd35679
Update CHANGELOG.md
niccs Sep 21, 2015
d939099
Merge pull request #114 from PanicInitiative/feature/PB-108
niccs Sep 21, 2015
2cd9a8c
Update CHANGELOG.md
niccs Sep 21, 2015
230f663
Modifications for robolectric 3.0 specific Apis
niccs Sep 25, 2015
7766e42
Changes to test cases related to migration to robolectric 3.0
niccs Sep 29, 2015
6415f81
Merge pull request #115 from PanicInitiative/feature/PB-113
niccs Sep 29, 2015
dce6a89
Adding dependency setting for robolectric 3.0
niccs Sep 29, 2015
8f12a52
Merge pull request #116 from PanicInitiative/feature/PB-113
niccs Sep 29, 2015
9abff71
First step in configuring travis build file
niccs Sep 29, 2015
db34eaa
more in configuring travis build file
niccs Sep 29, 2015
2c0a9a8
more in configuring travis build file
niccs Sep 29, 2015
1365efd
more in configuring travis build file
niccs Sep 29, 2015
736e268
more in configuring travis build file
niccs Sep 29, 2015
179e48e
Delete local.properties
niccs Sep 29, 2015
8ec8dd8
more in configuring travis build file
niccs Sep 29, 2015
46f4bb5
Merge branch 'feature/PB-25' of https://github.com/PanicInitiative/Pa…
niccs Sep 29, 2015
0fd6b2b
removing .idea folder which is INTELLIJ specific
niccs Sep 30, 2015
024c207
adding suppor libraries
niccs Sep 30, 2015
1176aea
ignoring lint errors
niccs Sep 30, 2015
07252b7
updating lint errors
niccs Sep 30, 2015
31b0501
build configuration changes
niccs Sep 30, 2015
73cf7db
build configuration changes
niccs Sep 30, 2015
a7d1b4b
build configuration changes
niccs Sep 30, 2015
a05c990
Merge pull request #120 from PanicInitiative/feature/PB-25
niccs Sep 30, 2015
584c644
Revert "removing .idea folder which is INTELLIJ specific"
niccs Oct 4, 2015
00805ac
Merge pull request #121 from PanicInitiative/feature/PB-25
niccs Oct 5, 2015
7d81bfc
first changes to include Crashlytics from Fabric API
niccs Oct 5, 2015
ffaacdb
Changes for fabric-crashlytics integration and updating build:gradle …
niccs Oct 6, 2015
c831c85
Merge pull request #122 from PanicInitiative/feature/PB-105
niccs Oct 6, 2015
879064c
Changes for fetching Locale specific language on install
niccs Oct 7, 2015
e5fa498
changing the alert gif with latest 5 key press
niccs Oct 7, 2015
038913f
Merge pull request #125 from PanicInitiative/feature/PB-107
niccs Oct 7, 2015
0ea37c9
Refactoring Home activity for logging usage and constants
niccs Oct 7, 2015
bc4909a
Refactoring Home activity for logging usage and constants
niccs Oct 7, 2015
f7bdd43
added language support
niccs Oct 12, 2015
e7a4de4
added language support -code clean up
niccs Oct 12, 2015
7683caa
Merge pull request #124 from PanicInitiative/feature/PB-103
niccs Oct 12, 2015
1431ac3
first changes for adding confirm pin box
niccs Oct 13, 2015
a839a5e
Merge pull request #127 from PanicInitiative/feature/PB-104
niccs Oct 13, 2015
6559927
documentation for configuring PB in tavis CI server
niccs Oct 14, 2015
4d961f4
Merge pull request #128 from PanicInitiative/feature/PB-91
niccs Oct 14, 2015
21a13af
updated the alert gif for all languages
niccs Oct 19, 2015
930847b
Travis document in markdown format
niccs Oct 20, 2015
665a12a
Removed .docx format
niccs Oct 20, 2015
dcff32b
Merge pull request #131 from PanicInitiative/feature/PB-91
niccs Oct 20, 2015
7d52911
Fabric related changes
niccs Oct 20, 2015
a6f4cfa
Merge pull request #132 from PanicInitiative/feature/PB-105
niccs Oct 20, 2015
2348c1b
Adding changes to make version number String for using Tansifex
niccs Oct 21, 2015
72ad04c
Merge pull request #133 from PanicInitiative/feature/PB-82
niccs Oct 21, 2015
6c54f6e
First set of changes for improving performance of initial content loa…
niccs Nov 9, 2015
115f1bd
Changes to improve performance and refactoring the code
niccs Nov 11, 2015
e9fca8c
resolving merge conflicts
niccs Nov 11, 2015
eac7b0b
resolving conflicts
niccs Nov 15, 2015
ce5b73a
Merge conflicts resolved
niccs Nov 16, 2015
24fc1aa
first changes to disable power button trigger
niccs Dec 9, 2015
bcbc5c8
changes to disable power button trigger in Disguise screen
niccs Dec 9, 2015
42226b3
removed comments
niccs Dec 10, 2015
a340354
removing comments
niccs Dec 10, 2015
148aef4
Merge pull request #141 from PanicInitiative/feature/PB-80
niccs Dec 10, 2015
274c515
first changes to add advanced setting screen and various vibration pa…
niccs Dec 15, 2015
01cec94
Changes for finalizing vibration patterns
niccs Dec 16, 2015
2d2236f
changes of vibrations patterns in training screens
niccs Dec 16, 2015
eaa3203
first changes for -redo testing vibration settings
niccs Dec 17, 2015
3448375
first set of changes for #80 in Advanced settings
niccs Dec 18, 2015
b455c25
Fixing trnaslation strings
niccs Dec 21, 2015
1ce27fa
fixed translation issues #80, #139, #140
niccs Dec 21, 2015
0066f5b
remove Android Studio files from git
eighthave Dec 21, 2015
cb7478f
make ./gradlew verify the gradle binary it downloads
eighthave Dec 21, 2015
6cb94d5
use gradle witness to verify included jars
eighthave Dec 21, 2015
f92db01
run travis-ci tests on emulator
eighthave Dec 21, 2015
52efaf4
Applying @eighthave suggestions on android studio files on this branc…
jmatsushita Jan 8, 2016
afa259b
Merge branch 'pr/156' into dev
jmatsushita Jan 8, 2016
d3c2a74
Updated gradle verify checksums
jmatsushita Jan 8, 2016
28f8b93
Bumping sdk up to try and solve travis build problem
jmatsushita Jan 8, 2016
e594600
Changed dev badge to travis build. Currently failing for the right re…
jmatsushita Jan 8, 2016
e085e5e
Correcting typo. Fixes #158.
jmatsushita Jan 8, 2016
8fcacb9
A few updates to the documentation to start addressing #159
jmatsushita Jan 8, 2016
a6e368f
Update .travis.yml
niccs Jan 13, 2016
b85c47d
#139 #171 Coded redo-training excercise
niccs Jan 14, 2016
afdc3a1
Update .travis.yml
niccs Jan 14, 2016
58f8152
resolving merge conflicts
niccs Jan 14, 2016
4032276
fixing test cases for travis build #139
niccs Jan 14, 2016
8885a91
fixing test cases for travis build #139
niccs Jan 14, 2016
a7787b3
Merge branch 'feature/PB-139' of https://github.com/PanicInitiative/P…
niccs Jan 14, 2016
6f8dabb
fixing test cases for travis build #139
niccs Jan 14, 2016
a69772a
not required in app folder
niccs Jan 15, 2016
b7d6173
updating build tools corresponding to 23
niccs Jan 15, 2016
b116968
updating .travis.yml with dev changes
niccs Jan 15, 2016
1fcb02a
commenting the emulator starting part
niccs Jan 15, 2016
da5b789
resolving translation issues
niccs Jan 15, 2016
157cbee
merge conflicts #139
niccs Jan 15, 2016
703aa83
configuring default 7 click behavior. #178
niccs Jan 18, 2016
e0becd9
#178 coded new 7 initial press default trigger configurations
niccs Jan 18, 2016
cc1b31d
commented robolectric tests #178
niccs Jan 18, 2016
9e7ba47
Merge pull request #181 from PanicInitiative/feature/PB-178
niccs Jan 18, 2016
4b78d0c
#179 UX changes for selecting custom mode
niccs Jan 19, 2016
e8be8ef
#179 changes for redo training
niccs Jan 19, 2016
2c695cf
#179 redotraining fix
niccs Jan 20, 2016
be96e0c
Merge pull request #182 from PanicInitiative/feature/PB-179
niccs Jan 20, 2016
babeb11
#155 testing vibration duration code removed for 1.5.0 release
niccs Jan 21, 2016
3e22903
Merge pull request #184 from PanicInitiative/feature/PB-155
niccs Jan 21, 2016
e3456e5
#155, earlier #173 fix done on same branch
niccs Jan 21, 2016
f6b9da7
Merge pull request #185 from PanicInitiative/feature/PB-155
niccs Jan 21, 2016
7da5dd0
#80 implementation of notification process when power button alarm is…
niccs Jan 25, 2016
44b7418
Merge pull request #186 from PanicInitiative/feature/PB-80
niccs Jan 25, 2016
2336790
#143 changes to play training in case of 1.5 update version no=10
niccs Jan 27, 2016
61e3a38
Fixing test cases for new changes. #143
niccs Jan 27, 2016
e8aa7cc
Merge pull request #189 from PanicInitiative/feature/PB-143
niccs Jan 31, 2016
de6fc46
Merge pull request #190 from PanicInitiative/dev
niccs Jan 31, 2016
4232339
#178 advanced settings changes
niccs Feb 1, 2016
12db4a5
#178
niccs Feb 1, 2016
e03ab26
#178, modified advances settings
niccs Feb 1, 2016
3e09560
Merge pull request #191 from PanicInitiative/feature/PB-178
niccs Feb 1, 2016
a4c4554
#147, removed about,helpand language-settings from json files
niccs Feb 1, 2016
e723f2b
Merge pull request #192 from PanicInitiative/feature/PB-147
niccs Feb 1, 2016
a55d77b
#187 removed disguise trigger screen for alarm
niccs Feb 1, 2016
c14ea5e
Merge pull request #193 from PanicInitiative/feature/PB-187
niccs Feb 1, 2016
1e7521b
Changed animation to 7 presses
jmatsushita Feb 1, 2016
baebffe
Changed instances of Alert into Alarm as per #176
jmatsushita Feb 1, 2016
aa78168
Added language about acting fast in emergencies per #161
jmatsushita Feb 1, 2016
c8b6274
Changed order of security tip per #162
jmatsushita Feb 1, 2016
b8ed7d2
Adding animations for 3 trigger options, 7 presses, 5 presses with co…
jmatsushita Feb 1, 2016
2686852
Added this to the toast that is displayed when training and retrainin…
jmatsushita Feb 1, 2016
9565458
Changed alert to alarm when relevant #165
jmatsushita Feb 1, 2016
5021dc8
Closes #172
jmatsushita Feb 1, 2016
c1c88ba
Changed wording. Closes #167
jmatsushita Feb 1, 2016
6736bfb
Typos and consistency. #168
jmatsushita Feb 1, 2016
edd6f9c
Fixed stray double quote in warning string
jmatsushita Feb 1, 2016
557ddc0
Ok. Closes #169
jmatsushita Feb 1, 2016
5c9a6c1
#147 added about help in first step
niccs Feb 1, 2016
11939a1
Revert "#147 added about help in first step"
niccs Feb 1, 2016
e3672b9
Merge pull request #197 from PanicInitiative/dev
niccs Feb 1, 2016
9ef5654
#147 added about help in first step
niccs Feb 1, 2016
0d86073
Merge pull request #198 from PanicInitiative/feature/PB-147
niccs Feb 1, 2016
f0bafb6
Merge pull request #199 from PanicInitiative/dev
niccs Feb 2, 2016
e111af6
#178 modifying settings and adding logs
niccs Feb 2, 2016
92d953d
Merge pull request #200 from PanicInitiative/feature/PB-178
niccs Feb 2, 2016
5f432f9
#69 fixing the stop alert message on first install
niccs Feb 2, 2016
5eeab08
Merge pull request #202 from PanicInitiative/feature/PB-69
niccs Feb 2, 2016
86a9198
Merge pull request #204 from PanicInitiative/dev
niccs Feb 2, 2016
ba3fb7b
Merge pull request #205 from PanicInitiative/dev
niccs Feb 3, 2016
72d7eb2
small fix to update 1.5 release flow #143
niccs Feb 3, 2016
ac9493c
Merge pull request #206 from PanicInitiative/feature/PB-143
niccs Feb 3, 2016
e19e65e
#187, #143 Added 1.5 update notification and removed disguise training
niccs Feb 8, 2016
62f7ca8
Merge pull request #207 from PanicInitiative/feature/PB-143
niccs Feb 8, 2016
a724be4
Merge pull request #209 from PanicInitiative/dev
niccs Feb 23, 2016
d6ae3a2
#178 Advanced settings changes for new sub screen
niccs Mar 2, 2016
02f46f7
#178 few more constant changes
niccs Mar 2, 2016
e3c1276
#178 few more constant changes
niccs Mar 2, 2016
5a30726
#178 fixing the mapping of shared preference keys
niccs Mar 2, 2016
71142f7
#178 fixing transalaton file
niccs Mar 2, 2016
044c114
Merge pull request #210 from PanicInitiative/feature/PB-178
niccs Mar 3, 2016
e8ca2f3
Merge branch 'dev' into feature/PB-107
niccs Mar 8, 2016
80ff452
#107 code to configure different gif files for different trigger pat…
niccs Mar 10, 2016
ff33ae4
#107 removing comments
niccs Mar 14, 2016
cba6e8a
Merge pull request #211 from PanicInitiative/feature/PB-107
niccs Mar 14, 2016
dd34326
Fixing support library features appcompat specific
niccs Mar 15, 2016
69f3527
Merge branch 'dev' of https://github.com/PanicInitiative/PanicButton …
niccs Mar 15, 2016
e6e61a0
#178 changes to handle the Settings subscreen for advanced trigger se…
niccs Mar 21, 2016
5908d40
#178 changing custom summary dynamically
niccs Mar 21, 2016
abc3088
#178 changes to handle custon summary dynamically
niccs Mar 21, 2016
4a27cfa
Merge pull request #213 from PanicInitiative/feature/PB-178
niccs Mar 22, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 26 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,37 @@ local.properties
.classpath
.project

# Intellij files
.idea/
*.iml
# Android Studio files
out/
**.DS_Store
target/
tmp/
coverage.ec
.idea/libraries
.idea/tasks.xml
.idea/vcs.xml
.idea/workspace.xml
.idea/gradle.xml

# Gradle files
.gradle/
.gradletasknamecache
build/

# Proguard folder generated by Eclipse
proguard/

# calabash files
# Log Files
*.log

/test_servers/
/*.png
*.html
cucumber.json
*.keystore
calabash_settings
###IntelliJ###

*.iml
*.ipr
*.iws
.idea/

# Crashlytics
res/values/com_crashlytics_export_strings.xml
# Lint
lint-report.html
lint-report_files/
lint_result.txt
4 changes: 0 additions & 4 deletions .settings/org.eclipse.core.resources.prefs

This file was deleted.

5 changes: 0 additions & 5 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions .settings/org.eclipse.m2e.core.prefs

This file was deleted.

54 changes: 54 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

language: android
jdk: oraclejdk7

env:
global:
# switch glibc to a memory conserving mode
- MALLOC_ARENA_MAX=2
# wait 5 minutes for adb to connect to emulator. Travis-ci cancels a
# stalled build after 10 minutes, so this should be shorter than that so
# there is time for the build to report the error.
- ADB_INSTALL_TIMEOUT=5

android:
components:
- tools
- platform-tools
- extra-android-m2repository
- build-tools-23.0.2
- android-23
licenses:
# only approve the Android software licenses, they match sources
# the Google licenses mean proprietary software with binary blobs
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'


licenses:
# only approve the Android software licenses, they match sources
# the Google licenses mean proprietary software with binary blobs
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'

sudo: false
notifications:
email: false

script:
# 'assemble' everything and run all checks that do not require a device/emulator
# first with the wrapper, then with the system gradle
- ./gradlew clean build
- gradle clean build
# start the emulator after the build to conserve memory

#- echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
# - emulator -avd test -no-skin -no-audio -no-window &
#- android-wait-for-emulator
#- adb shell input keyevent 82 &
# now run the tests that require a device/emulator
#- gradle connectedCheck


after_failure:
- find * -name lint-results.xml | xargs cat
75 changes: 75 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# **Change Log**

All notable changes to this project will be documented in this file.
Unreleased


## **[v.1.4.1] - 2015-09-21**

### **Added**

- Added “Stop alert message” box in message screen once the setup is done.#69

### **Changed**

- Handling the nested fragments for contact screen programatically. #81
- Handling the nested fragments for message screen programatically. #98
-Long press time is reduced from 5 seconds to 3 seconds in disguise screen.#90

### **Fixed**

- On some devices, the contact selection screen was malfunctioning. #57

## **[v.1.4.0](https://github.com/PanicInitiative/PanicButton/releases/tag/v1.4.0) - 2015-04-21**

### **Added**

- Added “Stop alert message” box in message screen once the setup is done.#69

### **Changed**

- The trigger mechanism has changed and now requires a confirmation press
- When the alert is manually deactivated (after entering your PIN) your contacts will receive a message which says "The alert has been stopped"
- The information text is clearer regarding what Panic Button does. When you trigger the alert, Panic Button will start sending a message with your location every 5 minutes.
- German translation generously contributed by https://github.com/emdete

### **Fixed**

- One some devices, the alert activates by itself in the middle of phone calls (it activates without triggering it with the power button or the calc app) #38
- Shortcut was created by Google Play. #35

## **[v.1.4.0 -alpha] (https://github.com/PanicInitiative/PanicButton/releases/tag/1.4.0-alpha)- 2015-04-06**

### **Changed**
- The trigger mechanism has changed and now requires a confirmation press.
- The information text is clearer regarding what Panic Button does. When you trigger the alert, Panic Button will start sending a message with your location every 5 minutes

### **Fixed**
- On some devices, the alert activates by itself in the middle of phone calls (it activates without triggering it with the power button or the calc app). #38
- Shortcut was created by Google Play #35


## **[v.1.3.1-alpha] (https://github.com/PanicInitiative/PanicButton/releases/tag/v1.3.1)- 2014-08-06**

### **Fixed**

- On some devices, the alert activates by itself in the middle of phone calls (it activates without triggering it with the power button or the calc app). #38
- Shortcut was created by Google Play #35


## **[v.1.3.0] (https://github.com/PanicInitiative/PanicButton/releases/tag/v1.3.0)- 2014-06-23**

### **Changed**

- The first message is now the customised message, while subsequent ones only contain the location or a location pending message #41
- Clicking Done on the keyboard when entering the PIN automatically validates it. #27
- Link to map is now using https: #28
- Removed Content API to reduce the attack surface. #40
- The help pages now contain more information about the risk of contact and message exposure #33

### **Fixed**

- Clicking on the Security Tips link in the checklist now links properly to the Help section. #30
- Fixed bug where two SMS were sent when the alert was active & location was retrieved for the first time
- Fixed problem where pushing the back button from the checklist exited to the calculator disguise.

16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Master [![Build Status](https://ci.iilab.org/buildStatus/icon?job=panic-button)](https://ci.iilab.org/job/panic-button/) Dev [![Build Status](https://ci.iilab.org/buildStatus/icon?job=panic-button-dev)](https://ci.iilab.org/job/panic-button-dev/) [![Stories in Ready](https://badge.waffle.io/PanicInitiative/PanicButton.png?label=ready&title=Ready)](https://waffle.io/PanicInitiative/PanicButton)
Master [![Build Status](https://ci.iilab.org/buildStatus/icon?job=panic-button)](https://ci.iilab.org/job/panic-button/) Dev [![Build Status](https://travis-ci.org/PanicInitiative/PanicButton.svg?branch=dev)](https://travis-ci.org/PanicInitiative/PanicButton) [![Stories in Ready](https://badge.waffle.io/PanicInitiative/PanicButton.png?label=ready&title=Ready)](https://waffle.io/PanicInitiative/PanicButton)

# Panic Button

Expand Down Expand Up @@ -36,18 +36,22 @@ A huge thanks is also owed to the many programmers and designers who have donate

## Technology

### Requirements
### Security

You need an Android phone with a minimum version of 2.3.3
Read [our security documentation](SECURITY.md) to understand our approach.

### Building
### Requirements

See the [notes to build your own APK](./docs/BUILD.md)
You need an Android phone with a minimum version of 2.3.3

### Contributing

See the [issues tagged with "Help Wanted"](https://github.com/iilab/PanicButton/labels/help%20wanted).

~~See the [notes to setup a development environment](./docs/DEVELOPMENT.md)~~ Outdated. Migration to Android Studio/Gradle in progress see #76.
Migration to Android Studio/Gradle has been completed on the ```dev``` branch which will be merged with ```master``` on the next public release.

Code contributions should be sent via github from [feature](http://codeinthehole.com/writing/pull-requests-and-other-good-practices-for-teams-using-github/) [branches](https://guides.github.com/introduction/flow/) (named feature/__descriptive_name_of_feature__) as pull requests [as explained here](https://help.github.com/articles/using-pull-requests).

### Translations

We'e working on improving how translations are managed. Read more about this and let us know your ideas on the [dedicated github issue](https://github.com/iilab/PanicButton/issues/82)!
File renamed without changes.
File renamed without changes.
54 changes: 54 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'witness'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "org.iilab.pb"
minSdkVersion 10
targetSdkVersion 23
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

dependencies {
compile 'com.google.code.gson:gson:2.3'
compile 'com.android.support:support-v4:23.1.+'
compile 'com.android.support:preference-v7:23.1.0'
testCompile "org.robolectric:robolectric:3.0"
testCompile "org.robolectric:shadows-support-v4:3.0"
testCompile 'junit:junit:4.12'
testCompile "org.mockito:mockito-core:1.9.5"
compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
}
}

// generate using: `gradle -q calculateChecksums | sort -V`
dependencyVerification {
verify = [
'com.google.code.gson:gson:9466512cd8cf0bd66a8a3661685373f7b3deafded11096e044926ff5c82c7a4c',
'com.android.support:support-v4:5c7dceb6c824089fe80f502e5206264048ef8bffa4e8ddeab180b81723e79b7f',
'com.android.support:preference-v7:f6d15f2bf404321f6e820eaf2086b67aaa849afdda5c9a69ec7a282b3d76fdb8',
'com.crashlytics.sdk.android:crashlytics:5bbf76250f6349baf173e082b4f7d14e777aa5a7510f9bea267b445bc439247d',
'com.android.support:support-annotations:f347a35b9748a4103b39a6714a77e2100f488d623fd6268e259c177b200e9d82',
'com.android.support:appcompat-v7:b5783b390d1440769c9b8a7b42290523a4ff058ef2d3fb90c983973934ca115b',
'com.android.support:recyclerview-v7:464ec6e5004400a4fe0310f35343da9e5a2912386a3606db3585f7cf987c444a',
'com.crashlytics.sdk.android:answers:5af101ef6b58a26dd32cfc13f53c63c33fb2fdcdf6990241eca22e7a8c842847',
'io.fabric.sdk.android:fabric:15465f60ee6a2bb53dcf84e8dd939ce92dffbffc73bfdd3432b63fa6ee2f7bae',
'com.crashlytics.sdk.android:crashlytics-core:2f35df62420723d4a8e58f58a376fb640d11e1660656a9aa2959bb041b5b1d15',
'com.crashlytics.sdk.android:beta:6d7dce749fd70fa20adcf089aaed5d52f9e8e2a08f6666336e90a7555cee9718',
]
}
3 changes: 3 additions & 0 deletions app/fabric.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Contains API Secret used to validate your application. Commit to internal source control; avoid making secret public.
#Mon Oct 05 12:28:54 EST 2015
apiSecret=d724cfd2763e31304a850c7ef847c60de4f79ef942b15de09a8bed2e0085ce80
5 changes: 5 additions & 0 deletions app/lint.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<lint>
<issue id="MissingPrefix" severity="ignore"/>
<issue id="MissingTranslation" severity="ignore"/>
</lint>
28 changes: 20 additions & 8 deletions AndroidManifest.xml → app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="137" android:versionName="1.4.0" package="org.iilab.pb">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="18"/>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="138" android:versionName="1.4.1" package="org.iilab.pb">
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="22"/>

<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<!--<uses-permission android:name="android.permission.INTERNET" />-->
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
Expand All @@ -13,12 +12,11 @@
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
<uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<!--<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />-->
<!--<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />-->
<uses-permission android:name="android.permission.GET_TASKS"/>
<uses-permission android:name="android.permission.READ_LOGS"/>

<application android:allowBackup="true" android:debuggable="false" android:icon="@drawable/icon_calculator" android:label="@string/app_name" android:name=".common.ApplicationSettings" android:theme="@android:style/Theme.Light.NoTitleBar">
<application android:allowBackup="true" android:icon="@drawable/icon_calculator" android:label="@string/app_name"
android:name=".common.ApplicationSettings" android:theme="@style/AppTheme">

<activity android:excludeFromRecents="true" android:label="@string/app_name_setup" android:name=".HomeActivity" android:noHistory="true" android:screenOrientation="portrait">
<intent-filter>
Expand All @@ -42,11 +40,11 @@
</activity-alias>

<activity android:excludeFromRecents="true" android:name=".WizardActivity" android:screenOrientation="portrait"/>
<activity android:excludeFromRecents="true" android:name=".WizardModalActivity" android:screenOrientation="portrait" android:theme="@style/Theme.Transparent"/>
<activity android:excludeFromRecents="true" android:name=".WizardModalActivity" android:screenOrientation="portrait" android:theme="@style/Theme.AppCompat.Transparent"/>
<activity android:excludeFromRecents="true" android:launchMode="singleTask" android:name=".CalculatorActivity" android:screenOrientation="portrait"/>
<activity android:excludeFromRecents="true" android:name=".LoginActivity" android:noHistory="true" android:screenOrientation="portrait"/>
<activity android:excludeFromRecents="true" android:name=".MainActivity" android:screenOrientation="portrait"/>
<activity android:excludeFromRecents="true" android:name=".MainModalActivity" android:screenOrientation="portrait" android:theme="@style/Theme.Transparent"/>
<activity android:excludeFromRecents="true" android:name=".MainModalActivity" android:screenOrientation="portrait" android:theme="@style/Theme.AppCompat.Transparent"/>

<service android:name=".trigger.HardwareTriggerService"/>

Expand All @@ -71,6 +69,20 @@
</intent-filter>
</receiver>

<receiver android:name=".receiver.UpdateReceiver$LegacyUpdateReceiver" android:enabled="@bool/is_at_most_api_11" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<receiver android:name=".receiver.UpdateReceiver" android:enabled="@bool/is_at_least_api_12" >
<intent-filter>
<action android:name="android.intent.action.MY_PACKAGE_REPLACED" />
</intent-filter>
</receiver>
<meta-data
android:name="io.fabric.ApiKey"
android:value="869571b41e0cb553a5cb99aa56d26a0f06ca7015" />

</application>
</manifest>
2 changes: 1 addition & 1 deletion assets/help_de.json → app/src/main/assets/help_de.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"help": {
"version" : 7,
"version" : "7",
"data":[
{
"id" : "help",
Expand Down
2 changes: 1 addition & 1 deletion assets/help_en.json → app/src/main/assets/help_en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"help": {
"version" : 7,
"version" : "7",
"data":[
{
"id" : "help",
Expand Down
2 changes: 1 addition & 1 deletion assets/help_es.json → app/src/main/assets/help_es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"help": {
"version" : 7,
"version" : "7",
"data":[
{
"id" : "help",
Expand Down
2 changes: 1 addition & 1 deletion assets/help_fr.json → app/src/main/assets/help_fr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"help": {
"version" : 7,
"version" : "7",
"data":[
{
"id" : "help",
Expand Down
Loading