ThreeTen / threetenbp

Backport of functionality based on JSR-310 to Java SE 6 and 7. This is NOT an implementation of JSR-310.
http://www.threeten.org/threetenbp/
BSD 3-Clause "New" or "Revised" License
552 stars 139 forks source link

AndroidThreeTen.init() Is it required to call in latest version 1.6.8 #189

Closed rahul-kumawat-vts closed 3 months ago

rahul-kumawat-vts commented 4 months ago

Are we need to call AndroidThreeTen.init() in latest version of library (1.6.8). Can you please provide change doc.

JakeWharton commented 4 months ago

Seems like you want https://github.com/JakeWharton/ThreeTenABP. You'll find a change log there as well.

rahul-kumawat-vts commented 4 months ago

I have updated from 'com.jakewharton.threetenabp:threetenabp:1.2.4' to 'org.threeten:threetenbp:1.6.8'. So now are we need to initialise in Application onCreate().

rahul-kumawat-vts commented 4 months ago

@JakeWharton Can you please confirm - https://github.com/ThreeTen/threetenbp/issues/189#issuecomment-1944082837

Didn't found the change in any official document.

JakeWharton commented 4 months ago

If you are migrating away from ThreeTenABP to ThreeTenBP then you do not need to do anything to initialize the timezone database. It will be read from the jar resources automatically.

I would also suggest profiling your startup after such a change. You should consider a custom timezone database loader that is perhaps lazy or eagerly done on a background thread during splash screen animation because there will likely be non-trivial impact.

jodastephen commented 3 months ago

Closing as discussion better suited to ThreeTenABP