assentify-sdk-react-native 1.0.0-Beta.14 → 1.0.0-Beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -101,7 +101,7 @@ dependencies {
|
|
|
101
101
|
compileOnly("com.facebook.react:react-android")
|
|
102
102
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
103
103
|
|
|
104
|
-
implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:1.0.0-Beta.
|
|
104
|
+
implementation 'com.github.AssentifyLTD:Assentify.SDK.Android:1.0.0-Beta.27'
|
|
105
105
|
|
|
106
106
|
implementation 'com.google.code.gson:gson:2.13.2'
|
|
107
107
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.9.7'
|
|
@@ -39,6 +39,7 @@ import com.facebook.react.bridge.Arguments
|
|
|
39
39
|
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
40
40
|
import com.squareup.picasso.Picasso
|
|
41
41
|
import com.assentify.sdk.RemoteClient.Models.TemplatesByCountry
|
|
42
|
+
import androidx.constraintlayout.widget.ConstraintLayout
|
|
42
43
|
|
|
43
44
|
class ScanIDActivity: AppCompatActivity(),
|
|
44
45
|
IDCardCallback {
|
|
@@ -502,7 +503,7 @@ class ScanIDActivity: AppCompatActivity(),
|
|
|
502
503
|
toolbarTitle.setTextColor(Color.parseColor(processingColor))
|
|
503
504
|
|
|
504
505
|
|
|
505
|
-
val backIDPage = findViewById<
|
|
506
|
+
val backIDPage = findViewById<ConstraintLayout>(R.id.backIDPage)
|
|
506
507
|
backIDPage.setBackgroundColor(Color.parseColor(holdHandColor))
|
|
507
508
|
backIDPage.visibility = View.VISIBLE
|
|
508
509
|
|
|
@@ -518,9 +519,9 @@ class ScanIDActivity: AppCompatActivity(),
|
|
|
518
519
|
}
|
|
519
520
|
|
|
520
521
|
val drawableInfo = getResources().getDrawable(R.drawable.info_rounded_background)
|
|
521
|
-
drawableInfo?.setColorFilter(Color.
|
|
522
|
+
drawableInfo?.setColorFilter(Color.WHITE, PorterDuff.Mode.SRC_ATOP)
|
|
522
523
|
nextTemplate.setBackground(drawableInfo)
|
|
523
|
-
|
|
524
|
+
nextTemplate.setTextColor(Color.parseColor(manualClickColor))
|
|
524
525
|
var imageUrl = "";
|
|
525
526
|
if (classifiedTemplate.isNotEmpty()) {
|
|
526
527
|
for (it in templatesByCountry.templates) {
|
|
@@ -548,7 +549,7 @@ class ScanIDActivity: AppCompatActivity(),
|
|
|
548
549
|
toolbarTitle.setText(title)
|
|
549
550
|
toolbarTitle.setTextColor(Color.parseColor(processingColor))
|
|
550
551
|
|
|
551
|
-
val backIDPage = findViewById<
|
|
552
|
+
val backIDPage = findViewById<ConstraintLayout>(R.id.backIDPage)
|
|
552
553
|
backIDPage.setBackgroundColor(Color.parseColor(holdHandColor))
|
|
553
554
|
backIDPage.visibility = View.GONE
|
|
554
555
|
|
|
@@ -309,58 +309,52 @@
|
|
|
309
309
|
android:layout_marginEnd="16dp"
|
|
310
310
|
android:layout_marginBottom="30dp"/>
|
|
311
311
|
|
|
312
|
-
|
|
313
|
-
<LinearLayout
|
|
312
|
+
<androidx.constraintlayout.widget.ConstraintLayout
|
|
314
313
|
android:id="@+id/backIDPage"
|
|
315
314
|
android:visibility="gone"
|
|
316
315
|
android:layout_width="match_parent"
|
|
317
316
|
android:layout_height="match_parent"
|
|
318
|
-
android:orientation="vertical"
|
|
319
|
-
android:paddingStart="24dp"
|
|
320
|
-
android:paddingEnd="24dp"
|
|
321
|
-
android:paddingTop="24dp"
|
|
322
|
-
android:paddingBottom="24dp"
|
|
323
317
|
android:background="@color/Green">
|
|
318
|
+
|
|
319
|
+
<!-- Always middle: constrained top-to-top of parent AND bottom-to-top of the button,
|
|
320
|
+
with wrap_content height. ConstraintLayout centers a wrap_content view between
|
|
321
|
+
two opposing constraints by default (bias 0.5), so this stays vertically centered
|
|
322
|
+
in whatever space is left above the button, on any screen height. -->
|
|
324
323
|
<LinearLayout
|
|
324
|
+
android:id="@+id/middleContent"
|
|
325
325
|
android:layout_width="match_parent"
|
|
326
|
-
android:layout_height="
|
|
327
|
-
android:layout_gravity="center_vertical"
|
|
328
|
-
android:layout_marginTop="00dp"
|
|
329
|
-
android:gravity="center"
|
|
326
|
+
android:layout_height="wrap_content"
|
|
330
327
|
android:orientation="vertical"
|
|
331
|
-
android:
|
|
332
|
-
android:
|
|
333
|
-
android:
|
|
334
|
-
android:
|
|
335
|
-
|
|
328
|
+
android:gravity="center_horizontal"
|
|
329
|
+
android:paddingStart="24dp"
|
|
330
|
+
android:paddingEnd="24dp"
|
|
331
|
+
android:paddingTop="24dp"
|
|
332
|
+
android:paddingBottom="24dp"
|
|
333
|
+
app:layout_constraintTop_toTopOf="parent"
|
|
334
|
+
app:layout_constraintBottom_toTopOf="@id/nextTemplate"
|
|
335
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
336
|
+
app:layout_constraintEnd_toEndOf="parent">
|
|
336
337
|
|
|
337
338
|
<TextView
|
|
338
339
|
android:id="@+id/tvInstruction"
|
|
339
|
-
android:layout_width="
|
|
340
|
+
android:layout_width="match_parent"
|
|
340
341
|
android:layout_height="wrap_content"
|
|
341
|
-
android:paddingTop="120dp"
|
|
342
342
|
android:text="Please flip the card provided to take the back of the card"
|
|
343
343
|
android:textColor="@android:color/white"
|
|
344
344
|
android:textSize="20sp"
|
|
345
345
|
android:gravity="center"
|
|
346
|
-
android:textStyle="bold"
|
|
347
|
-
app:layout_constraintStart_toStartOf="parent"
|
|
348
|
-
app:layout_constraintEnd_toEndOf="parent"
|
|
349
|
-
tools:ignore="MissingConstraints" />
|
|
346
|
+
android:textStyle="bold" />
|
|
350
347
|
|
|
351
348
|
<ImageView
|
|
352
349
|
android:id="@+id/ivSample"
|
|
353
350
|
android:layout_width="wrap_content"
|
|
351
|
+
android:layout_height="wrap_content"
|
|
352
|
+
android:layout_marginTop="40dp"
|
|
354
353
|
android:layout_margin="10dp"
|
|
355
354
|
android:padding="10dp"
|
|
356
|
-
android:layout_height="wrap_content"
|
|
357
|
-
android:paddingTop="100dp"
|
|
358
355
|
android:contentDescription="@string/app_name"
|
|
359
356
|
android:scaleType="fitXY"
|
|
360
|
-
android:layout_gravity="center"
|
|
361
|
-
app:layout_constraintTop_toBottomOf="@id/tvInstruction"
|
|
362
|
-
app:layout_constraintStart_toStartOf="parent"
|
|
363
|
-
app:layout_constraintEnd_toEndOf="parent" />
|
|
357
|
+
android:layout_gravity="center" />
|
|
364
358
|
|
|
365
359
|
<!-- Caption -->
|
|
366
360
|
<TextView
|
|
@@ -371,43 +365,37 @@
|
|
|
371
365
|
android:layout_marginTop="15dp"
|
|
372
366
|
android:text="Expected Card Type"
|
|
373
367
|
android:textColor="@color/white"
|
|
374
|
-
android:textSize="12sp"
|
|
375
|
-
app:layout_constraintTop_toBottomOf="@id/ivSample"
|
|
376
|
-
app:layout_constraintStart_toStartOf="parent"
|
|
377
|
-
app:layout_constraintEnd_toEndOf="parent" />
|
|
368
|
+
android:textSize="12sp" />
|
|
378
369
|
|
|
379
370
|
<pl.droidsonroids.gif.GifImageView
|
|
380
371
|
android:id="@+id/gifCard"
|
|
381
|
-
android:visibility="visible"
|
|
382
|
-
app:layout_constraintTop_toBottomOf="@id/tvCaption"
|
|
383
372
|
android:layout_width="150dp"
|
|
384
373
|
android:layout_height="150dp"
|
|
385
|
-
android:background="@null"
|
|
386
|
-
android:src="@drawable/card"
|
|
387
|
-
tools:ignore="MissingConstraints" />
|
|
388
|
-
|
|
389
|
-
<Button
|
|
390
|
-
android:id="@+id/nextTemplate"
|
|
391
|
-
android:layout_width="match_parent"
|
|
392
|
-
android:layout_height="56dp"
|
|
393
|
-
android:text="Next"
|
|
394
|
-
android:textAllCaps="false"
|
|
395
|
-
android:textColor="@android:color/white"
|
|
396
|
-
app:cornerRadius="30dp"
|
|
397
|
-
app:layout_constraintStart_toStartOf="parent"
|
|
398
|
-
app:layout_constraintEnd_toEndOf="parent"
|
|
399
|
-
app:layout_constraintBottom_toBottomOf="parent"
|
|
400
|
-
android:layout_marginStart="10dp"
|
|
401
|
-
android:layout_marginEnd="10dp"
|
|
402
374
|
android:layout_marginTop="15dp"
|
|
403
|
-
android:
|
|
375
|
+
android:layout_gravity="center"
|
|
376
|
+
android:background="@null"
|
|
377
|
+
android:src="@drawable/card" />
|
|
404
378
|
|
|
405
379
|
</LinearLayout>
|
|
406
380
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
381
|
+
<!-- Fixed bottom bar. Pinned directly to the parent ConstraintLayout's bottom edge,
|
|
382
|
+
so its position never depends on the content above — it is always laid out
|
|
383
|
+
and always clickable, no matter the screen height. -->
|
|
384
|
+
<Button
|
|
385
|
+
android:id="@+id/nextTemplate"
|
|
386
|
+
android:layout_width="match_parent"
|
|
387
|
+
android:layout_height="56dp"
|
|
388
|
+
android:text="Next"
|
|
389
|
+
android:textAllCaps="false"
|
|
390
|
+
android:textColor="@android:color/white"
|
|
391
|
+
app:cornerRadius="30dp"
|
|
392
|
+
android:layout_marginStart="30dp"
|
|
393
|
+
android:layout_marginEnd="30dp"
|
|
394
|
+
android:layout_marginBottom="10dp"
|
|
395
|
+
app:layout_constraintStart_toStartOf="parent"
|
|
396
|
+
app:layout_constraintEnd_toEndOf="parent"
|
|
397
|
+
app:layout_constraintBottom_toBottomOf="parent" />
|
|
398
|
+
|
|
399
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
412
400
|
|
|
413
401
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
package/assentify-sdk.podspec
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assentify-sdk-react-native",
|
|
3
|
-
"version": "1.0.0-Beta.
|
|
3
|
+
"version": "1.0.0-Beta.16",
|
|
4
4
|
"description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|