Created
July 15, 2021 11:16
-
-
Save prempalsingh/dc681eb7691c6abd1b16ef63e3edd918 to your computer and use it in GitHub Desktop.
Img.ly Kotlin DSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ly.img.android.sdk.IMGLYConfig | |
plugins { | |
id("com.android.application") | |
kotlin("android") | |
id("ly.img.android.sdk") | |
} | |
configure<IMGLYConfig> { | |
pesdk { | |
enabled(true) | |
licencePath(null) | |
} | |
// Define the modules you are need | |
modules { | |
// Add all the UI modules you are need | |
include("ui:core") | |
include("ui:text") | |
include("ui:focus") | |
include("ui:frame") | |
include("ui:brush") | |
include("ui:filter") | |
include("ui:camera") | |
include("ui:sticker") | |
include("ui:overlay") | |
include("ui:transform") | |
include("ui:adjustment") | |
include("ui:text-design") | |
// Add the serializer if you need | |
include("backend:serializer") | |
// Add asset packs if you need | |
include("assets:font-basic") | |
include("assets:frame-basic") | |
include("assets:filter-basic") | |
include("assets:overlay-basic") | |
include("assets:sticker-shapes") | |
include("assets:sticker-emoticons") | |
} | |
} | |
android { | |
compileSdkVersion(30) | |
buildToolsVersion("30.0.3") | |
defaultConfig { | |
applicationId("com.example.imglytest") | |
minSdkVersion(16) | |
targetSdkVersion(30) | |
versionCode(1) | |
versionName("1.0") | |
testInstrumentationRunner("androidx.test.runner.AndroidJUnitRunner") | |
} | |
buildTypes { | |
getByName("release") { | |
isMinifyEnabled = false | |
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | |
} | |
} | |
compileOptions { | |
sourceCompatibility(JavaVersion.VERSION_1_8) | |
targetCompatibility(JavaVersion.VERSION_1_8) | |
} | |
kotlinOptions { | |
jvmTarget = "1.8" | |
} | |
} | |
dependencies { | |
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.5.20") | |
implementation("androidx.core:core-ktx:1.6.0") | |
implementation("androidx.appcompat:appcompat:1.3.0") | |
implementation("com.google.android.material:material:1.4.0") | |
implementation("androidx.constraintlayout:constraintlayout:2.0.4") | |
testImplementation("junit:junit:4.+") | |
androidTestImplementation("androidx.test.ext:junit:1.1.3") | |
androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
repositories { | |
google() | |
mavenCentral() | |
maven(url = "https://artifactory.img.ly/artifactory/imgly") | |
} | |
dependencies { | |
classpath("com.android.tools.build:gradle:4.2.2") | |
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20") | |
classpath("ly.img.android.pesdk:plugin:8.3.1") | |
// NOTE: Do not place your application dependencies here; they belong | |
// in the individual module build.gradle files | |
} | |
} | |
allprojects { | |
repositories { | |
google() | |
mavenCentral() | |
jcenter() // Warning: this repository is going to shut down soon | |
} | |
} | |
tasks.register("clean", Delete::class) { | |
delete(rootProject.buildDir) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment