title: How to use native C library in flutter package
body: <p>I have a library written in C which I have previously used from a java android app via JNI.</p>
  
  <p>I am now moving to use flutter instead and the plan was to make a flutter package that wraps the C library. </p>
  
  <p>The flutter project for the package has been created and the plan is to use Platform Channels (invokeMethod to call some simple Java methods that invokes the JNI for the library. I think I have most of this implemented. </p>
  
  <p>Problem is, however that I would normally add the info about the existence of the library and JNI to the build.gradle of my android java project. I can however not find these files when I am working in the structure of a flutter package. If I instead build a standard flutter project (an app with UI) i suddenly have the build.gradle files. </p>
  
  <p>How can I add these gradle files or should I add the info about the lib/JNI to some other flutter specific files instead? 
  Do the multilayered dart->platformChannel -> java -> jni -> C library aproach sound like the right way of doing it? or is there a better way?</p>