How to install the library - TypingDNA/TypingDNARecorder-Android GitHub Wiki
How to install the library
To install the TypingDNARecorderMobile
for Android, follow these few steps:
-
Using
Android Studio
- Download the
aar
library from our GitHub repository - In
Android Studio
, right-click on your project and selectOpen Module Settings
- Go to
Dependencies
and in theModules
column click on the+
sign - Select
Import .JAR/.AAR Package
and then selecttypingdnarecordermobile.aar
in the folder you downloaded it, and clickFinish
- Go to the
Declared Dependencies
column for your project and click on the+
sign, thenModule dependency
and clickApply
- Download the
-
Manually:
- Create a new folder in your application in the same location as the application’s
build.gradle
file calledaarlib
(for example). - Copy the
typingdnarecordermobile.aar
file into this new folder. - In the
build.gradle
file of the app add the following lines in theandroid
section:
repositories { flatDir { dirs 'aarlib' } }
- Also in
build.gradle
add in thedependencies
section: implementation(name: 'typingdnarecordermobile', ext: 'aar') - Rebuild your application.
- Create a new folder in your application in the same location as the application’s