diff --git a/.hgignore b/.hgignore index 1c3f1f5a7..ffa8823b5 100644 --- a/.hgignore +++ b/.hgignore @@ -7,3 +7,5 @@ syntax:glob MyTracksTest/annotations.log **/*.pyc **/*.pyo +syntax: glob +MyTracksTest/hs_err_pid*.log diff --git a/MyTracks/.classpath b/MyTracks/.classpath index 4a0943047..4a148f304 100644 --- a/MyTracks/.classpath +++ b/MyTracks/.classpath @@ -3,8 +3,16 @@ - + + + + + + + + + diff --git a/MyTracks/.project b/MyTracks/.project index 5a87d6231..4ff12bb43 100644 --- a/MyTracks/.project +++ b/MyTracks/.project @@ -1,41 +1,41 @@ - - - MyTracks - - - MyTracksLib - - - - 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 - - - - MyTracksLib_src - 2 - _android_MyTracksLib_e2802071/src - - - + + + MyTracks + + + MyTracksLib + + + + 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 + + + + MyTracksLib_src + 2 + _android_MyTracksLib_e2802071/src + + + diff --git a/MyTracks/AndroidManifest.xml b/MyTracks/AndroidManifest.xml index d085d37e9..f3752ef43 100755 --- a/MyTracks/AndroidManifest.xml +++ b/MyTracks/AndroidManifest.xml @@ -17,10 +17,11 @@ limitations under the License. + android:versionCode="33" + android:versionName="1.1.10"> @@ -177,6 +178,9 @@ limitations under the License. android:exported="true" android:permission="com.google.android.apps.mytracks.WRITE_TRACK_DATA" /> + + @@ -188,7 +192,6 @@ limitations under the License. - @@ -230,7 +233,7 @@ limitations under the License. android:permissionGroup="android.permission-group.LOCATION" android:label="@string/notification_permission_label" android:description="@string/notification_permission_description" - android:protectionLevel="normal" /> + android:protectionLevel="dangerous" /> + + + - + diff --git a/MyTracks/default.properties b/MyTracks/default.properties index ee3f68e34..75e62f9cb 100644 --- a/MyTracks/default.properties +++ b/MyTracks/default.properties @@ -13,7 +13,5 @@ split.density=false target=Google Inc.:Google APIs:13 android.library.reference.1=../MyTracksLib/ -# ProGuard is turned off while we investigate the removal of code that -# isn't actually dead from Fusion Tables. See issue 303 for an example of -# the result of that removal. -#proguard.config=proguard.cfg +# Enable proguard. +proguard.config=proguard.cfg diff --git a/MyTracks/libs/README.txt b/MyTracks/libs/README.txt index 62e619f85..0df5b07bb 100644 --- a/MyTracks/libs/README.txt +++ b/MyTracks/libs/README.txt @@ -3,12 +3,20 @@ own licenses, which allow their usage for the My Tracks application. Any other applications that wish to use these files should consult the appropriate licenses or the JAR's authors. -References are provided to the libraries: +google-api-client/ +- see http://code.google.com/p/google-api-java-client/. +- contains Google API client library, google-api-client-1.5.0-beta.jar, and its + dependencies. +- google-api-client-1.5.0-beta.jar depends on protobuf-java-2.2.0.jar, however, + MyTracksLib already includes protobuf-java.2.3.0-lite.jar. Thus using the + newer version, protobuf-java.2.3.0-lite.jar. +- google-api-client-1.5.0-beta.jar also depends on xpp3-1.1.4c.jar, however, + some of its classes are already included in the android framework, thus not + including xpp3-1.1.4c.jar. -google-api-client-*.jar (GData client): -http://code.google.com/p/google-api-java-client/ +google-common.jar -google-common.jar, -googleloginclient-helper.jar, -libmymaps.jar (Google My Maps upload library): -Licensed exclusively for use in My Tracks and derived Android applications. +googleloginclient-helper.jar + +libGoogleAnalytics.jar +- see http://code.google.com/mobile/analytics/docs/. diff --git a/MyTracks/libs/google-api-client-1.2.2-alpha.jar b/MyTracks/libs/google-api-client-1.2.2-alpha.jar deleted file mode 100644 index 7194648fd..000000000 Binary files a/MyTracks/libs/google-api-client-1.2.2-alpha.jar and /dev/null differ diff --git a/MyTracks/libs/google-api-client/commons-codec-1.3.jar b/MyTracks/libs/google-api-client/commons-codec-1.3.jar new file mode 100644 index 000000000..957b6752a Binary files /dev/null and b/MyTracks/libs/google-api-client/commons-codec-1.3.jar differ diff --git a/MyTracks/libs/google-api-client/commons-logging-1.1.1.jar b/MyTracks/libs/google-api-client/commons-logging-1.1.1.jar new file mode 100644 index 000000000..1deef144c Binary files /dev/null and b/MyTracks/libs/google-api-client/commons-logging-1.1.1.jar differ diff --git a/MyTracks/libs/google-api-client/google-api-client-1.5.0-beta.jar b/MyTracks/libs/google-api-client/google-api-client-1.5.0-beta.jar new file mode 100644 index 000000000..41f2e578e Binary files /dev/null and b/MyTracks/libs/google-api-client/google-api-client-1.5.0-beta.jar differ diff --git a/MyTracks/libs/google-api-client/google-http-client-1.5.0-beta.jar b/MyTracks/libs/google-api-client/google-http-client-1.5.0-beta.jar new file mode 100644 index 000000000..b5e610ddf Binary files /dev/null and b/MyTracks/libs/google-api-client/google-http-client-1.5.0-beta.jar differ diff --git a/MyTracks/libs/google-api-client/google-oauth-client-1.5.0-beta.jar b/MyTracks/libs/google-api-client/google-oauth-client-1.5.0-beta.jar new file mode 100644 index 000000000..af73e9aa4 Binary files /dev/null and b/MyTracks/libs/google-api-client/google-oauth-client-1.5.0-beta.jar differ diff --git a/MyTracks/libs/google-api-client/gson-1.6.jar b/MyTracks/libs/google-api-client/gson-1.6.jar new file mode 100644 index 000000000..40648939f Binary files /dev/null and b/MyTracks/libs/google-api-client/gson-1.6.jar differ diff --git a/MyTracks/libs/google-api-client/guava-r09.jar b/MyTracks/libs/google-api-client/guava-r09.jar new file mode 100644 index 000000000..30dbc5692 Binary files /dev/null and b/MyTracks/libs/google-api-client/guava-r09.jar differ diff --git a/MyTracks/libs/google-api-client/jackson-core-asl-1.6.7.jar b/MyTracks/libs/google-api-client/jackson-core-asl-1.6.7.jar new file mode 100644 index 000000000..7c1207210 Binary files /dev/null and b/MyTracks/libs/google-api-client/jackson-core-asl-1.6.7.jar differ diff --git a/MyTracks/libs/google-api-client/jsr305-1.3.9.jar b/MyTracks/libs/google-api-client/jsr305-1.3.9.jar new file mode 100644 index 000000000..a9afc6619 Binary files /dev/null and b/MyTracks/libs/google-api-client/jsr305-1.3.9.jar differ diff --git a/MyTracks/proguard.cfg b/MyTracks/proguard.cfg index 8a6087a72..8a6a82b85 100644 --- a/MyTracks/proguard.cfg +++ b/MyTracks/proguard.cfg @@ -14,6 +14,10 @@ -dontwarn com.google.android.gsf.** -dontwarn org.codehaus.** -dontwarn com.google.appengine.** +-dontwarn org.apache.avalon.framework.logger.** +-dontwarn org.apache.log.** +-dontwarn org.apache.log4j.** +-dontwarn javax.servlet.** # Make our stack traces useful # Line numbers will be correct, file names will be replaced by "MT" since the @@ -51,3 +55,21 @@ -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } + +# Needed by google-api-client to keep generic types and @Key annotations accessed via reflection + +-keepclassmembers class * { + @com.google.api.client.util.Key ; +} + +-keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault + +# Needed by Guava + +-dontwarn sun.misc.Unsafe + +# Keep services needed by ANT+ protocol +-keep public class com.dsi.ant.IAnt_6 +-keep public class com.dsi.ant.IAnt +-keep public class com.dsi.ant.IServiceSettings + diff --git a/MyTracks/res/layout/mytracks_detail.xml b/MyTracks/res/layout/mytracks_detail.xml index d1a7fafa2..8312000f2 100644 --- a/MyTracks/res/layout/mytracks_detail.xml +++ b/MyTracks/res/layout/mytracks_detail.xml @@ -40,7 +40,9 @@ limitations under the License. android:singleLine="true" android:autoText="true" android:capitalize="words" - android:selectAllOnFocus="true"/> + android:selectAllOnFocus="true" + android:hint="@string/trackdetails_name_hint" + android:imeOptions="actionNext"/> + android:singleLine="true" + android:hint="@string/trackdetails_category_hint" + android:imeOptions="actionNext"/> @@ -61,7 +65,9 @@ limitations under the License. android:selectAllOnFocus="true" android:maxLines="50" android:gravity="top" - android:layout_weight="1"/> + android:layout_weight="1" + android:hint="@string/trackdetails_description_hint" + android:imeOptions="actionDone"/> + android:layout_height="wrap_content" + android:layout_width="fill_parent" + android:orientation="horizontal" + android:paddingLeft="2dip" + android:paddingRight="2dip" + android:paddingTop="4dip"> + +