breautek commented on issue #1524:
URL: 
https://github.com/apache/cordova-android/issues/1524#issuecomment-1339903039

   I think `compile` is coming from elsewhere. I'm fairly certain that 
`lib-file` **only** copies the target file into the `libs` folder, and the 
[codebase](https://github.com/apache/cordova-android/blob/56d4b8312bc85253e975da524d9a3c72d7df5418/lib/pluginHandlers.js#L49)
 appears to reflect this.
   
   In my plugin I use:
   
   ```xml
   <platform name="android">
       <framework src="src/android/sqlite.gradle" custom="true" 
type="gradleReference" />
       <lib-file src="bin/sqlite3.aar" />
     </platform>
   ```
   
   `lib-file` copies the aar file into the proper directory inside the android 
studio project. The gradle reference adds `apply from: 
"../@totalpave/cordova-plugin-libsqlite/iriapp-sqlite.gradle"`  to my 
`build.gradle` file which contains the following contents:
   
   ```gradle
   dependencies {
       implementation files('libs/sqlite3.aar')
   }
   ```
   
   `lib-file` by itself doesn't appear to change any of the gradle files.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to