Skip to content

Commit

Permalink
Final commit for 4.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JumioMobileTeam committed Mar 18, 2024
1 parent 60a6e84 commit 26ea37c
Show file tree
Hide file tree
Showing 69 changed files with 3,427 additions and 11,916 deletions.
3 changes: 0 additions & 3 deletions DemoApp/.babelrc

This file was deleted.

9 changes: 9 additions & 0 deletions DemoApp/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
# bound in the template on Cocoapods with next React Native release.
gem 'cocoapods', '>= 1.13', '< 1.15'
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
5 changes: 3 additions & 2 deletions DemoApp/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"

/**
Expand Down Expand Up @@ -69,13 +70,13 @@ def enableProguardInReleaseBuilds = false
def jscFlavor = 'org.webkit:android-jsc:+'

android {
compileSdk 33
compileSdk 34

namespace "com.demoapp"
defaultConfig {
applicationId "com.demoapp"
minSdkVersion 21
targetSdkVersion 33
targetSdkVersion 34
versionCode 1
versionName "1.0"
}
Expand Down
14 changes: 10 additions & 4 deletions DemoApp/android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,23 @@
-dontwarn okio.**

# Jumio

-keep class com.jumio.** { *; }
-keep class jumio.** { *; }
# keep constraintlayout.motion classes and members for face help animation
#-keep class androidx.constraintlayout.motion.widget.** { *; }

#Microblink
-keep class com.microblink.** { *; }
-keep class com.microblink.**$* { *; }

#IProov
-keep public class com.iproov.sdk.IProov {public *; }

#JRMT
-keep class org.jmrtd.** { *; }
-keep class net.sf.scuba.** {*;}
-keep class org.bouncycastle.** {*;}
-keep class org.ejbca.** {*;}
-keep class net.sf.scuba.** { *; }
-keep class org.bouncycastle.** { *; }
-keep class org.ejbca.** { *; }

-dontwarn java.nio.**
-dontwarn org.codehaus.**
Expand Down
45 changes: 22 additions & 23 deletions DemoApp/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,38 @@
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.HIGH_SAMPLING_RATE_SENSORS"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.HIGH_SAMPLING_RATE_SENSORS" />

<application

android:name=".MainApplication"
android:allowBackup="false"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true"
android:theme="@style/AppTheme">
android:name=".MainApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:usesCleartextTraffic="true"
tools:ignore="GoogleAppIndexingWarning">
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

<meta-data
<meta-data
android:name="com.google.android.gms.vision.DEPENDENCIES"
android:value="barcode, face"
tools:replace="android:value"/>
tools:replace="android:value" />


<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:exported="true"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
android:exported="true"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.jumio.defaultui.JumioActivity"
android:exported="true"
Expand All @@ -50,7 +50,6 @@
android:scheme="app" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false"/>
</application>

</manifest>
31 changes: 0 additions & 31 deletions DemoApp/android/app/src/main/java/com/demoapp/MainActivity.java

This file was deleted.

21 changes: 21 additions & 0 deletions DemoApp/android/app/src/main/java/com/demoapp/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package com.demoapp

import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate

class MainActivity : ReactActivity() {
/**
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
@Override
override fun getMainComponentName() = "DemoApp";

/**
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
*/
override fun createReactActivityDelegate() = DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
}
62 changes: 0 additions & 62 deletions DemoApp/android/app/src/main/java/com/demoapp/MainApplication.java

This file was deleted.

40 changes: 40 additions & 0 deletions DemoApp/android/app/src/main/java/com/demoapp/MainApplication.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.demoapp

import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.soloader.SoLoader
import com.jumio.react.JumioPackage

class MainApplication : Application(), ReactApplication {
override val reactNativeHost: ReactNativeHost =
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
add(JumioPackage())
}

override fun getJSMainModuleName(): String = "index"
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}
override val reactHost: ReactHost
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)

override fun onCreate() {
super.onCreate()
SoLoader.init(this, false)
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
}
}
}
18 changes: 12 additions & 6 deletions DemoApp/android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@
<!-- <item name="jumio_text_foreground">#1361BD</item>-->
<!-- <item name="jumio_navigation_icon">#EC407A</item>-->
<!-- <item name="jumio_navigation_icon_dark">#EC407A</item>-->
<!-- <item name="jumio_image_border">#F2F233</item>-->

<!-- <item name="jumio_bubble_background">#bc2e41</item>-->
<!-- <item name="jumio_bubble_background_selected">#57ffc7</item>-->
<!-- <item name="jumio_bubble_foreground">#FF5722</item>-->
<!-- <item name="jumio_bubble_outline">#F2F233</item>-->
<!-- <item name="jumio_bubble_outline_selected">#D900ff</item>-->

<!-- <item name="jumio_primary_button_background">#F2F233</item>-->
<!-- <item name="jumio_primary_button_background_pressed">#00B0FF</item>-->
Expand All @@ -32,6 +35,9 @@
<!-- <item name="jumio_secondary_button_background_pressed">#D900ff00</item>-->
<!-- <item name="jumio_secondary_button_background_disabled">#E35252</item>-->
<!-- <item name="jumio_secondary_button_foreground">#044071</item>-->
<!-- <item name="jumio_secondary_button_foreground_pressed">#000000</item>-->
<!-- <item name="jumio_secondary_button_foreground_disabled">#57ffc7</item>-->
<!-- <item name="jumio_secondary_button_outline">#F2F233</item>-->

<!-- <item name="jumio_circle_item_background">#00B0FF</item>-->
<!-- <item name="jumio_circle_item_foreground">#E0E011</item>-->
Expand All @@ -58,18 +64,18 @@
<!-- <item name="jumio_error_circle_gradient_end">#C31322</item>-->
<!-- <item name="jumio_loading_circle_icon">#050202</item>-->

<!-- Help screen colors-->
<!-- <item name="jumio_face_primary">#C31322</item>-->
<!-- <item name="jumio_face_secondary">#60EDED3B</item>-->
<!-- <item name="jumio_face_outline">#ff0000ff</item>-->
<!-- <item name="jumio_face_success">@color/jumio_primary</item>-->

<!-- &lt;!&ndash; scan-overlay, iproov & nfc colors &ndash;&gt;-->
<!-- <item name="jumio_face_animation_customization">@style/CustomFaceHelp</item>-->
<!-- <item name="jumio_overlay_customization">@style/CustomOverlay</item>-->
<!-- <item name="iproov_customization">@style/CustomIproov</item>-->
<!-- <item name="nfc_customization">@style/CustomNfc</item>-->
<!-- </style>-->

<!-- <style name="CustomFaceHelp" parent="Jumio.Face.Animation.Customization">-->
<!-- &lt;!&ndash;Help screen colors&ndash;&gt;-->
<!-- <item name="jumio_face_animation_foreground">#C31322</item>-->
<!-- </style>-->

<!-- <style name="CustomOverlay" parent="Jumio.Overlay.Customization">-->
<!-- <item name="jumio_scanOverlay">#FF5722</item>-->
<!-- <item name="jumio_scanOverlayFill">#60EDED3B</item>-->
Expand Down
9 changes: 6 additions & 3 deletions DemoApp/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "33.0.0"
buildToolsVersion = "34.0.0"
minSdkVersion = 21
compileSdkVersion = 33
compileSdkVersion = 34
}
repositories {
google()
Expand All @@ -26,5 +26,8 @@ buildscript {
// classpath("com.google.gms:google-services:4.2.0")
classpath("com.google.android.gms:play-services-vision:20.1.3")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
}
}
}

apply plugin: "com.facebook.react.rootproject"
2 changes: 1 addition & 1 deletion DemoApp/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Apr 19 12:48:49 EEST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Loading

0 comments on commit 26ea37c

Please sign in to comment.