Prepare for Android development.
[FIXED] Naming of avatar images. [FIXED] Dependency, SDK & other Maven configuration. [UPDATED] Dependencies changed to stable versions.
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<!-- PROJECT METADATA -->
|
<!-- PROJECT METADATA -->
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword</artifactId>
|
<artifactId>masterpassword</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>GIT-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<name>Master Password Algorithm Implementation</name>
|
<name>Master Password Algorithm Implementation</name>
|
||||||
<description>The implementation of the Master Password algorithm</description>
|
<description>The implementation of the Master Password algorithm</description>
|
||||||
|
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword-algorithm</artifactId>
|
<artifactId>masterpassword-algorithm</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
@ -24,12 +24,12 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.lyndir.lhunath.opal</groupId>
|
<groupId>com.lyndir.lhunath.opal</groupId>
|
||||||
<artifactId>opal-system</artifactId>
|
<artifactId>opal-system</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>1.6-p6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.lyndir.lhunath.opal</groupId>
|
<groupId>com.lyndir.lhunath.opal</groupId>
|
||||||
<artifactId>opal-crypto</artifactId>
|
<artifactId>opal-crypto</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>1.6-p6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- EXTERNAL DEPENDENCIES -->
|
<!-- EXTERNAL DEPENDENCIES -->
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <i>07 04, 2012</i>
|
* <i>07 04, 2012</i>
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.lyndir.lhunath.opal.system.logging.Logger;
|
import com.lyndir.lhunath.opal.system.logging.Logger;
|
@ -1,6 +1,6 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.lyndir.lhunath.masterpassword.entity.*;
|
import com.lyndir.masterpassword.entity.*;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.lyndir.lhunath.opal.system.util.MetaObject;
|
import com.lyndir.lhunath.opal.system.util.MetaObject;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.lyndir.lhunath.opal.system.util.MetaObject;
|
import com.lyndir.lhunath.opal.system.util.MetaObject;
|
||||||
import com.lyndir.lhunath.opal.system.util.ObjectMeta;
|
import com.lyndir.lhunath.opal.system.util.ObjectMeta;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.google.common.base.Throwables;
|
import com.google.common.base.Throwables;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.google.common.base.Charsets;
|
import com.google.common.base.Charsets;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword.entity;
|
package com.lyndir.masterpassword.entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <i>07 04, 2012</i>
|
* <i>07 04, 2012</i>
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword.entity;
|
package com.lyndir.masterpassword.entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <i>07 04, 2012</i>
|
* <i>07 04, 2012</i>
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword.entity;
|
package com.lyndir.masterpassword.entity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <i>07 04, 2012</i>
|
* <i>07 04, 2012</i>
|
@ -1,11 +1,17 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.lyndir.lhunath.masterpassword" android:versionCode="1" android:versionName="GIT-SNAPSHOT">
|
package="com.lyndir.masterpassword"
|
||||||
|
android:versionCode="1"
|
||||||
|
android:versionName="GIT-SNAPSHOT">
|
||||||
|
|
||||||
<uses-sdk android:minSdkVersion="11"
|
<uses-sdk
|
||||||
android:targetSdkVersion="16" />
|
android:minSdkVersion="11"
|
||||||
|
android:targetSdkVersion="19" />
|
||||||
|
|
||||||
<application android:icon="@drawable/icon" android:label="@string/app_name">
|
<application
|
||||||
|
android:icon="@drawable/icon"
|
||||||
|
android:label="@string/app_name"
|
||||||
|
android:allowBackup="true">
|
||||||
<activity android:name=".UsersActivity">
|
<activity android:name=".UsersActivity">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*___Generated_by_IDEA___*/
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
public final class BuildConfig {
|
public final class BuildConfig {
|
@ -1,6 +1,6 @@
|
|||||||
/*___Generated_by_IDEA___*/
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
public final class Manifest {
|
public final class Manifest {
|
@ -1,6 +1,6 @@
|
|||||||
/*___Generated_by_IDEA___*/
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
public final class R {
|
public final class R {
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<!-- PROJECT METADATA -->
|
<!-- PROJECT METADATA -->
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword</artifactId>
|
<artifactId>masterpassword</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>GIT-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<name>Master Password Android</name>
|
<name>Master Password Android</name>
|
||||||
<description>An Android application to the Master Password algorithm</description>
|
<description>An Android application to the Master Password algorithm</description>
|
||||||
|
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword-android</artifactId>
|
<artifactId>masterpassword-android</artifactId>
|
||||||
<packaging>apk</packaging>
|
<packaging>apk</packaging>
|
||||||
|
|
||||||
@ -24,12 +24,9 @@
|
|||||||
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
|
||||||
<artifactId>android-maven-plugin</artifactId>
|
<artifactId>android-maven-plugin</artifactId>
|
||||||
|
|
||||||
<!--configuration>
|
<configuration>
|
||||||
<proguard>
|
<sdk>19</sdk>
|
||||||
<skip>false</skip>
|
</configuration>
|
||||||
<config>proguard.cfg</config>
|
|
||||||
</proguard>
|
|
||||||
</configuration-->
|
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
@ -39,7 +36,7 @@
|
|||||||
|
|
||||||
<!-- PROJECT REFERENCES -->
|
<!-- PROJECT REFERENCES -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword-algorithm</artifactId>
|
<artifactId>masterpassword-algorithm</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>GIT-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
@ -47,18 +44,13 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jakewharton</groupId>
|
<groupId>com.jakewharton</groupId>
|
||||||
<artifactId>butterknife</artifactId>
|
<artifactId>butterknife</artifactId>
|
||||||
<version>5.1.2</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- clone https://github.com/mosabua/maven-android-sdk-deployer.git
|
||||||
|
run mvn install -P 4.4 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ch.qos.logback</groupId>
|
<groupId>android</groupId>
|
||||||
<artifactId>logback-classic</artifactId>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.android</groupId>
|
|
||||||
<artifactId>android</artifactId>
|
<artifactId>android</artifactId>
|
||||||
<version>4.1.1.4</version>
|
|
||||||
<scope>provided</scope>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 8.4 KiB |
Before Width: | Height: | Size: 8.8 KiB After Width: | Height: | Size: 8.8 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 8.7 KiB After Width: | Height: | Size: 8.7 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
@ -1,6 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="hello">Hello masterpassword-android!</string>
|
<string name="app_name">Master Password</string>
|
||||||
<string name="app_name">masterpassword-android</string>
|
|
||||||
<string name="avatar">User Avatar</string>
|
<string name="avatar">User Avatar</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import butterknife.InjectView;
|
import butterknife.InjectView;
|
||||||
import com.lyndir.lhunath.masterpassword.model.Avatar;
|
import com.lyndir.masterpassword.model.Avatar;
|
||||||
import com.lyndir.lhunath.masterpassword.model.User;
|
import com.lyndir.masterpassword.model.User;
|
||||||
import com.lyndir.lhunath.masterpassword.view.AvatarView;
|
import com.lyndir.masterpassword.view.AvatarView;
|
||||||
|
|
||||||
|
|
||||||
public class UsersActivity extends Activity {
|
public class UsersActivity extends Activity {
|
@ -1,6 +1,6 @@
|
|||||||
package com.lyndir.lhunath.masterpassword.model;
|
package com.lyndir.masterpassword.model;
|
||||||
|
|
||||||
import com.lyndir.lhunath.masterpassword.R;
|
import com.lyndir.masterpassword.R;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword.model;
|
package com.lyndir.masterpassword.model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author lhunath, 2014-08-20
|
* @author lhunath, 2014-08-20
|
@ -1,13 +1,11 @@
|
|||||||
package com.lyndir.lhunath.masterpassword.view;
|
package com.lyndir.masterpassword.view;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
import butterknife.ButterKnife;
|
import com.lyndir.masterpassword.R;
|
||||||
import com.lyndir.lhunath.masterpassword.R;
|
import com.lyndir.masterpassword.model.User;
|
||||||
import com.lyndir.lhunath.masterpassword.model.User;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<!-- PROJECT METADATA -->
|
<!-- PROJECT METADATA -->
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword</artifactId>
|
<artifactId>masterpassword</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>GIT-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<name>Master Password CLI</name>
|
<name>Master Password CLI</name>
|
||||||
<description>A CLI interface to the Master Password algorithm</description>
|
<description>A CLI interface to the Master Password algorithm</description>
|
||||||
|
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword-cli</artifactId>
|
<artifactId>masterpassword-cli</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
@ -59,7 +59,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<transformers>
|
<transformers>
|
||||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||||
<mainClass>com.lyndir.lhunath.masterpassword.CLI</mainClass>
|
<mainClass>com.lyndir.masterpassword.CLI</mainClass>
|
||||||
</transformer>
|
</transformer>
|
||||||
</transformers>
|
</transformers>
|
||||||
<filters>
|
<filters>
|
||||||
@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
<!-- PROJECT REFERENCES -->
|
<!-- PROJECT REFERENCES -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword-algorithm</artifactId>
|
<artifactId>masterpassword-algorithm</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>GIT-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.google.common.io.LineReader;
|
import com.google.common.io.LineReader;
|
||||||
import com.lyndir.lhunath.opal.system.logging.Logger;
|
import com.lyndir.lhunath.opal.system.logging.Logger;
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<!-- PROJECT METADATA -->
|
<!-- PROJECT METADATA -->
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword</artifactId>
|
<artifactId>masterpassword</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>GIT-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
@ -13,7 +13,7 @@
|
|||||||
<name>Master Password GUI</name>
|
<name>Master Password GUI</name>
|
||||||
<description>A GUI interface to the Master Password algorithm</description>
|
<description>A GUI interface to the Master Password algorithm</description>
|
||||||
|
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword-gui</artifactId>
|
<artifactId>masterpassword-gui</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
@ -39,7 +39,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<transformers>
|
<transformers>
|
||||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||||
<mainClass>com.lyndir.lhunath.masterpassword.GUI</mainClass>
|
<mainClass>com.lyndir.masterpassword.GUI</mainClass>
|
||||||
</transformer>
|
</transformer>
|
||||||
</transformers>
|
</transformers>
|
||||||
<filters>
|
<filters>
|
||||||
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
<!-- PROJECT REFERENCES -->
|
<!-- PROJECT REFERENCES -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword-algorithm</artifactId>
|
<artifactId>masterpassword-algorithm</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>GIT-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.apple.eawt.*;
|
import com.apple.eawt.*;
|
||||||
|
|
@ -1,6 +1,5 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.google.common.io.Resources;
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import static com.lyndir.lhunath.opal.system.util.ObjectUtils.*;
|
import static com.lyndir.lhunath.opal.system.util.ObjectUtils.*;
|
||||||
|
|
@ -13,9 +13,8 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import com.google.common.base.Optional;
|
|
||||||
import com.lyndir.lhunath.opal.system.util.TypeUtils;
|
import com.lyndir.lhunath.opal.system.util.TypeUtils;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@ -34,15 +33,13 @@ public class GUI implements UnlockFrame.SignInCallback {
|
|||||||
public static void main(final String[] args)
|
public static void main(final String[] args)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
// Apple
|
GUI gui;
|
||||||
Optional<? extends GUI> appleGUI = TypeUtils.newInstance( AppleGUI.class );
|
try {
|
||||||
if (appleGUI.isPresent()) {
|
gui = TypeUtils.newInstance( AppleGUI.class );
|
||||||
appleGUI.get().open();
|
} catch (RuntimeException e) {
|
||||||
return;
|
gui = new GUI();
|
||||||
}
|
}
|
||||||
|
gui.open();
|
||||||
// All others
|
|
||||||
new GUI().open();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void open() {
|
void open() {
|
@ -1,9 +1,9 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import static com.lyndir.lhunath.opal.system.util.StringUtils.*;
|
import static com.lyndir.lhunath.opal.system.util.StringUtils.*;
|
||||||
|
|
||||||
import com.google.common.collect.Iterables;
|
import com.google.common.collect.Iterables;
|
||||||
import com.lyndir.lhunath.masterpassword.util.Components;
|
import com.lyndir.masterpassword.util.Components;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.datatransfer.StringSelection;
|
import java.awt.datatransfer.StringSelection;
|
||||||
import java.awt.event.*;
|
import java.awt.event.*;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import static com.lyndir.lhunath.opal.system.util.ObjectUtils.ifNotNullElse;
|
import static com.lyndir.lhunath.opal.system.util.ObjectUtils.ifNotNullElse;
|
||||||
import static com.lyndir.lhunath.opal.system.util.StringUtils.*;
|
import static com.lyndir.lhunath.opal.system.util.StringUtils.*;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
@ -1,8 +1,8 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import static com.lyndir.lhunath.opal.system.util.ObjectUtils.*;
|
import static com.lyndir.lhunath.opal.system.util.ObjectUtils.*;
|
||||||
|
|
||||||
import com.lyndir.lhunath.masterpassword.util.Components;
|
import com.lyndir.masterpassword.util.Components;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.awt.event.*;
|
import java.awt.event.*;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword;
|
package com.lyndir.masterpassword;
|
||||||
|
|
||||||
import static com.lyndir.lhunath.opal.system.util.StringUtils.*;
|
import static com.lyndir.lhunath.opal.system.util.StringUtils.*;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package com.lyndir.lhunath.masterpassword.util;
|
package com.lyndir.masterpassword.util;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
@ -7,13 +7,13 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>com.lyndir.lhunath</groupId>
|
<groupId>com.lyndir.lhunath</groupId>
|
||||||
<artifactId>lyndir</artifactId>
|
<artifactId>lyndir</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>1.19</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<name>Master Password</name>
|
<name>Master Password</name>
|
||||||
<description>A Java implementation of the Master Password algorithm.</description>
|
<description>A Java implementation of the Master Password algorithm.</description>
|
||||||
|
|
||||||
<groupId>com.lyndir.lhunath.masterpassword</groupId>
|
<groupId>com.lyndir.masterpassword</groupId>
|
||||||
<artifactId>masterpassword</artifactId>
|
<artifactId>masterpassword</artifactId>
|
||||||
<version>GIT-SNAPSHOT</version>
|
<version>GIT-SNAPSHOT</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|