-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
486 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion "24.0.3" | ||
|
||
defaultConfig { | ||
minSdkVersion 18 | ||
targetSdkVersion 25 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(include: ['*.jar'], dir: 'libs') | ||
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
}) | ||
compile 'com.android.support:appcompat-v7:25.1.1' | ||
testCompile 'junit:junit:4.12' | ||
compile project(':geopaparazzi_core') | ||
} |
17 changes: 17 additions & 0 deletions
17
plugins/geopaparazzi_default_export_plugins/proguard-rules.pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /home/cesar/Android/Sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# 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 *; | ||
#} |
18 changes: 18 additions & 0 deletions
18
plugins/geopaparazzi_default_export_plugins/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="eu.geopaparazzi.plugins.defaultexports"> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true"> | ||
<service android:name="eu.geopaparazzi.plugins.defaultexports.DefaultExportsMenuProvider" | ||
android:exported="false"> | ||
<intent-filter> | ||
<action android:name="eu.geopaparazzi.core.extension.ep.exporter.MENU_PROVIDER" /> | ||
<category android:name="androidsrc.intent.category.MENU_PROVIDER" /> | ||
</intent-filter> | ||
</service> | ||
</application> | ||
|
||
</manifest> |
52 changes: 52 additions & 0 deletions
52
...gins/src/main/java/eu/geopaparazzi/plugins/defaultexports/DefaultExportsMenuProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Geopaparazzi - Digital field mapping on Android based devices | ||
* Copyright (C) 2016 HydroloGIS (www.hydrologis.com) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package eu.geopaparazzi.plugins.defaultexports; | ||
|
||
import android.content.Intent; | ||
import android.os.IBinder; | ||
|
||
import eu.geopaparazzi.library.plugin.PluginService; | ||
import eu.geopaparazzi.library.plugin.types.MenuEntryList; | ||
|
||
|
||
/** | ||
* Menu provider for all default exports. | ||
* | ||
* @author Andrea Antonello (www.hydrologis.com) | ||
*/ | ||
public class DefaultExportsMenuProvider extends PluginService { | ||
private static final String NAME = "DefaultExportsMenuProvider"; | ||
private MenuEntryList list = null; | ||
|
||
public DefaultExportsMenuProvider() { | ||
super(NAME); | ||
} | ||
|
||
public IBinder onBind(Intent intent) { | ||
if (list == null) { | ||
list = new MenuEntryList(); | ||
list.addEntry(new ExportKmzMenuEntry(getApplicationContext())); | ||
list.addEntry(new ExportGpxMenuEntry(getApplicationContext())); | ||
list.addEntry(new ExportBookmarksMenuEntry(getApplicationContext())); | ||
list.addEntry(new ExportImagesMenuEntry(getApplicationContext())); | ||
} | ||
return list; | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.