Skip to content

Commit

Permalink
Initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
dpocock committed Jun 9, 2012
0 parents commit 27190a3
Show file tree
Hide file tree
Showing 34 changed files with 3,109 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
33 changes: 33 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>dynalogin-android</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
5 changes: 5 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Wed Jan 19 23:09:58 CET 2011
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5
26 changes: 26 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.dynalogin.android"
android:versionCode="1"
android:versionName="1.0">
<uses-permission android:name="android.permission.INTERNET"/>
<application android:icon="@drawable/icon" android:label="@string/app_name">

<activity android:name=".Home"
android:label="@string/app_name">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="ProfileList" android:label="@string/app_name">
</activity>
<activity android:name="ProfileSetup" android:label="@string/app_name"></activity>
<activity android:name="ProfileSetupExpress" android:label="@string/app_name"></activity>
<activity android:name="ProfileSetupManual" android:label="@string/app_name"></activity>

</application>
<uses-sdk android:minSdkVersion="2" />

</manifest>
4 changes: 4 additions & 0 deletions gen/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# ... except this file itself
!.gitignore
34 changes: 34 additions & 0 deletions proguard.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class com.android.vending.licensing.ILicensingService

-keepclasseswithmembernames class * {
native <methods>;
}

-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembernames class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
11 changes: 11 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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 use,
# "ant.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-3
Binary file added res/drawable/ic_menu_about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/ic_menu_add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/ic_menu_cancel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/ic_menu_login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/ic_menu_profile_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/ic_menu_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions res/layout/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>


<TextView android:id="@+id/profNameLabel" android:layout_width="fill_parent"
android:layout_marginTop="5dip" android:layout_marginBottom="5dip"
android:layout_marginLeft="25dip" android:layout_height="wrap_content"
android:text="@string/prof_name" />
<EditText android:id="@+id/profNameText" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:maxEms="16"
android:minEms="4" android:singleLine="true"
android:layout_marginLeft="10dip" android:layout_marginRight="10dip"
android:layout_below="@id/profNameLabel" android:maxLength="16"
android:minWidth="250dip" />
<TextView android:id="@+id/codeLabel" android:layout_width="wrap_content"
android:layout_marginTop="5dip" android:layout_marginBottom="5dip"
android:layout_marginLeft="25dip" android:layout_height="wrap_content"
android:text="@string/code_name" android:layout_below="@id/profNameText" />
<EditText android:id="@+id/codeText" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:maxEms="16"
android:minEms="4" android:singleLine="true"
android:layout_marginLeft="10dip" android:layout_marginRight="10dip"
android:layout_below="@id/codeLabel" android:maxLength="20"
android:minWidth="250dip" />
<Button android:id="@+id/generateButton"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/get_code" android:layout_marginTop="10dip"
android:layout_marginBottom="5dip" android:layout_marginLeft="10dip"
android:layout_below="@id/codeText" android:drawableTop="@drawable/ic_menu_add" />



</LinearLayout>
7 changes: 7 additions & 0 deletions res/layout/profilelist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<ListView android:id="@+id/profileslist" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:drawSelectorOnTop="false" />
</LinearLayout>
11 changes: 11 additions & 0 deletions res/layout/profilelist_entry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:id="@+id/col_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="28dip" />
</LinearLayout>
8 changes: 8 additions & 0 deletions res/layout/profilesetup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- <Button android:text="@string/profile_setup_express" android:id="@+id/b_profile_setup_express" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button> -->
<Button android:text="@string/profile_setup_manual" android:id="@+id/b_profile_setup_manual" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button>
</LinearLayout>
30 changes: 30 additions & 0 deletions res/layout/profilesetupmanual.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:paddingRight="10dip" android:gravity="center">
<TextView android:id="@+id/profLabel" android:layout_width="fill_parent"
android:layout_marginTop="5dip" android:layout_marginBottom="5dip"
android:layout_marginLeft="25dip" android:layout_height="wrap_content"
android:text="@string/prof_name" />
<EditText android:id="@+id/profText" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:maxEms="16"
android:minEms="4" android:singleLine="true"
android:layout_marginLeft="10dip" android:layout_marginRight="10dip"
android:layout_below="@id/profLabel" android:maxLength="16"
android:minWidth="250dip" />
<TextView android:id="@+id/secretLabel" android:layout_width="wrap_content"
android:layout_marginTop="5dip" android:layout_marginBottom="5dip"
android:layout_marginLeft="25dip" android:layout_height="wrap_content"
android:text="@string/secret_name" android:layout_below="@id/profText" />
<EditText android:id="@+id/secretText" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:maxEms="16"
android:minEms="4" android:singleLine="true"
android:layout_marginLeft="10dip" android:layout_marginRight="10dip"
android:layout_below="@id/secretLabel" android:maxLength="20"
android:minWidth="250dip" />
<Button android:id="@+id/saveProfileButton"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/save_profile" android:layout_marginTop="10dip"
android:layout_marginBottom="5dip" android:layout_marginLeft="10dip"
android:layout_below="@id/secretText" android:drawableTop="@drawable/ic_menu_add" />
</RelativeLayout>
5 changes: 5 additions & 0 deletions res/menu/home_menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/profiles" android:title="Profiles"></item>
</menu>
6 changes: 6 additions & 0 deletions res/menu/profile_context_menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:title="Edit" android:id="@+id/profiles_context_edit"></item>
<item android:title="Delete" android:id="@+id/profiles_context_delete"></item>
</menu>
6 changes: 6 additions & 0 deletions res/menu/profiles_menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<menu
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/add_profile" android:title="Add profile"></item>

</menu>
21 changes: 21 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">dynalogin</string>
<string name="prof_name">Name:</string>
<string name="secret_name">Secret:</string>
<string name="save_profile">Save Profile</string>
<string name="error_title">Error</string>
<string name="cancel_info">Cancel</string>
<string name="ok">OK</string>
<string name="error">Invalid value(s)</string>
<!-- <string name="profile_setup_express">Express setup</string> -->
<string name="profile_setup_manual">Manual setup</string>
<!-- <string name="user_name">Desired username:</string>
<string name="first_name">First name:</string>
<string name="request_info">Register</string>
<string name="last_name">Last name:</string>
<string name="email_address">Email address:</string>
<string name="express_instructions">Your username will be part of your OpenID URL. Please ensure your name is correct and matches your identity document/passport. A verification email will be sent to you. You will need to click the link in the email to confirm your email address.</string> -->
<string name="code_name">Code:</string>
<string name="get_code">Get code &gt;</string>
</resources>
Binary file added screenshot/shot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot/shot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot/upload-icon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 27190a3

Please sign in to comment.