Skip to content

Commit 4730de3

Browse files
- CHG: Changed from icons to buttons on data source view.
- NEW: Added an "refresh" button to data source view. - DEL: Removed old Toast notification. - CHG: Updated data source view layout to work better on all screen sizes. - NEW: Added landscape layout for EULA view. - NEW: We have added a new log feature that allows you to keep a history of diseases you found. They will be tagged with GPS data if available and you can add photos and notes to them as well. Share them with your colleagues and friends via social media! - NEW: A new catalogue has been added to the side menu that shows all the diseases in a list for quicker access.
1 parent 8db9557 commit 4730de3

91 files changed

Lines changed: 4783 additions & 667 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/build
88
/captures
99
.externalNativeBuild
10+
*.apk
1011

1112
*/release.properties
1213
buntata.jks

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/app-release.apk

-6.78 MB
Binary file not shown.

app/build.gradle

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@
1515
*/
1616

1717
apply plugin: 'com.android.application'
18+
apply plugin: 'kotlin-android'
1819
//apply plugin: 'android-apt'
1920

21+
def propertiesFile = project.file("release.properties")
22+
def properties = new Properties()
23+
properties.load(new FileInputStream(propertiesFile))
24+
2025
android {
2126
signingConfigs {
2227
release {
@@ -28,14 +33,14 @@ android {
2833
enabled = true
2934
}
3035

31-
compileSdkVersion 25
32-
buildToolsVersion "25.0.2"
36+
compileSdkVersion 27
37+
buildToolsVersion '27.0.3'
3338
defaultConfig {
3439
applicationId "uk.ac.hutton.ics.buntata"
3540
minSdkVersion 16
36-
targetSdkVersion 25
37-
versionCode 13
38-
versionName "1.17.05.10"
41+
targetSdkVersion 27
42+
versionCode 17
43+
versionName "1.18.04.26"
3944
multiDexEnabled true
4045
}
4146

@@ -52,6 +57,10 @@ android {
5257
}
5358
}
5459

60+
buildTypes.each {
61+
it.manifestPlaceholders = [GOOGLE_MAPS_KEY: properties['googleMapsApiKey']]
62+
}
63+
5564
compileOptions {
5665
sourceCompatibility JavaVersion.VERSION_1_7
5766
targetCompatibility JavaVersion.VERSION_1_7
@@ -74,29 +83,49 @@ android {
7483

7584
repositories {
7685
mavenCentral() /* The standard Java Maven repository. */
86+
maven { url "http://dl.bintray.com/journeyapps/maven" }
7787
maven { url 'https://jitpack.io' }
88+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
7889
}
7990

8091
dependencies {
8192
compile fileTree(dir: 'libs', include: ['*.jar'])
82-
compile 'com.google.android.gms:play-services-analytics:10.2.4'
83-
compile 'com.android.support:appcompat-v7:25.3.1'
84-
compile 'com.android.support:recyclerview-v7:25.3.1'
85-
compile 'com.android.support:cardview-v7:25.3.1'
86-
compile 'com.android.support:design:25.3.1'
87-
compile 'com.android.support:palette-v7:25.3.1'
88-
compile 'com.squareup.picasso:picasso:2.5.2'
93+
compile 'com.google.android.gms:play-services-analytics:15.0.0'
94+
compile 'com.google.android.gms:play-services-maps:15.0.0'
95+
compile 'com.android.support:appcompat-v7:27.1.1'
96+
compile 'com.android.support:recyclerview-v7:27.1.1'
97+
compile 'com.android.support:cardview-v7:27.1.1'
98+
compile 'com.android.support:design:27.1.1'
99+
compile 'com.android.support:palette-v7:27.1.1'
100+
implementation 'com.squareup.picasso:picasso:2.71828'
89101
compile 'com.heinrichreimersoftware:material-intro:1.6.2'
90102
compile 'me.relex:circleindicator:1.2.1@aar'
91103
compile 'com.andkulikov:transitionseverywhere:1.7.0'
92104
compile 'com.afollestad:sectioned-recyclerview:0.2.3'
93105
compile 'com.github.chrisbanes:PhotoView:1.3.1'
94-
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta3'
95-
compile 'com.squareup.retrofit2:converter-jackson:2.0.0-beta3'
106+
compile 'com.squareup.retrofit2:retrofit:2.1.0'
107+
compile 'com.squareup.retrofit2:converter-jackson:2.1.0'
108+
compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
109+
compile 'com.google.zxing:core:3.2.1'
96110
compile 'com.github.gabrielemariotti.changeloglib:changelog:2.1.0'
111+
compile 'com.sothree.slidinguppanel:library:3.4.0'
97112
compile 'com.jakewharton:butterknife:8.5.1'
98113
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
99-
// apt 'com.jakewharton:butterknife-compiler:8.5.1'
114+
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
115+
implementation 'com.github.esafirm:android-image-picker:1.12.0'
116+
implementation 'com.github.bumptech.glide:glide:4.3.1'
117+
annotationProcessor 'com.github.bumptech.glide:compiler:4.3.1'
118+
}
119+
120+
configurations.all {
121+
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
122+
def requested = details.requested
123+
if (requested.group == 'com.android.support') {
124+
if (!requested.name.startsWith("multidex")) {
125+
details.useVersion '27.1.0'
126+
}
127+
}
128+
}
100129
}
101130

102131
// Get the key store information from the properties file

app/libs/buntata-client.jar

-3 Bytes
Binary file not shown.

app/proguard-rules.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,12 @@
2525
-keep class com.google.android.gms.** { *; }
2626
-dontwarn com.google.android.gms.**
2727

28+
-dontwarn okhttp3.**
2829
-dontwarn okio.**
2930
-dontwarn com.squareup.okhttp.**
31+
-dontwarn javax.annotation.**
32+
-dontwarn org.conscrypt.**
33+
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
3034

3135
# Platform calls Class.forName on types which do not exist on Android to determine platform.
3236
-dontnote retrofit2.Platform

app/release.properties.sample

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
keyStore=release.keystore
22
keyStorePassword=mysecretpassword
33
keyAlias=myapp-release
4-
keyAliasPassword=mysecretpassword
4+
keyAliasPassword=mysecretpassword
5+
6+
googleMapsApiKey=

app/release/output.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"outputType": {
4+
"type": "APK"
5+
},
6+
"apkInfo": {
7+
"type": "MAIN",
8+
"splits": [],
9+
"versionCode": 17
10+
},
11+
"path": "app-release.apk",
12+
"properties": {
13+
"packageId": "uk.ac.hutton.ics.buntata",
14+
"split": "",
15+
"minSdkVersion": "16"
16+
}
17+
}
18+
]

app/src/main/AndroidManifest.xml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
xmlns:tools="http://schemas.android.com/tools"
1919
package="uk.ac.hutton.ics.buntata">
2020

21+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
2122
<uses-permission android:name="android.permission.INTERNET"/>
23+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
24+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
2225

2326
<application
2427
android:allowBackup="true"
@@ -49,7 +52,6 @@
4952
<activity
5053
android:name=".activity.NodeDetailsActivity"
5154
android:parentActivityName=".activity.MainActivity">
52-
can
5355
<intent-filter android:label="@string/app_name">
5456
<action android:name="android.intent.action.VIEW"/>
5557

@@ -77,5 +79,23 @@
7779
<activity android:name=".activity.VideoActivity"/>
7880
<activity android:name=".activity.PreferencesActivity"/>
7981
<activity android:name=".activity.ChangelogActivity"/>
82+
<activity android:name=".activity.LogEntryActivity"/>
83+
<activity android:name=".activity.NodeCatalogActivity"/>
84+
<activity android:name=".activity.LogDetailsActivity"
85+
android:configChanges="orientation|screenSize"/>
86+
87+
<provider
88+
android:name=".util.ShareImageFileProvider"
89+
android:authorities="${applicationId}.fileprovider"
90+
android:exported="false"
91+
android:grantUriPermissions="true">
92+
<meta-data
93+
android:name="android.support.FILE_PROVIDER_PATHS"
94+
android:resource="@xml/filepaths"/>
95+
</provider>
96+
97+
<meta-data
98+
android:name="com.google.android.geo.API_KEY"
99+
android:value="${GOOGLE_MAPS_KEY}"/>
80100
</application>
81101
</manifest>

0 commit comments

Comments
 (0)