Skip to content

Commit

Permalink
Update readme and install DeepAR via maven server
Browse files Browse the repository at this point in the history
  • Loading branch information
DishoD committed Jul 17, 2023
1 parent e377a30 commit 68ef78f
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions .idea/runConfigurations.xml

This file was deleted.

23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# quickstart-android-java

To run the example
* Go to https://developer.deepar.ai, sign up, create the project and the Android app, copy the license key and paste it to MainActivity.java (instead of your_license_key_goes_here string)
* Download the SDK from https://developer.deepar.ai and copy the deepar.aar into quickstart-android-java/deepar folder
## Overview

This is an example app demonstrating DeepAR SDK.

- Preview of fun face filters, effects and background replacement.
- Carousel with filter thumbnails.
- Take screenshot.
- Record video.
- Front and back camera.
- Source code demonstrates how to integrate DeepAR for Android in your app.

For more info on DeepAR for Android see: https://docs.deepar.ai/category/deepar-sdk-for-android

## How to run

1. Open the project in Android Studio.
2. Create a DeepAR developer account: https://developer.deepar.ai/signup.
3. Create a project: https://developer.deepar.ai/projects.
4. Add a Android app to the project. Note that you need to specify the `applicationId` of your app app. The `applicationId` is located in the `app/build.gradle` and in this case it is "ai.deepar.deepar_example".
5. Copy the generated license key in the `MainActivity.java` instead of your_license_key_here.
8 changes: 1 addition & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,15 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}
}
repositories {
flatDir {
dirs '../deepar'
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.navigation:navigation-fragment:2.3.4'
implementation 'androidx.navigation:navigation-ui:2.3.4'
testImplementation 'junit:junit:4.12'
implementation (name: 'deepar', ext:'aar')
implementation 'ai.deepar.ar:DeepAR:5.3.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
def camerax_version = "1.0.1"
Expand Down
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ buildscript {
repositories {
google()
jcenter()
maven {
url "https://sdk.developer.deepar.ai/maven-android-repository/releases/"
}

}
dependencies {
Expand All @@ -18,6 +21,9 @@ allprojects {
repositories {
google()
jcenter()
maven {
url "https://sdk.developer.deepar.ai/maven-android-repository/releases/"
}
}
}

Expand Down
2 changes: 0 additions & 2 deletions deepar/build.gradle

This file was deleted.

2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include ':app', ':deepar'
include ':app'
rootProject.name='DeepAR_Example'

0 comments on commit 68ef78f

Please sign in to comment.