diff --git a/plugins/.classpath b/plugins/.classpath deleted file mode 100644 index a4763d1eec..0000000000 --- a/plugins/.classpath +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/plugins/.gitignore b/plugins/.gitignore deleted file mode 100644 index 36986d81cf..0000000000 --- a/plugins/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -bin -gen -raw -obj diff --git a/plugins/.project b/plugins/.project deleted file mode 100644 index 1c708327e5..0000000000 --- a/plugins/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - Osmand-ParkingPlugin - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/plugins/AndroidManifest.xml b/plugins/AndroidManifest.xml deleted file mode 100644 index a51066317c..0000000000 --- a/plugins/AndroidManifest.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/plugins/proguard-project.txt b/plugins/proguard-project.txt deleted file mode 100644 index f2fe1559a2..0000000000 --- a/plugins/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. -# -# 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 *; -#} diff --git a/plugins/project.properties b/plugins/project.properties deleted file mode 100644 index 1f896ec2b7..0000000000 --- a/plugins/project.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=android-4 diff --git a/plugins/res/drawable-hdpi/ic_launcher.png b/plugins/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index 96a442e5b8..0000000000 Binary files a/plugins/res/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/plugins/res/drawable-hdpi/icon.png b/plugins/res/drawable-hdpi/icon.png deleted file mode 100644 index a4f76f9354..0000000000 Binary files a/plugins/res/drawable-hdpi/icon.png and /dev/null differ diff --git a/plugins/res/drawable-ldpi/ic_launcher.png b/plugins/res/drawable-ldpi/ic_launcher.png deleted file mode 100644 index 99238729d8..0000000000 Binary files a/plugins/res/drawable-ldpi/ic_launcher.png and /dev/null differ diff --git a/plugins/res/drawable-ldpi/icon.png b/plugins/res/drawable-ldpi/icon.png deleted file mode 100644 index 120a5c1bb0..0000000000 Binary files a/plugins/res/drawable-ldpi/icon.png and /dev/null differ diff --git a/plugins/res/drawable-mdpi/ic_launcher.png b/plugins/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index 359047dfa4..0000000000 Binary files a/plugins/res/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/plugins/res/drawable-mdpi/icon.png b/plugins/res/drawable-mdpi/icon.png deleted file mode 100644 index 120a5c1bb0..0000000000 Binary files a/plugins/res/drawable-mdpi/icon.png and /dev/null differ diff --git a/plugins/res/drawable-xhdpi/ic_launcher.png b/plugins/res/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index 71c6d760f0..0000000000 Binary files a/plugins/res/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/plugins/res/drawable-xhdpi/icon.png b/plugins/res/drawable-xhdpi/icon.png deleted file mode 100644 index a4f76f9354..0000000000 Binary files a/plugins/res/drawable-xhdpi/icon.png and /dev/null differ diff --git a/plugins/res/layout/main.xml b/plugins/res/layout/main.xml deleted file mode 100644 index 35e8b132cc..0000000000 --- a/plugins/res/layout/main.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/plugins/res/values/strings.xml b/plugins/res/values/strings.xml deleted file mode 100644 index d2df6e8874..0000000000 --- a/plugins/res/values/strings.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - No - Yes - Osmand is not installed - OsmAnd Parking Plugin - OsmAnd Parking Plugin is installed and enabled in OsmAnd settings. - \ No newline at end of file diff --git a/plugins/src/net/osmand/parkingPlugin/ParkingPluginActivity.java b/plugins/src/net/osmand/parkingPlugin/ParkingPluginActivity.java deleted file mode 100644 index 3c36d9d57e..0000000000 --- a/plugins/src/net/osmand/parkingPlugin/ParkingPluginActivity.java +++ /dev/null @@ -1,57 +0,0 @@ -package net.osmand.parkingPlugin; - -import android.app.Activity; -import android.app.AlertDialog; -import android.content.ActivityNotFoundException; -import android.content.ComponentName; -import android.content.DialogInterface; -import android.content.Intent; -import android.content.pm.PackageManager; -import android.content.pm.ResolveInfo; -import android.net.Uri; -import android.os.Bundle; - -public class ParkingPluginActivity extends Activity { - private static final String OSMAND_COMPONENT = "net.osmand"; //$NON-NLS-1$ - private static final String OSMAND_COMPONENT_PLUS = "net.osmand.plus"; //$NON-NLS-1$ - private static final String OSMAND_ACTIVITY = "net.osmand.plus.activities.MainMenuActivity"; //$NON-NLS-1$ - - /** Called when the activity is first created. */ - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.main); - - Intent intentPlus = new Intent(); - intentPlus.setComponent(new ComponentName(OSMAND_COMPONENT_PLUS, OSMAND_ACTIVITY)); - intentPlus.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); - ResolveInfo resolved = getPackageManager().resolveActivity(intentPlus, PackageManager.MATCH_DEFAULT_ONLY); - if(resolved != null) { - startActivity(intentPlus); - } else { - Intent intentNormal = new Intent(); - intentNormal.setFlags(Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED); - intentNormal.setComponent(new ComponentName(OSMAND_COMPONENT, OSMAND_ACTIVITY)); - resolved = getPackageManager().resolveActivity(intentNormal, PackageManager.MATCH_DEFAULT_ONLY); - if (resolved != null) { - startActivity(intentNormal); - } else { - AlertDialog.Builder builder = new AlertDialog.Builder(this); - builder.setMessage(getString(R.string.osmand_app_not_found)); - builder.setPositiveButton(getString(R.string.default_buttons_yes), new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:" + OSMAND_COMPONENT_PLUS)); - try { - startActivity(intent); - } catch (ActivityNotFoundException e) { - } - } - }); - builder.setNegativeButton(getString(R.string.default_buttons_no), null); - builder.show(); - } - } - } - -} \ No newline at end of file