项目作者: wajahatkarim3

项目描述 :
The Hyperion plugin of DBFlowManager for viewing DBFlow databases in the app.
高级语言: Java
项目地址: git://github.com/wajahatkarim3/DBFlowManager-Hyperion-Plugin.git
创建时间: 2018-04-26T12:10:52Z
项目社区:https://github.com/wajahatkarim3/DBFlowManager-Hyperion-Plugin

开源协议:Apache License 2.0

下载


DBFlowManager-Hyperion-Plugin

The Hyperion plugin of DBFlowManager for viewing DBFlow databases in the app.

Installation

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:

  1. dependencies {
  2. // DBFlow Manager
  3. implementation 'com.wajahatkarim3.DBFlowManager:DBFlowManager:3.1.1-v1'
  4. // DBFLow Manager Hyperion Plugin
  5. debugImplementation 'com.wajahatkarim3.dbflowmanager-hyperion-library:dbflowmanager-hyperion-library:1.0.4'
  6. releaseImplementation 'com.wajahatkarim3.dbflowmanager-hyperion-library:dbflowmanager-hyperion-library-no-op:1.0.4'
  7. }

Or add as a new dependency inside your pom.xml

  1. <dependency>
  2. <groupId>com.wajahatkarim3.DBFlowManager</groupId>
  3. <artifactId>DBFlowManager</artifactId>
  4. <version>3.1.1-v1</version>
  5. <type>pom</type>
  6. </dependency>
  7. <dependency>
  8. <groupId>com.wajahatkarim3.dbflowmanager-hyperion-library</groupId>
  9. <artifactId>dbflowmanager-hyperion-library</artifactId>
  10. <version>1.0.4</version>
  11. <type>pom</type>
  12. </dependency>
  13. <dependency>
  14. <groupId>com.wajahatkarim3.dbflowmanager-hyperion-library</groupId>
  15. <artifactId>dbflowmanager-hyperion-library-no-op</artifactId>
  16. <version1.0.4</version>
  17. <type>pom</type>
  18. </dependency>

Usage

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:

  1. public class MyApp extends Application {
  2. @Override
  3. public void onCreate() {
  4. super.onCreate();
  5. // DBFLow Configuration
  6. FlowManager.init(new FlowConfig.Builder(this).build());
  7. // ....
  8. // Other configs like Retrofit, Dagger modules, Picasso, etc.
  9. // ....
  10. // Hyperion DBFlowManager Plugin Setup
  11. DBFlowManager_Hyperion_Constants.setDatabaseName(getApplicationContext(), YOUR_APP_DB_FILE.class);
  12. }
  13. }

Troubleshooting

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.

Libraries Used

Donations

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

  • Donate $5: Thank’s for creating this project, here’s a tea (or some juice) for you!
  • Donate $10: Wow, I am stunned. Let me take you to the movies!
  • Donate $15: I really appreciate your work, let’s grab some lunch!
  • Donate $25: That’s some awesome stuff you did right there, dinner is on me!
  • Donate $50: I really really want to support this project, great job!
  • Donate $100: You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
  • Donate $2799: Go buddy, buy Macbook Pro for yourself!

Of course, you can also choose what you want to donate, all donations are awesome!

Developed By

  1. Wajahat Karim

How to Contribute

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am ‘Add some feature’)
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

  1. Copyright 2018 Wajahat Karim
  2. Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License.