react-native-aztec icon indicating copy to clipboard operation
react-native-aztec copied to clipboard

Prepare project for debugging with Aztec libraries in-place

Open mzorz opened this issue 7 years ago • 0 comments

To make it easier to work with, we need a way to compile the project with a local Aztec repository, as it was referenced to in this commit https://github.com/wordpress-mobile/react-native-aztec/commit/a2fcea9f301e1ea2281f817ed16989951311cab4

After the changes made to the project for library re-structuring, we're back with the remote-repo urls, and we need to be able to bring then local repos back (for the meantime at least).

As far as per our tests went, we could see that it was not enough to add the settings.gradle file to the main android folder with this content:

include  ':aztec', ':glide-loader', ':picasso-loader', ':wordpress-comments', ':wordpress-shortcodes'

project(':aztec').projectDir = file("../../AztecEditor-Android/aztec")
project(':glide-loader').projectDir = file("../../AztecEditor-Android/glide-loader")
project(':wordpress-comments').projectDir = file("../../AztecEditor-Android/wordpress-comments")
project(':wordpress-shortcodes').projectDir = file("../../AztecEditor-Android/wordpress-shortcodes")

and changing build.gradle to this:

  api project (':aztec')
    api project (':glide-loader')
    api project (':wordpress-shortcodes')
    api project (':wordpress-comments')

We kept getting this error:

Project with path ':aztec' could not be found in project ':react-native-aztec'. Open File.

FWIW, It seems that the settings.gradle file is not even loaded. Decided with @daniloercoli to open an issue to track it better as we've spent some time trying to make it work already. Will need to investigate further.

mzorz avatar Apr 17 '18 17:04 mzorz