The Hyperion plugin of DBFlowManager for viewing DBFlow databases in the app.
The Hyperion plugin of DBFlowManager for viewing DBFlow databases in the app.
First, follow the README to set up DBFlow. Then, follow the README to set up Hyperion. Then, all you need to do is simply add the dependency of DBFlowManager Hyperion Plugin and DBFlowManager like this in app’s build.gradle
file:
dependencies {
// DBFlow Manager
implementation 'com.wajahatkarim3.DBFlowManager:DBFlowManager:3.1.1-v1'
// DBFLow Manager Hyperion Plugin
debugImplementation 'com.wajahatkarim3.dbflowmanager-hyperion-library:dbflowmanager-hyperion-library:1.0.4'
releaseImplementation 'com.wajahatkarim3.dbflowmanager-hyperion-library:dbflowmanager-hyperion-library-no-op:1.0.4'
}
Or add as a new dependency inside your pom.xml
<dependency>
<groupId>com.wajahatkarim3.DBFlowManager</groupId>
<artifactId>DBFlowManager</artifactId>
<version>3.1.1-v1</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.wajahatkarim3.dbflowmanager-hyperion-library</groupId>
<artifactId>dbflowmanager-hyperion-library</artifactId>
<version>1.0.4</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.wajahatkarim3.dbflowmanager-hyperion-library</groupId>
<artifactId>dbflowmanager-hyperion-library-no-op</artifactId>
<version1.0.4</version>
<type>pom</type>
</dependency>
Although, Hyperion will find the plugin automatically and add it to the list when you open the Hyperion drawer (as shown in the demo GIF above), but you need it tell the library about your database class. You can do it in your Application
file after the DBFlow configuration is set like this:
public class MyApp extends Application {
@Override
public void onCreate() {
super.onCreate();
// DBFLow Configuration
FlowManager.init(new FlowConfig.Builder(this).build());
// ....
// Other configs like Retrofit, Dagger modules, Picasso, etc.
// ....
// Hyperion DBFlowManager Plugin Setup
DBFlowManager_Hyperion_Constants.setDatabaseName(getApplicationContext(), YOUR_APP_DB_FILE.class);
}
}
If you get any crash about calling FlowManager.init()
like this issue, then refer to this solution.
The key point here is that if you use kotlin for databases and tables, then use kapt
for DBFlow annotation processings.
This project needs you! If you would like to support this project’s further development, the creator of this project or the continuous maintenance of this project, feel free to donate. Your donation is highly appreciated (and I love food, coffee and beer). Thank you!
PayPal
Of course, you can also choose what you want to donate, all donations are awesome!
Wajahat Karim
Copyright 2018 Wajahat Karim
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.