Skip to content

Commit 138f3fe

Browse files
authored
Merge pull request #14 from scottlandis/master
Stability and UI improvements
2 parents dd156e1 + efeb8ea commit 138f3fe

39 files changed

Lines changed: 3175 additions & 1006 deletions

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ buildscript {
55
repositories {
66
google()
77
jcenter()
8+
mavenLocal()
89
}
910
dependencies {
1011
classpath 'com.android.tools.build:gradle:3.1.4'
@@ -19,6 +20,7 @@ allprojects {
1920
repositories {
2021
google()
2122
jcenter()
23+
maven { url 'https://jitpack.io' } //for charts
2224
}
2325
}
2426

torgi/build.gradle

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ android {
66
applicationId "org.sofwerx.torgi"
77
minSdkVersion 24
88
targetSdkVersion 27
9-
versionCode 1
10-
versionName "1.0"
9+
versionCode 2
10+
versionName "0.3"
1111
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1212
externalNativeBuild {
1313
cmake {
@@ -26,16 +26,24 @@ android {
2626
// path "CMakeLists.txt"
2727
// }
2828
// }
29+
compileOptions {
30+
targetCompatibility 1.8
31+
sourceCompatibility 1.8
32+
}
2933
}
3034

3135
dependencies {
32-
implementation fileTree(include: ['*.jar'], dir: 'libs')
33-
implementation project(':geopackage-sdk')
36+
//implementation fileTree(include: ['*.jar'], dir: 'libs')
37+
//implementation project(':geopackage-sdk')
3438

39+
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3' //for charts
40+
implementation 'org.osmdroid:osmdroid-android:6.0.2'
41+
implementation 'mil.nga.geopackage:geopackage-android:3.0.2'
3542
implementation 'com.android.support:appcompat-v7:27.1.1'
36-
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
43+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
44+
//implementation 'com.google.android.gms:play-services-maps:15.0.1'
3745
implementation 'com.android.support:design:27.1.1'
3846
testImplementation 'junit:junit:4.12'
3947
androidTestImplementation 'com.android.support.test:runner:1.0.2'
4048
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
41-
}
49+
}

torgi/src/main/AndroidManifest.xml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,40 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="org.sofwerx.torgi">
44
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
5-
<uses-permission android:name="android.permission.SEND_SMS" />
65
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
7-
<uses-permission android:name="android.permission.WAKE_LOCK" />
6+
<uses-permission android:name="android.permission.INTERNET" />
7+
8+
<uses-feature android:name="android.hardware.location.gps" />
89

910
<application
1011
android:icon="@mipmap/ic_launcher"
1112
android:label="@string/app_name"
1213
android:roundIcon="@mipmap/ic_launcher_round"
1314
android:supportsRtl="true"
1415
android:theme="@style/AppTheme">
16+
17+
<meta-data
18+
android:name="com.google.android.geo.API_KEY"
19+
android:value="@string/google_maps_key" />
20+
21+
<service android:name="org.sofwerx.torgi.service.TorgiService"/>
22+
1523
<activity
16-
android:name=".MainActivity"
17-
android:label="@string/app_name"
18-
android:theme="@style/AppTheme.NoActionBar">
24+
android:name=".ui.MainActivity"
25+
android:label="@string/app_name">
1926
<intent-filter>
2027
<action android:name="android.intent.action.MAIN" />
2128
<category android:name="android.intent.category.LAUNCHER" />
2229
</intent-filter>
23-
<intent-filter>
24-
<action android:name="android.intent.action.VIEW" />
25-
<category android:name="android.intent.category.DEFAULT" />
26-
<data android:mimeType="vnd.android-dir/mms-sms" />
27-
</intent-filter>
28-
<intent-filter>
29-
<action android:name="android.intent.action.VIEW" />
30-
<action android:name="android.intent.action.SENDTO" />
31-
<category android:name="android.intent.category.DEFAULT" />
32-
<category android:name="android.intent.category.BROWSABLE" />
33-
<data android:scheme="sms" />
34-
<data android:scheme="smsto" />
35-
</intent-filter>
36-
<intent-filter>
37-
<action android:name="android.intent.action.SEND" />
38-
<category android:name="android.intent.category.DEFAULT" />
39-
<data android:mimeType="text/plain" />
40-
</intent-filter>
30+
<!--android:theme="@style/AppTheme.NoActionBar">-->
31+
</activity>
32+
<activity
33+
android:name=".ui.MonitorActivity"
34+
android:label="TORGI Monitor">
35+
</activity>
36+
<activity
37+
android:name=".ui.AboutActivity"
38+
android:label="@string/about">
4139
</activity>
42-
4340
</application>
44-
4541
</manifest>

0 commit comments

Comments
 (0)