diff --git a/src/KeePass.sln b/src/KeePass.sln index c8fbaebc..8bb64d99 100644 --- a/src/KeePass.sln +++ b/src/KeePass.sln @@ -96,8 +96,8 @@ Global {A57B3ACE-5634-469A-88C4-858BB409F356}.Release|x64.Build.0 = Release|Any CPU {A57B3ACE-5634-469A-88C4-858BB409F356}.ReleaseNoNet|Any CPU.ActiveCfg = Debug|Any CPU {A57B3ACE-5634-469A-88C4-858BB409F356}.ReleaseNoNet|Any CPU.Build.0 = Debug|Any CPU - {A57B3ACE-5634-469A-88C4-858BB409F356}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU - {A57B3ACE-5634-469A-88C4-858BB409F356}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU + {A57B3ACE-5634-469A-88C4-858BB409F356}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU + {A57B3ACE-5634-469A-88C4-858BB409F356}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU {A57B3ACE-5634-469A-88C4-858BB409F356}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU {A57B3ACE-5634-469A-88C4-858BB409F356}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -118,8 +118,8 @@ Global {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.Release|x64.Build.0 = Release|Any CPU {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.ReleaseNoNet|Any CPU.ActiveCfg = Debug|Any CPU {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.ReleaseNoNet|Any CPU.Build.0 = Debug|Any CPU - {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU - {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU + {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU + {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU {A8779D4D-7C49-4C2F-82BD-2CDC448391DA}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -136,8 +136,8 @@ Global {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.Release|x64.ActiveCfg = Release|Any CPU {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU - {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU - {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU + {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU + {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU {53A9CB7F-6553-4BC0-B56B-9410BB2E59AA}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -154,8 +154,8 @@ Global {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.Release|x64.ActiveCfg = Release|Any CPU {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU - {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU - {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU + {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU + {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU {A5F8FB02-00E0-4335-91EF-AEAA2C2F3C48}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU @@ -177,9 +177,9 @@ Global {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Any CPU.ActiveCfg = Release|Any CPU {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Any CPU.Build.0 = Release|Any CPU {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Any CPU.Deploy.0 = Release|Any CPU - {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Mixed Platforms.ActiveCfg = Release|Any CPU - {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Mixed Platforms.Build.0 = Release|Any CPU - {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Mixed Platforms.Deploy.0 = Release|Any CPU + {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Mixed Platforms.ActiveCfg = ReleaseNoNet|Any CPU + {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Mixed Platforms.Build.0 = ReleaseNoNet|Any CPU + {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Mixed Platforms.Deploy.0 = ReleaseNoNet|Any CPU {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|Win32.ActiveCfg = Release|Any CPU {46B769B8-2C58-4138-9CC0-70E3AE3C9A3A}.ReleaseNoNet|x64.ActiveCfg = Release|Any CPU EndGlobalSection diff --git a/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj b/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj index 75a2642a..a39cd67f 100644 --- a/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj +++ b/src/Kp2aBusinessLogic/Kp2aBusinessLogic.csproj @@ -32,6 +32,16 @@ prompt 4 + + bin\ReleaseNoNet\ + TRACE + true + pdbonly + AnyCPU + Off + prompt + MinimumRecommendedRules.ruleset + diff --git a/src/Kp2aBusinessLogic/Properties/AssemblyInfo.cs b/src/Kp2aBusinessLogic/Properties/AssemblyInfo.cs index b65267bb..3588c03f 100644 --- a/src/Kp2aBusinessLogic/Properties/AssemblyInfo.cs +++ b/src/Kp2aBusinessLogic/Properties/AssemblyInfo.cs @@ -30,5 +30,4 @@ using Android.App; [assembly: AssemblyFileVersion("1.0.0.0")] // Add some common permissions, these can be removed if not needed -[assembly: UsesPermission(Android.Manifest.Permission.Internet)] [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] diff --git a/src/Kp2aKeyboardBinding/Kp2aKeyboardBinding.csproj b/src/Kp2aKeyboardBinding/Kp2aKeyboardBinding.csproj index 30ce0f23..c984aa3f 100644 --- a/src/Kp2aKeyboardBinding/Kp2aKeyboardBinding.csproj +++ b/src/Kp2aKeyboardBinding/Kp2aKeyboardBinding.csproj @@ -1,4 +1,4 @@ - + Debug @@ -34,6 +34,13 @@ False SdkOnly + + bin\ReleaseNoNet\ + true + AnyCPU + prompt + MinimumRecommendedRules.ruleset + diff --git a/src/Kp2aUnitTests/Kp2aUnitTests.csproj b/src/Kp2aUnitTests/Kp2aUnitTests.csproj index 9ddd16b4..0ad98d38 100644 --- a/src/Kp2aUnitTests/Kp2aUnitTests.csproj +++ b/src/Kp2aUnitTests/Kp2aUnitTests.csproj @@ -37,6 +37,16 @@ False SdkOnly + + bin\ReleaseNoNet\ + TRACE + true + pdbonly + AnyCPU + Off + prompt + MinimumRecommendedRules.ruleset + diff --git a/src/keepass2android/Properties/AndroidManifest_net.xml b/src/keepass2android/Properties/AndroidManifest_net.xml index f07997f8..f9f6f79b 100644 --- a/src/keepass2android/Properties/AndroidManifest_net.xml +++ b/src/keepass2android/Properties/AndroidManifest_net.xml @@ -1,7 +1,7 @@  diff --git a/src/keepass2android/Properties/AndroidManifest_nonet.xml b/src/keepass2android/Properties/AndroidManifest_nonet.xml index 09230c35..9aa96bf6 100644 --- a/src/keepass2android/Properties/AndroidManifest_nonet.xml +++ b/src/keepass2android/Properties/AndroidManifest_nonet.xml @@ -1,7 +1,7 @@  diff --git a/src/keepass2android/Resources/Resource.designer.cs b/src/keepass2android/Resources/Resource.designer.cs index e301311c..763d0d24 100644 --- a/src/keepass2android/Resources/Resource.designer.cs +++ b/src/keepass2android/Resources/Resource.designer.cs @@ -2307,10 +2307,13 @@ namespace keepass2android public const int searchable = 2131034115; // aapt resource value: 0x7f050004 - public const int symbols = 2131034116; + public const int searchable_offline = 2131034116; // aapt resource value: 0x7f050005 - public const int symbols_shift = 2131034117; + public const int symbols = 2131034117; + + // aapt resource value: 0x7f050006 + public const int symbols_shift = 2131034118; static Xml() { diff --git a/src/keepass2android/Resources/xml/searchable.xml b/src/keepass2android/Resources/xml/searchable.xml index 1730f33a..13975ab2 100644 --- a/src/keepass2android/Resources/xml/searchable.xml +++ b/src/keepass2android/Resources/xml/searchable.xml @@ -21,7 +21,7 @@ android:label="@string/search_label" android:hint="@string/search_hint" android:searchMode="showSearchLabelAsBadge" - android:searchSuggestAuthority="keepass2android.search.SearchProvider" + android:searchSuggestAuthority="keepass2android.keepass2android.SearchProvider" android:searchSuggestSelection=" ?" android:searchSuggestThreshold="2" android:searchSuggestIntentAction="android.intent.action.VIEW" diff --git a/src/keepass2android/Resources/xml/searchable_offline.xml b/src/keepass2android/Resources/xml/searchable_offline.xml new file mode 100644 index 00000000..1f2a5e18 --- /dev/null +++ b/src/keepass2android/Resources/xml/searchable_offline.xml @@ -0,0 +1,29 @@ + + + \ No newline at end of file diff --git a/src/keepass2android/app/App.cs b/src/keepass2android/app/App.cs index a9ff369e..e56fbd86 100644 --- a/src/keepass2android/app/App.cs +++ b/src/keepass2android/app/App.cs @@ -37,6 +37,8 @@ namespace keepass2android public const string AppLauncherTitle = "@string/short_app_name_nonet"; public const string PackagePart = "keepass2android_nonet"; public const int LauncherIcon = Resource.Drawable.ic_launcher_offline; + + public const string Searchable = "@xml/searchable_offline"; } #else /// @@ -49,6 +51,7 @@ namespace keepass2android public const string AppLauncherTitle = "@string/app_name"; public const string PackagePart = "keepass2android"; public const int LauncherIcon = Resource.Drawable.ic_launcher; + public const string Searchable = "@xml/searchable"; } #endif /// diff --git a/src/keepass2android/keepass2android.csproj b/src/keepass2android/keepass2android.csproj index f3227675..0a63549a 100644 --- a/src/keepass2android/keepass2android.csproj +++ b/src/keepass2android/keepass2android.csproj @@ -145,6 +145,7 @@ + False @@ -372,7 +373,6 @@ Designer - Designer @@ -698,4 +698,9 @@ + + + Designer + + \ No newline at end of file diff --git a/src/keepass2android/search/SearchProvider.cs b/src/keepass2android/search/SearchProvider.cs index 07c78c16..d2282cb0 100644 --- a/src/keepass2android/search/SearchProvider.cs +++ b/src/keepass2android/search/SearchProvider.cs @@ -41,7 +41,7 @@ namespace keepass2android.search GetIcon, GetSuggestions } - public const string Authority = "keepass2android.search.SearchProvider"; + public const String Authority = "keepass2android." + AppNames.PackagePart + ".SearchProvider"; private const string GetIconPathQuery = "get_icon"; private const string IconIdParameter = "IconId"; diff --git a/src/keepass2android/search/SearchResults.cs b/src/keepass2android/search/SearchResults.cs index 56920186..256bd133 100644 --- a/src/keepass2android/search/SearchResults.cs +++ b/src/keepass2android/search/SearchResults.cs @@ -30,7 +30,7 @@ namespace keepass2android.search /// Activity to show search results /// [Activity (Label = "@string/app_name", Theme="@style/NoTitleBar", LaunchMode=Android.Content.PM.LaunchMode.SingleTop)] - [MetaData("android.app.searchable",Resource="@xml/searchable")] + [MetaData("android.app.searchable",Resource=AppNames.Searchable)] [IntentFilter(new[]{Intent.ActionSearch}, Categories=new[]{Intent.CategoryDefault})] public class SearchResults : GroupBaseActivity { diff --git a/src/keepass2android/services/QuickUnlockForegroundService.cs b/src/keepass2android/services/QuickUnlockForegroundService.cs index 8c8e7869..a3d3b813 100644 --- a/src/keepass2android/services/QuickUnlockForegroundService.cs +++ b/src/keepass2android/services/QuickUnlockForegroundService.cs @@ -45,7 +45,7 @@ namespace keepass2android NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this) .SetSmallIcon(Resource.Drawable.ic_launcher_gray) - .SetLargeIcon(BitmapFactory.DecodeResource(Resources, Resource.Drawable.ic_launcher)) + .SetLargeIcon(BitmapFactory.DecodeResource(Resources, AppNames.LauncherIcon)) .SetContentTitle(GetText(Resource.String.app_name)) .SetContentText(GetText(Resource.String.database_loaded_quickunlock_enabled)); diff --git a/src/kp2akeytransform/kp2akeytransform.csproj b/src/kp2akeytransform/kp2akeytransform.csproj index fb1fefd7..bc12f082 100644 --- a/src/kp2akeytransform/kp2akeytransform.csproj +++ b/src/kp2akeytransform/kp2akeytransform.csproj @@ -1,4 +1,4 @@ - + Debug @@ -34,6 +34,13 @@ False SdkOnly + + bin\ReleaseNoNet\ + true + AnyCPU + prompt + MinimumRecommendedRules.ruleset + @@ -62,12 +69,7 @@ - - - - - - + Jars\kp2akeytransform.jar diff --git a/src/monodroid-unittesting/MonoDroidUnitTesting/MonoDroidUnitTesting.csproj b/src/monodroid-unittesting/MonoDroidUnitTesting/MonoDroidUnitTesting.csproj index 11e4f1a3..f7d79f29 100644 --- a/src/monodroid-unittesting/MonoDroidUnitTesting/MonoDroidUnitTesting.csproj +++ b/src/monodroid-unittesting/MonoDroidUnitTesting/MonoDroidUnitTesting.csproj @@ -35,6 +35,16 @@ prompt 4 + + bin\ReleaseNoNet\ + TRACE + true + pdbonly + AnyCPU + Off + prompt + MinimumRecommendedRules.ruleset +