Skip to content

4.2.0

Compare
Choose a tag to compare
@agrosner agrosner released this 17 Dec 15:59
· 528 commits to master since this release
966a9ad

Support for Android O Content Providers.
Simply add this line to your AndroidManifest.xml:

<provider
            android:name="com.raizlabs.android.dbflow.runtime.StubContentProvider"
            android:authorities="com.dbflow.authority"/>

Which will allow normal content observing to continue.
It is highly recommended to supply your own authority: use your own package name. so for com.grosner.example app I would add:

<provider
            android:name="com.raizlabs.android.dbflow.runtime.StubContentProvider"
            android:authorities="com.grosner.example"/>
FlowManager.init(FlowConfig.Builder(context)
            .addDatabaseConfig(DatabaseConfig.Builder(MyDatabase.class)
                .modelNotifier(new ContentResolverNotifier("com.grosner.example"))
                .build()).build());