Dependencies

First, it's necessary to add the following Maven repository inside the repositories block of the settings.gradle file

circle-info

In projects that still use an old structure, repositoriesblock is located in thebuild.gradlefile at the app level

repositories {
     maven { url 'https://artifactory.netsocks.io/artifactory/maven' }
}

Once added, you can proceed to include the SDK. To do this, you need to enter the following line inside the dependenciesblock of the build.gradle file (:app level).

implementation ('io.netsocks:android-sdk:1.0.0-rc05') { changing = true }

In the same file, just above the repositories block, it is necessary to add the following code snippet to fetch the latest updates and ensure more efficient monetization:

configurations.all {
  resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
triangle-exclamation

Furthermore, in case you don't already have compatibility with Java 8, it's necessary to add these additional lines inside the android block, also in the samebuild.gradle file

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

Once this is done, you can proceed with the installation and use of the SDK.

Last updated