AppBlade / AppBladeSDK

The SDK for AppBlade; iOS and Android
https://appblade.com
MIT License
23 stars 14 forks source link

Unused db tables should be cleaned up between builds that have features disabled. #88

Closed andrewtremblay closed 10 years ago

andrewtremblay commented 10 years ago

Example case :

  1. User launches app that has crash reporting enabled.
  2. CrashReport manager creates "crashreport" table in database, maybe generates a few crash reports.
  3. User launches app that has does not include crash reporting code.
  4. database will still have the "crashreport" table with no crashreport code

Problems that this will cause:

Proposed solution: Tracking all the enabled features (and the tables dependent to them) in the current and last build, similar to how we track the AppBladeKeys.plist file (in the keychain), and then blowing away the tables that we know are linked to specific features on app update first-launch.

andrewtremblay commented 10 years ago

Bonus Challenge How to handle something more ubiquitous like the Custom Parameters function?

andrewtremblay commented 10 years ago

This is solved in the sdk rewrite branch. Bonus challenge included.