evernym moblie sdk 1. 프로젝트 셋업

박소정·2021년 10월 11일
0

블록체인

목록 보기
1/5

https://gitlab.com/evernym/mobile/mobile-sdk/-/blob/main/docs/1.ProjectSetup.md
원문서 링크!
에버님 모바일 sdk 문서 따라하기 기록글

1.전제조건

지원하는 최소 버전

  • iOS
    장치 : 64비트만 32비트 X
    운영체제 : ios 10이상
  • 안드로이드
    장치 : 32, 64비트 가능 / arm64, arm7, x86, x86_64 아키텍처
    운영체제 : Android 6+ (API version 23+)

예제 어플 있음!
안드로이드 코틀린 예제 어플 사용할 예정


2. 프로젝트 설정

새 프로젝트 생성

새 프로젝트를 만들거나 기존의 프로젝트 불러오기~

종속성 라이브러리 추가

  1. 프로젝트에서 build.gradle 파일 열고 아래 코드 추가
allprojects {
    
    repositories {
        maven {
            url 'https://evernym.mycloudrepo.io/public/repositories/libvcx-android'
        }
    }
}

예제 파일에서는 이건 이미 추가되어있는 상태였음

  1. app 에서 build.gradle 열고 아래 코드 추가
// VCX library
implementation 'com.evernym:vcx:0.12.0-b5d64b8@aar'
implementation 'net.java.dev.jna:jna:4.5.0@aar'


// optional, required to libVcx logger configuration
implementation 'org.slf4j:slf4j-api:1.7.30'
implementation('com.github.bright:slf4android:0.1.6'){
    transitive = true
}

// optional, required to work with CompletableFuture implementation used by libVcx
implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.1'
  1. minSdkVersion 은 23 이상이어야함
  2. 빌드해서 작동하는지 확인해보기 -> 애뮬레이터에서 직접 실행해보기

setup 끝!

0개의 댓글