diff --git a/ldap_sync_2.0_as.iml b/.idea/LDAP-Sync.iml similarity index 70% rename from ldap_sync_2.0_as.iml rename to .idea/LDAP-Sync.iml index 9a6ece3..4c32a2a 100644 --- a/ldap_sync_2.0_as.iml +++ b/.idea/LDAP-Sync.iml @@ -1,5 +1,5 @@ - + @@ -13,7 +13,7 @@ - + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index e026154..e83cc76 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,26 +1,39 @@ + + diff --git a/.idea/modules.xml b/.idea/modules.xml index 1d58210..8fe1e65 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,8 +2,8 @@ + - \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/app/app.iml b/app/app.iml index a95f2fe..fc51f1b 100644 --- a/app/app.iml +++ b/app/app.iml @@ -49,13 +49,6 @@ - - - - - - - @@ -63,6 +56,13 @@ + + + + + + + @@ -84,37 +84,27 @@ - - - + - - - - - - - - - + + - @@ -141,7 +131,6 @@ - @@ -151,6 +140,7 @@ + diff --git a/app/build.gradle b/app/build.gradle index ab2d9cd..f7c6ce0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,7 +5,7 @@ android { buildToolsVersion "28.0.2" defaultConfig { - applicationId "de.danielweisser.android.ldapsync" + applicationId "de.wikilab.android.ldapsync" minSdkVersion 11 targetSdkVersion 22 compileOptions { @@ -28,7 +28,8 @@ android { } dependencies { - implementation files('libs/unboundid-ldapsdk-me.jar') + // https://mvnrepository.com/artifact/com.unboundid/unboundid-ldapsdk + implementation group: 'com.unboundid', name: 'unboundid-ldapsdk', version: '3.2.1' implementation 'junit:junit:4.12' testImplementation "org.robolectric:robolectric:3.8" } diff --git a/app/libs/unboundid-ldapsdk-me.jar b/app/libs/unboundid-ldapsdk-me.jar deleted file mode 100644 index 8f2824c..0000000 Binary files a/app/libs/unboundid-ldapsdk-me.jar and /dev/null differ diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 3214366..b7dc727 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,8 +1,8 @@ + package="de.wikilab.android.ldapsync" + android:versionCode="15" + android:versionName="2.1.1" android:installLocation="internalOnly"> @@ -23,7 +23,7 @@ android:label="@string/app_name" android:theme="@style/LightThemeSelector" > @@ -35,7 +35,7 @@ android:resource="@xml/authenticator" /> @@ -48,7 +48,7 @@ @@ -60,10 +60,10 @@ - + - + @@ -85,7 +85,7 @@ --> - Daniel Weisser */ diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/authenticator/LDAPAuthenticatorActivity.java b/app/src/main/java/de/wikilab/android/ldapsync/authenticator/LDAPAuthenticatorActivity.java similarity index 97% rename from app/src/main/java/de/danielweisser/android/ldapsync/authenticator/LDAPAuthenticatorActivity.java rename to app/src/main/java/de/wikilab/android/ldapsync/authenticator/LDAPAuthenticatorActivity.java index bfe6bb1..8cd20dd 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/authenticator/LDAPAuthenticatorActivity.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/authenticator/LDAPAuthenticatorActivity.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.authenticator; +package de.wikilab.android.ldapsync.authenticator; import android.app.Activity; import android.app.AlertDialog; @@ -38,9 +38,9 @@ import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; -import de.danielweisser.android.ldapsync.R; -import de.danielweisser.android.ldapsync.client.LDAPServerInstance; -import de.danielweisser.android.ldapsync.client.LDAPUtilities; +import de.wikilab.android.ldapsync.R; +import de.wikilab.android.ldapsync.client.LDAPServerInstance; +import de.wikilab.android.ldapsync.client.LDAPUtilities; /** * Activity which displays login screen to the user. diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/client/Address.java b/app/src/main/java/de/wikilab/android/ldapsync/client/Address.java similarity index 98% rename from app/src/main/java/de/danielweisser/android/ldapsync/client/Address.java rename to app/src/main/java/de/wikilab/android/ldapsync/client/Address.java index 331541d..1b9523d 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/client/Address.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/client/Address.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.client; +package de.wikilab.android.ldapsync.client; import android.text.TextUtils; diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/client/Contact.java b/app/src/main/java/de/wikilab/android/ldapsync/client/Contact.java similarity index 98% rename from app/src/main/java/de/danielweisser/android/ldapsync/client/Contact.java rename to app/src/main/java/de/wikilab/android/ldapsync/client/Contact.java index e0e1af9..a5c5162 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/client/Contact.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/client/Contact.java @@ -14,14 +14,13 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.client; +package de.wikilab.android.ldapsync.client; import java.io.ByteArrayOutputStream; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.BitmapFactory; -import android.provider.ContactsContract; import android.util.Log; import com.unboundid.ldap.sdk.ReadOnlyEntry; diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/client/ContactTest.java b/app/src/main/java/de/wikilab/android/ldapsync/client/ContactTest.java similarity index 87% rename from app/src/main/java/de/danielweisser/android/ldapsync/client/ContactTest.java rename to app/src/main/java/de/wikilab/android/ldapsync/client/ContactTest.java index 985305e..c22f6bc 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/client/ContactTest.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/client/ContactTest.java @@ -1,4 +1,4 @@ -package de.danielweisser.android.ldapsync.client; +package de.wikilab.android.ldapsync.client; import static org.junit.Assert.*; diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/client/LDAPServerInstance.java b/app/src/main/java/de/wikilab/android/ldapsync/client/LDAPServerInstance.java similarity index 99% rename from app/src/main/java/de/danielweisser/android/ldapsync/client/LDAPServerInstance.java rename to app/src/main/java/de/wikilab/android/ldapsync/client/LDAPServerInstance.java index b1d8e8f..308e50d 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/client/LDAPServerInstance.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/client/LDAPServerInstance.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.client; +package de.wikilab.android.ldapsync.client; import java.io.Serializable; diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/client/LDAPUtilities.java b/app/src/main/java/de/wikilab/android/ldapsync/client/LDAPUtilities.java similarity index 95% rename from app/src/main/java/de/danielweisser/android/ldapsync/client/LDAPUtilities.java rename to app/src/main/java/de/wikilab/android/ldapsync/client/LDAPUtilities.java index 1f99ffa..55a7004 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/client/LDAPUtilities.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/client/LDAPUtilities.java @@ -15,10 +15,9 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.client; +package de.wikilab.android.ldapsync.client; import java.util.ArrayList; -import java.util.Arrays; import java.util.Date; import java.util.List; @@ -39,10 +38,9 @@ import com.unboundid.ldap.sdk.SearchResultEntry; import com.unboundid.ldap.sdk.SearchScope; -import de.danielweisser.android.ldapsync.R; -import de.danielweisser.android.ldapsync.activity.SyncErrorActivity; -import de.danielweisser.android.ldapsync.authenticator.LDAPAuthenticatorActivity; -import de.danielweisser.android.ldapsync.syncadapter.SyncService; +import de.wikilab.android.ldapsync.R; +import de.wikilab.android.ldapsync.activity.SyncErrorActivity; +import de.wikilab.android.ldapsync.authenticator.LDAPAuthenticatorActivity; /** * Provides utility methods for communicating with the LDAP server. diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/platform/ContactManager.java b/app/src/main/java/de/wikilab/android/ldapsync/platform/ContactManager.java similarity index 98% rename from app/src/main/java/de/danielweisser/android/ldapsync/platform/ContactManager.java rename to app/src/main/java/de/wikilab/android/ldapsync/platform/ContactManager.java index cc9248c..df999c8 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/platform/ContactManager.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/platform/ContactManager.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.platform; +package de.wikilab.android.ldapsync.platform; import java.util.ArrayList; import java.util.HashMap; @@ -46,10 +46,10 @@ import android.provider.ContactsContract.CommonDataKinds.StructuredName; import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; import android.util.Log; -import de.danielweisser.android.ldapsync.Constants; -import de.danielweisser.android.ldapsync.client.Address; -import de.danielweisser.android.ldapsync.client.Contact; -import de.danielweisser.android.ldapsync.syncadapter.Logger; +import de.wikilab.android.ldapsync.Constants; +import de.wikilab.android.ldapsync.client.Address; +import de.wikilab.android.ldapsync.client.Contact; +import de.wikilab.android.ldapsync.syncadapter.Logger; /** * Class for managing contacts sync related operations diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/platform/ContactMerger.java b/app/src/main/java/de/wikilab/android/ldapsync/platform/ContactMerger.java similarity index 96% rename from app/src/main/java/de/danielweisser/android/ldapsync/platform/ContactMerger.java rename to app/src/main/java/de/wikilab/android/ldapsync/platform/ContactMerger.java index 5ab516e..a47c15c 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/platform/ContactMerger.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/platform/ContactMerger.java @@ -14,11 +14,10 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.platform; +package de.wikilab.android.ldapsync.platform; import java.util.ArrayList; import java.util.Arrays; -import java.util.HashSet; import android.content.ContentProviderOperation; import android.content.ContentValues; @@ -32,9 +31,9 @@ import android.provider.ContactsContract.CommonDataKinds.StructuredName; import android.provider.ContactsContract.CommonDataKinds.StructuredPostal; import android.text.TextUtils; -import de.danielweisser.android.ldapsync.client.Address; -import de.danielweisser.android.ldapsync.client.Contact; -import de.danielweisser.android.ldapsync.syncadapter.Logger; +import de.wikilab.android.ldapsync.client.Address; +import de.wikilab.android.ldapsync.client.Contact; +import de.wikilab.android.ldapsync.syncadapter.Logger; /** * A helper class that merges the fields of existing contacts with the fields of new contacts. @@ -184,7 +183,7 @@ public void updateAddress(int adressType) { } } - private void updateAddress(de.danielweisser.android.ldapsync.client.Address newAddress, Address existingAddress, int adressType) { + private void updateAddress(de.wikilab.android.ldapsync.client.Address newAddress, Address existingAddress, int adressType) { final String selection = Data.RAW_CONTACT_ID + "=? AND " + Data.MIMETYPE + "=? AND " + StructuredPostal.TYPE + "=?"; if ((newAddress == null || newAddress.isEmpty()) && existingAddress != null) { l.d("Delete address " + adressType + "(" + existingC.getFirstName() + " " + existingC.getLastName() + ")"); diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/Logger.java b/app/src/main/java/de/wikilab/android/ldapsync/syncadapter/Logger.java similarity index 95% rename from app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/Logger.java rename to app/src/main/java/de/wikilab/android/ldapsync/syncadapter/Logger.java index a61d40c..9bd7b7a 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/Logger.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/syncadapter/Logger.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.syncadapter; +package de.wikilab.android.ldapsync.syncadapter; import java.io.BufferedWriter; import java.io.File; @@ -26,7 +26,7 @@ import android.os.Environment; import android.util.Log; -import de.danielweisser.android.ldapsync.Constants; +import de.wikilab.android.ldapsync.Constants; /** * A simple file logger, that logs the details of the synchronization process to SD card. diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/SyncAdapter.java b/app/src/main/java/de/wikilab/android/ldapsync/syncadapter/SyncAdapter.java similarity index 90% rename from app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/SyncAdapter.java rename to app/src/main/java/de/wikilab/android/ldapsync/syncadapter/SyncAdapter.java index 7cf1149..9f39cc6 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/SyncAdapter.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/syncadapter/SyncAdapter.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.syncadapter; +package de.wikilab.android.ldapsync.syncadapter; import java.util.ArrayList; import java.util.Date; @@ -31,11 +31,11 @@ import android.os.Bundle; import android.text.TextUtils; import android.util.Log; -import de.danielweisser.android.ldapsync.Constants; -import de.danielweisser.android.ldapsync.client.Contact; -import de.danielweisser.android.ldapsync.client.LDAPServerInstance; -import de.danielweisser.android.ldapsync.client.LDAPUtilities; -import de.danielweisser.android.ldapsync.platform.ContactManager; +import de.wikilab.android.ldapsync.Constants; +import de.wikilab.android.ldapsync.client.Contact; +import de.wikilab.android.ldapsync.client.LDAPServerInstance; +import de.wikilab.android.ldapsync.client.LDAPUtilities; +import de.wikilab.android.ldapsync.platform.ContactManager; /** * SyncAdapter implementation for synchronizing LDAP contacts to the platform ContactOperations provider. diff --git a/app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/SyncService.java b/app/src/main/java/de/wikilab/android/ldapsync/syncadapter/SyncService.java similarity index 96% rename from app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/SyncService.java rename to app/src/main/java/de/wikilab/android/ldapsync/syncadapter/SyncService.java index 58b7cb4..62359fd 100644 --- a/app/src/main/java/de/danielweisser/android/ldapsync/syncadapter/SyncService.java +++ b/app/src/main/java/de/wikilab/android/ldapsync/syncadapter/SyncService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package de.danielweisser.android.ldapsync.syncadapter; +package de.wikilab.android.ldapsync.syncadapter; import android.app.Service; import android.content.Intent; diff --git a/app/src/main/res/layout/sync_error_layout.xml b/app/src/main/res/layout/sync_error_layout.xml index ed3e8f6..760f16c 100644 --- a/app/src/main/res/layout/sync_error_layout.xml +++ b/app/src/main/res/layout/sync_error_layout.xml @@ -9,7 +9,6 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:padding="10dp" - android:textColor="#FFFFFF" />