Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #89 from iden3/feature/android
Browse files Browse the repository at this point in the history
added missing files
  • Loading branch information
rauljareno authored Apr 3, 2020
2 parents 638c294 + a9eeb6f commit 02a51a6
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
android.enableJetifier=true
android.useAndroidX=true
2 changes: 2 additions & 0 deletions android/iden3coreapi/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.iden3.iden3coreapi" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.iden3.iden3coreapi

import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.iden3.iden3coreapi.test", appContext.packageName)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.iden3.iden3coreapi

class Iden3CoreAPI {
companion object {
@JvmStatic lateinit var instance: Iden3CoreAPI
}

init {
instance = this
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.iden3.iden3coreapi

import org.junit.Test

import org.junit.Assert.*

/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
1 change: 1 addition & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include ':iden3coreapi'

0 comments on commit 02a51a6

Please sign in to comment.