Commit 54e6426d authored by Ricki Hirner's avatar Ricki Hirner

Version bump to 1.1.1.1

* add yield points to allow processing of groups with many contacts
* new script to generate contacts for testing
parent 4542da7d
......@@ -17,8 +17,8 @@ android {
minSdkVersion 14
targetSdkVersion 23
versionCode 104
versionName "1.1.1"
versionCode 105
versionName "1.1.1.1"
buildConfigField "long", "buildTime", System.currentTimeMillis() + "L"
}
......
......@@ -126,6 +126,7 @@ public class LocalContact extends AndroidContact implements LocalResource {
.withValue(CachedGroupMembership.MIMETYPE, CachedGroupMembership.CONTENT_ITEM_TYPE)
.withValue(CachedGroupMembership.RAW_CONTACT_ID, id)
.withValue(CachedGroupMembership.GROUP_ID, groupID)
.withYieldAllowed(true)
.build()
);
}
......@@ -138,6 +139,7 @@ public class LocalContact extends AndroidContact implements LocalResource {
Data.RAW_CONTACT_ID + "=? AND " + Data.MIMETYPE + " IN (?,?)",
new String[] { String.valueOf(id), GroupMembership.CONTENT_ITEM_TYPE, CachedGroupMembership.CONTENT_ITEM_TYPE }
)
.withYieldAllowed(true)
.build()
);
}
......
......@@ -81,6 +81,7 @@ public class LocalGroup extends AndroidGroup implements LocalResource {
.withValue(CachedGroupMembership.MIMETYPE, CachedGroupMembership.CONTENT_ITEM_TYPE)
.withValue(CachedGroupMembership.RAW_CONTACT_ID, member)
.withValue(CachedGroupMembership.GROUP_ID, id)
.withYieldAllowed(true)
.build()
);
......@@ -122,6 +123,7 @@ public class LocalGroup extends AndroidGroup implements LocalResource {
batch.enqueue(ContentProviderOperation
.newUpdate(addressBook.syncAdapterURI(ContentUris.withAppendedId(RawContacts.CONTENT_URI, member)))
.withValue(RawContacts.DIRTY, 1)
.withYieldAllowed(true)
.build()
);
......@@ -155,6 +157,7 @@ public class LocalGroup extends AndroidGroup implements LocalResource {
"(" + GroupMembership.MIMETYPE + "=? AND " + GroupMembership.GROUP_ROW_ID + "=?) OR (" +
CachedGroupMembership.MIMETYPE + "=? AND " + CachedGroupMembership.GROUP_ID + "=?)",
new String[] { GroupMembership.CONTENT_ITEM_TYPE, String.valueOf(id), CachedGroupMembership.CONTENT_ITEM_TYPE, String.valueOf(id) })
.withYieldAllowed(true)
.build()
);
......@@ -181,6 +184,7 @@ public class LocalGroup extends AndroidGroup implements LocalResource {
batch.enqueue(ContentProviderOperation
.newUpdate(addressBook.syncAdapterURI(ContentUris.withAppendedId(Groups.CONTENT_URI, id)))
.withValue(COLUMN_PENDING_MEMBERS, null)
.withYieldAllowed(true)
.build()
);
......
......@@ -214,6 +214,7 @@ public class ContactsSyncManager extends SyncManager {
batch.enqueue(ContentProviderOperation
.newUpdate(addressBook.syncAdapterURI(ContentUris.withAppendedId(Groups.CONTENT_URI, groupID)))
.withValue(Groups.DIRTY, 1)
.withYieldAllowed(true)
.build()
);
}
......
org.gradle.jvmargs=-Xmx2048M
#!/usr/bin/ruby
File.open("contacts.vcf", "w") do |f|
for i in 1..600 do
f.puts "BEGIN:VCARD"
f.puts "VERSION:3.0"
f.puts "FN:Kontakt Nr. #{i}"
f.puts "N:Kontakt Nr. #{i}"
f.puts "EMAIL:#{i}@google-god.com"
f.puts "PHONE:#{i}#{i}#{i}"
f.puts "END:VCARD"
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment