How can I download PE.SDK or VE.SDK dependencies for offline use?
If you're looking to use PE.SDK or VE.SDK dependencies offline, you can easily do so by using our download.sh script. Here's a simple guide to get you started:
Place the Script:
Copy the (download.sh) script into the root folder of your project.
Set script permissions by the command
chmod 0700 ./download.sh
in your terminal.Download specific version, such as 10.8.1, using this command
./download.sh 10.8.1
. Just replace "10.8.1" with the version number you require.Finally, you'll need to update the repository in your project's settings. Change the repository
from:
maven { url 'https://artifactory.img.ly/artifactory/imgly' }
to:
maven { url "file://${project.rootDir}/artifactory.img.ly/artifactory/imgly" }
This step redirects the repository to use the local files you've downloaded.
This way, you can access the IMG.LY dependencies offline, without the need to use our artifactory. However, the local maven repository only includes IMG.LY modules. For other third-party dependencies like WorkManager, Glide, etc., you still need to have mavenCentral()
or google()
declared as repositories.