mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-12-23 07:28:48 -05:00
split Manifest for net/nonet
This commit is contained in:
parent
4d80e4e640
commit
c6d2e26682
8
src/keepass2android/Properties/AndroidManifest_net.xml
Normal file
8
src/keepass2android/Properties/AndroidManifest_net.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="0.5.1 beta" package="keepass2android.keepass2android" android:installLocation="preferExternal">
|
||||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14" />
|
||||
<application android:label="keepass2android" android:icon="@drawable/ic_launcher"></application>
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
</manifest>
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="0.5.1 beta" package="keepass2android.keepass2android">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="2" android:versionName="0.5.1 beta" package="keepass2android.keepass2android_nonet">
|
||||
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="14" />
|
||||
<application android:label="keepass2android" android:icon="@drawable/ic_launcher"></application>
|
||||
<uses-permission android:name="android.permission.VIBRATE" />
|
740
src/keepass2android/Resources/Resource.designer.cs
generated
740
src/keepass2android/Resources/Resource.designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,8 @@
|
||||
<string name="algorithm_colon">Algorithm</string>
|
||||
<string name="app_name">Keepass2Android</string>
|
||||
<string name="short_app_name">KP2A</string>
|
||||
<string name="app_name_nonet">Keepass2Android Offline</string>
|
||||
<string name="short_app_name_nonet">KP2A Offline</string>
|
||||
<string name="app_timeout">Application timeout</string>
|
||||
<string name="app_timeout_summary">Time before locking database when the application is inactive.</string>
|
||||
<string name="application">Application</string>
|
||||
|
@ -29,11 +29,27 @@ using Android.Widget;
|
||||
|
||||
namespace keepass2android
|
||||
{
|
||||
public static class AppNameResolver
|
||||
{
|
||||
public static string AppName
|
||||
{
|
||||
get { return "@string/app_name";}
|
||||
}
|
||||
public static string AppNameShort
|
||||
{
|
||||
get { return "@string/app_name_short";}
|
||||
}
|
||||
}
|
||||
|
||||
///Application class for Keepass2Android: Contains static Database variable to be used by all components.
|
||||
#if RELEASE
|
||||
[Application(Debuggable=false, Label="@string/app_name")]
|
||||
#if NoNet
|
||||
[Application(Debuggable=false, Label=AppNameResolver.AppName)]
|
||||
#else
|
||||
[Application(Debuggable=true, Label="@string/app_name")]
|
||||
#if RELEASE
|
||||
[Application(Debuggable=false, Label="@string/app_name")]
|
||||
#else
|
||||
[Application(Debuggable=true, Label="@string/app_name")]
|
||||
#endif
|
||||
#endif
|
||||
public class App : Application {
|
||||
|
||||
|
@ -124,10 +124,15 @@ namespace keepass2android
|
||||
openFileButton.Click += openFileButtonClick;
|
||||
//OPEN URL
|
||||
Button openUrlButton = (Button)FindViewById(Resource.Id.start_open_url);
|
||||
|
||||
#if NoNet
|
||||
openUrlButton.Visibility = ViewStates.Gone;
|
||||
#endif
|
||||
|
||||
EventHandler openUrlButtonClick = (object sender, EventArgs e) =>
|
||||
{
|
||||
if (currentAction == CurrentAction.OpenURL)
|
||||
return;
|
||||
return;
|
||||
currentAction = CurrentAction.OpenURL;
|
||||
fnform.Visibility = ViewStates.Visible;
|
||||
openButton.Visibility = ViewStates.Visible;
|
||||
@ -138,6 +143,7 @@ namespace keepass2android
|
||||
enterFilenameDetails.Visibility = enterFilenameDetails.Text == "" ? ViewStates.Gone : ViewStates.Visible;
|
||||
};
|
||||
openUrlButton.Click += openUrlButtonClick;
|
||||
|
||||
//CREATE NEW
|
||||
Button createNewButton = (Button)FindViewById(Resource.Id.start_create);
|
||||
EventHandler createNewButtonClick = (object sender, EventArgs e) =>
|
||||
|
@ -50,6 +50,7 @@
|
||||
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
|
||||
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
|
||||
<DefineConstants>NoNet</DefineConstants>
|
||||
<DeployExternal>True</DeployExternal>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
|
Loading…
Reference in New Issue
Block a user