diff --git a/app/build.gradle b/app/build.gradle
index 178169a..56420f7 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -65,8 +65,8 @@ afterEvaluate {
from components.release
groupId = 'com.github.Al-khateebBahaa'
- artifactId = 'app'
- version = '1.0.0'
+ artifactId = 'app_module'
+ version = "$sdk_version"
}
}
}
diff --git a/build.gradle b/build.gradle
index 53d979f..0f9a382 100644
--- a/build.gradle
+++ b/build.gradle
@@ -7,16 +7,7 @@ plugins {
}
ext {
- kotlin_version = "1.5.30"
- nav_version = "2.4.1"
- hiltAndroidXVersion = '1.0.0-alpha03'
- lifecycle_version = '2.4.1'
- retrofit_version = '2.9.0'
- coroutines_version = '1.5.0'
coroutines_core_version = '1.4.2'
- hilt_version = '2.44.2'
- google_services='4.3.8'
- koin_version= "3.3.0"
- koin_android_version= "3.3.1"
+ sdk_version = '1.0.0-alpha'
}
diff --git a/core/build.gradle b/core/build.gradle
index 01b30bd..b11c640 100644
--- a/core/build.gradle
+++ b/core/build.gradle
@@ -53,8 +53,8 @@ afterEvaluate {
from components.release
groupId = 'com.github.Al-khateebBahaa'
- artifactId = 'core'
- version = '1.0.0'
+ artifactId = 'core_module'
+ version = "$sdk_version"
}
}
}
diff --git a/demo/.gitignore b/demo/.gitignore
deleted file mode 100644
index 42afabf..0000000
--- a/demo/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/build
\ No newline at end of file
diff --git a/demo/build.gradle b/demo/build.gradle
deleted file mode 100644
index f0b0992..0000000
--- a/demo/build.gradle
+++ /dev/null
@@ -1,61 +0,0 @@
-plugins {
- id 'com.android.application'
- id 'org.jetbrains.kotlin.android'
- id 'kotlin-kapt'
-
-}
-
-android {
- namespace 'com.bk.signer_tool.demo'
- compileSdk 33
-
- defaultConfig {
- applicationId "com.bk.pdf_signer_tool"
- minSdkVersion 23
- targetSdkVersion 33
- versionCode 1
- versionName "1"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
-
- consumerProguardFiles "consumer-rules.pro"
- signingConfig signingConfigs.debug
- }
-
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
-
-
- buildFeatures {
- viewBinding true
- dataBinding true
- }
-
-}
-
-dependencies {
-
- implementation 'androidx.core:core-ktx:1.9.0'
- implementation 'androidx.appcompat:appcompat:1.6.1'
- implementation 'com.google.android.material:material:1.8.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
-
- implementation project(path: ':core')
-
- // implementation 'com.github.AlMOHANDSen:PDF_Signer_Tool:1.6'
-
- //data Binding
- kapt "com.android.databinding:compiler:3.1.4"
- implementation 'com.github.yogacp:android-viewbinding:1.0.4'
-
- //Uri picker
- implementation 'com.github.HBiSoft:PickiT:2.0.5'
-
-}
\ No newline at end of file
diff --git a/demo/consumer-rules.pro b/demo/consumer-rules.pro
deleted file mode 100644
index e69de29..0000000
diff --git a/demo/proguard-rules.pro b/demo/proguard-rules.pro
deleted file mode 100644
index 481bb43..0000000
--- a/demo/proguard-rules.pro
+++ /dev/null
@@ -1,21 +0,0 @@
-# Add project specific ProGuard rules here.
-# You can control the set of applied configuration files using the
-# proguardFiles setting in build.gradle.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
-
-# Uncomment this to preserve the line number information for
-# debugging stack traces.
-#-keepattributes SourceFile,LineNumberTable
-
-# If you keep the line number information, uncomment this to
-# hide the original source file name.
-#-renamesourcefileattribute SourceFile
\ No newline at end of file
diff --git a/demo/src/androidTest/java/com/bk/signer_tool/demo/ExampleInstrumentedTest.kt b/demo/src/androidTest/java/com/bk/signer_tool/demo/ExampleInstrumentedTest.kt
deleted file mode 100644
index e172be1..0000000
--- a/demo/src/androidTest/java/com/bk/signer_tool/demo/ExampleInstrumentedTest.kt
+++ /dev/null
@@ -1,24 +0,0 @@
-package com.bk.signer_tool.demo
-
-import androidx.test.platform.app.InstrumentationRegistry
-import androidx.test.ext.junit.runners.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.bk.signer_tool.demo.test", appContext.packageName)
- }
-}
\ No newline at end of file
diff --git a/demo/src/main/AndroidManifest.xml b/demo/src/main/AndroidManifest.xml
deleted file mode 100644
index cecdada..0000000
--- a/demo/src/main/AndroidManifest.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/demo/src/main/java/com/bk/signer_tool/demo/Adapter/MainRecycleViewAdapter.kt b/demo/src/main/java/com/bk/signer_tool/demo/Adapter/MainRecycleViewAdapter.kt
deleted file mode 100644
index 7157ead..0000000
--- a/demo/src/main/java/com/bk/signer_tool/demo/Adapter/MainRecycleViewAdapter.kt
+++ /dev/null
@@ -1,118 +0,0 @@
-package com.bk.signer_tool.demo.Adapter
-
-import android.graphics.Color
-import android.util.SparseBooleanArray
-import android.view.LayoutInflater
-import android.view.View
-import android.view.ViewGroup
-import android.widget.ImageView
-import android.widget.TextView
-import androidx.recyclerview.widget.RecyclerView
-import com.bk.signer_tool.demo.R
-import java.io.File
-import java.text.DecimalFormat
-import java.text.SimpleDateFormat
-import java.util.*
-import kotlin.collections.ArrayList
-
-
-class MainRecycleViewAdapter(
- private val items: ArrayList = arrayListOf(),
- private val mOnItemClickListener: OnItemClickListener
-) : RecyclerView.Adapter() {
-
-
- private val selected_items: SparseBooleanArray = SparseBooleanArray()
- private var current_selected_idx = -1
-
-
- fun addNewFile(item: File) {
- items.add(item)
- notifyItemInserted(items.size - 1)
-
- }
-
-
- inner class OriginalViewHolder(v: View) : RecyclerView.ViewHolder(v) {
- var image: ImageView
- var name: TextView
- var brief: TextView
- var size: TextView
- var lyt_parent: View
-
- init {
- image = v.findViewById(R.id.fileImageView)
- name = v.findViewById(R.id.fileItemTextview)
- brief = v.findViewById(R.id.dateItemTimeTextView)
- size = v.findViewById(R.id.sizeItemTimeTextView)
- lyt_parent = v.findViewById(R.id.listItemLinearLayout)
- }
- }
-
- override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder {
- val vh: RecyclerView.ViewHolder
- val v = LayoutInflater.from(parent.context)
- .inflate(R.layout.com_bk_signer_mainitemgrid, parent, false)
- vh = OriginalViewHolder(v)
- return vh
- }
-
- // Replace the contents of a view (invoked by the layout manager)
- override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {
- val obj = items[position]
- if (holder is OriginalViewHolder) {
- val view = holder
- view.name.text = obj.name
- val lastModDate = Date(obj.lastModified())
- val formatter = SimpleDateFormat("dd-MM-yyyy hh:mm a", Locale.ENGLISH)
- val strDate = formatter.format(lastModDate)
- view.brief.text = strDate
- view.size.text = GetSize(obj.length())
- view.lyt_parent.setOnClickListener { v ->
- mOnItemClickListener.onItemClick(v, obj, position)
- }
- toggleCheckedIcon(holder, position)
- view.image.setImageResource(R.drawable.ic_adobe)
- }
- }
-
- override fun getItemCount(): Int {
- return items.size
- }
-
- private fun toggleCheckedIcon(holder: RecyclerView.ViewHolder, position: Int) {
- val view = holder as OriginalViewHolder
- if (selected_items[position, false]) {
- view.lyt_parent.setBackgroundColor(Color.parseColor("#4A32740A"))
- if (current_selected_idx == position) resetCurrentIndex()
- } else {
- view.lyt_parent.setBackgroundColor(Color.parseColor("#ffffff"))
- if (current_selected_idx == position) resetCurrentIndex()
- }
- }
-
- fun GetSize(size: Long): String {
- val dictionary = arrayOf("bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
- var index = 0
- var m = size.toDouble()
- val dec = DecimalFormat("0.00")
- index = 0
- while (index < dictionary.size) {
- if (m < 1024) {
- break
- }
- m = m / 1024
- index++
- }
- return dec.format(m) + " " + dictionary[index]
- }
-
- private fun resetCurrentIndex() {
- current_selected_idx = -1
- }
-
-
- interface OnItemClickListener {
- fun onItemClick(view: View?, value: File, position: Int)
- }
-}
\ No newline at end of file
diff --git a/demo/src/main/java/com/bk/signer_tool/demo/AppUtils.kt b/demo/src/main/java/com/bk/signer_tool/demo/AppUtils.kt
deleted file mode 100644
index 1d8485d..0000000
--- a/demo/src/main/java/com/bk/signer_tool/demo/AppUtils.kt
+++ /dev/null
@@ -1,78 +0,0 @@
-package com.bk.signer_tool.demo
-
-import android.Manifest
-import android.app.Activity
-import android.content.Context
-import android.content.DialogInterface
-import android.content.pm.PackageManager
-import android.os.Build
-
-import androidx.appcompat.app.AlertDialog
-import androidx.core.app.ActivityCompat
-import androidx.core.content.ContextCompat
-
-
-const val PERMISSION_REQUEST = 100
-
-object AppUtils {
-
-
- fun checkStoragePermission(
- activity: Activity,
- context: Context
- ): Boolean {
-
- if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.S_V2) {
- return checkPermission(
- context,
- activity,
- Manifest.permission.READ_EXTERNAL_STORAGE
-
- )
-
- }
-
- return true
-
- }
-
-
- private fun checkPermission(context: Context, activity: Activity, permission: String): Boolean {
- if (ContextCompat.checkSelfPermission(
- context,
- permission
- ) == PackageManager.PERMISSION_GRANTED
- ) {
- return true
- }
- if (activity.shouldShowRequestPermissionRationale(permission)) {
- AlertDialog.Builder(context)
- .setTitle(context.getString(R.string.permission_request))
- .setMessage(context.getString(R.string.give_app_permission))
- .setPositiveButton(
- android.R.string.ok
- ) { dialog: DialogInterface?, which: Int ->
- ActivityCompat.requestPermissions(
- activity,
- arrayOf(permission),
- PERMISSION_REQUEST
- )
- }.setNegativeButton(
- android.R.string.cancel
- ) { dialog: DialogInterface, which: Int -> dialog.dismiss() }.create()
- .show()
- return false
- }
-
- ActivityCompat.requestPermissions(
- activity, arrayOf(permission),
- PERMISSION_REQUEST
- )
-
- return false
- }
-
-
-
-
-}
\ No newline at end of file
diff --git a/demo/src/main/java/com/bk/signer_tool/demo/MainActivity.kt b/demo/src/main/java/com/bk/signer_tool/demo/MainActivity.kt
deleted file mode 100644
index e7b9aaf..0000000
--- a/demo/src/main/java/com/bk/signer_tool/demo/MainActivity.kt
+++ /dev/null
@@ -1,205 +0,0 @@
-package com.bk.signer_tool.demo
-
-import android.app.Activity
-import kotlin.Throws
-import android.widget.Toast
-import androidx.appcompat.app.AppCompatActivity
-import android.content.Intent
-import com.google.android.material.navigation.NavigationView
-import androidx.drawerlayout.widget.DrawerLayout
-import androidx.core.view.GravityCompat
-import android.os.*
-import android.view.*
-import android.viewbinding.library.activity.viewBinding
-import androidx.activity.result.ActivityResultLauncher
-import androidx.activity.result.contract.ActivityResultContracts
-import androidx.appcompat.app.ActionBarDrawerToggle
-import androidx.core.view.isVisible
-import com.bk.signer_tool.core.Errors.PdfSignerInitialingException
-import com.bk.signer_tool.core.callbacks.SignerCallback
-import com.bk.signer_tool.core.signer.SignBuilder
-import com.bk.signer_tool.core.signer.SignManager
-import com.bk.signer_tool.demo.Adapter.MainRecycleViewAdapter
-import com.bk.signer_tool.demo.databinding.ComBkSignerActivityMainBinding
-import com.hbisoft.pickit.PickiT
-import com.hbisoft.pickit.PickiTCallbacks
-import java.io.*
-import java.util.*
-import kotlin.collections.ArrayList
-
-class MainActivity : AppCompatActivity(),
- NavigationView.OnNavigationItemSelectedListener, PickiTCallbacks, SignerCallback,
- MainRecycleViewAdapter.OnItemClickListener {
-
- private var mFilesContent: ActivityResultLauncher? = null
- private val mBinding: ComBkSignerActivityMainBinding by viewBinding()
- private var mSignManager: SignManager? = null
- private val mAdapter: MainRecycleViewAdapter by lazy {
- MainRecycleViewAdapter(
- mOnItemClickListener = this
- )
- }
-
-
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
-
- SignBuilder.onCreate(this)
-
- registerFileContentPicker()
- startSigner()
-
- setSupportActionBar(mBinding.pdfSignAppBar.pdfSignToolbar)
-
- mBinding.pdfSignAppBar.pdfSignFab.setOnClickListener {
-
- if (AppUtils.checkStoragePermission(this, this))
- mFilesContent?.launch(createOpenFileIntent())
-
- }
-
- val toggle = ActionBarDrawerToggle(
- this,
- mBinding.drawerLayout,
- mBinding.pdfSignAppBar.pdfSignToolbar,
- R.string.com_bk_signer_navigation_drawer_open,
- R.string.com_bk_signer_navigation_drawer_close
- )
- mBinding.drawerLayout.addDrawerListener(toggle)
- toggle.syncState()
-
- mBinding.pdfSignNavView.setNavigationItemSelectedListener(this)
- mBinding.pdfSignAppBar.contentInclude.mainRecycleView.setHasFixedSize(true)
- mBinding.pdfSignAppBar.contentInclude.mainRecycleView.adapter = mAdapter
-
- }
-
-
- private fun startSigner() {
-
- try {
- mSignManager = SignBuilder.setCallback(this).build()
-
- } catch (e: PdfSignerInitialingException) {
- e.printStackTrace()
- }
- }
-
- private fun createOpenFileIntent() = Intent(Intent.ACTION_GET_CONTENT).apply {
- type = "application/pdf"
- addCategory(Intent.CATEGORY_OPENABLE)
- flags = Intent.FLAG_GRANT_READ_URI_PERMISSION
- }
-
-
- private fun registerFileContentPicker() {
-
- mFilesContent =
- registerForActivityResult(ActivityResultContracts.StartActivityForResult()) {
-
- if (it.resultCode == Activity.RESULT_OK && it.data != null) {
-
- val uri = it.data
-
- uri?.data?.let {
-
- PickiT(this, this, this).getPath(
- it,
- Build.VERSION.SDK_INT
- )
- }
-
-
- }
- }
-
- }
-
-
- override fun onBackPressed() {
- val drawer: DrawerLayout = findViewById(R.id.drawer_layout)
- if (drawer.isDrawerOpen(GravityCompat.START)) {
- drawer.closeDrawer(GravityCompat.START)
- } else {
- super.onBackPressed()
- }
- }
-
-
- override fun onNavigationItemSelected(item: MenuItem): Boolean {
- // Handle navigation view item clicks here.
-
- if (item.itemId == R.id.nav_signatures) {
- moveToUserSignCollection()
- }
-
- mBinding.drawerLayout.closeDrawer(GravityCompat.START)
- return true
- }
-
-
- private fun moveToUserSignCollection() =
- mSignManager?.openSigningLibrary(this)
-
- @Throws(UnsupportedOperationException::class)
- override fun PickiTonUriReturned() {
- }
-
- @Throws(UnsupportedOperationException::class)
- override fun PickiTonStartListener() {
- }
-
- @Throws(UnsupportedOperationException::class)
- override fun PickiTonProgressUpdate(progress: Int) {
- }
-
- override fun PickiTonCompleteListener(
- path: String?,
- wasDriveFile: Boolean,
- wasUnknownProvider: Boolean,
- wasSuccessful: Boolean,
- Reason: String?
- ) {
-
- if (wasSuccessful && !path.isNullOrBlank()) {
- mSignManager?.startSigning(File(path), "test1", this)
- } else {
- Toast.makeText(this, "Failed to pick file", Toast.LENGTH_SHORT).show()
- }
-
- }
-
- @Throws(UnsupportedOperationException::class)
- override fun PickiTonMultipleCompleteListener(
- paths: ArrayList?,
- wasSuccessful: Boolean,
- Reason: String?
- ) {
-
- }
-
-
- //Sign methods
- override fun onSignResult(isSuccess: Boolean, resultFile: File?) {
- if (isSuccess) {
- resultFile?.let {
- mBinding.pdfSignAppBar.contentInclude.toDoEmptyView.isVisible = false
- mAdapter.addNewFile(it)
- }
- }
-
-
- }
-
- override fun onSignFailed(error: String) {
-
- Toast.makeText(this, "Failed to sign file with $error", Toast.LENGTH_SHORT).show()
-
- }
-
- override fun onItemClick(view: View?, value: File, position: Int) {
-
- mSignManager?.startSigning(value, returnedFileName = "anyName.pdf", this)
- }
-
-}
\ No newline at end of file
diff --git a/demo/src/main/res/drawable/ic_add_black_24dp.xml b/demo/src/main/res/drawable/ic_add_black_24dp.xml
deleted file mode 100644
index bbda803..0000000
--- a/demo/src/main/res/drawable/ic_add_black_24dp.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
diff --git a/demo/src/main/res/drawable/ic_adobe.xml b/demo/src/main/res/drawable/ic_adobe.xml
deleted file mode 100644
index 1ddd14f..0000000
--- a/demo/src/main/res/drawable/ic_adobe.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
diff --git a/demo/src/main/res/drawable/ic_launcher_background.xml b/demo/src/main/res/drawable/ic_launcher_background.xml
deleted file mode 100644
index 0d025f9..0000000
--- a/demo/src/main/res/drawable/ic_launcher_background.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demo/src/main/res/drawable/ic_launcher_foreground.xml b/demo/src/main/res/drawable/ic_launcher_foreground.xml
deleted file mode 100644
index e36c86a..0000000
--- a/demo/src/main/res/drawable/ic_launcher_foreground.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demo/src/main/res/drawable/ic_sigining.xml b/demo/src/main/res/drawable/ic_sigining.xml
deleted file mode 100644
index 9d72a10..0000000
--- a/demo/src/main/res/drawable/ic_sigining.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
diff --git a/demo/src/main/res/layout/com_bk_signer_activity_main.xml b/demo/src/main/res/layout/com_bk_signer_activity_main.xml
deleted file mode 100644
index 97d213a..0000000
--- a/demo/src/main/res/layout/com_bk_signer_activity_main.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/demo/src/main/res/layout/com_bk_signer_app_bar_main.xml b/demo/src/main/res/layout/com_bk_signer_app_bar_main.xml
deleted file mode 100644
index 92c480a..0000000
--- a/demo/src/main/res/layout/com_bk_signer_app_bar_main.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/demo/src/main/res/layout/com_bk_signer_content_main.xml b/demo/src/main/res/layout/com_bk_signer_content_main.xml
deleted file mode 100644
index f10350c..0000000
--- a/demo/src/main/res/layout/com_bk_signer_content_main.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/demo/src/main/res/layout/com_bk_signer_mainitemgrid.xml b/demo/src/main/res/layout/com_bk_signer_mainitemgrid.xml
deleted file mode 100644
index 81b3615..0000000
--- a/demo/src/main/res/layout/com_bk_signer_mainitemgrid.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/demo/src/main/res/layout/com_bk_signer_nav_header_main.xml b/demo/src/main/res/layout/com_bk_signer_nav_header_main.xml
deleted file mode 100644
index b298b13..0000000
--- a/demo/src/main/res/layout/com_bk_signer_nav_header_main.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/demo/src/main/res/menu/activity_main_drawer.xml b/demo/src/main/res/menu/activity_main_drawer.xml
deleted file mode 100644
index bb7a10d..0000000
--- a/demo/src/main/res/menu/activity_main_drawer.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
diff --git a/demo/src/main/res/values/colors.xml b/demo/src/main/res/values/colors.xml
deleted file mode 100644
index 6bd85b3..0000000
--- a/demo/src/main/res/values/colors.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- #3BAD76
- #8cf437
- #34659F
- #4A91E3
-
- #fff5f5f5
- #ff333333
- #ff2175cb
- #ffcacaca
- #ffffffff
- #4d2175cb
- #ff2175c8
- #0000FF
- #037E03
- #FF0000
- #000000
- #5F5959
- #263238
- #F2F2F2
- #777475
-
diff --git a/demo/src/main/res/values/dimens.xml b/demo/src/main/res/values/dimens.xml
deleted file mode 100644
index 21466bf..0000000
--- a/demo/src/main/res/values/dimens.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
- 16dp
- 16dp
- 8dp
- 176dp
- 16dp
- 3dp
-
- 40.0dp
- 14.0sp
- 40.0dp
- 20.0dp
- 20.0dp
- 20.0dp
- 74.0dp
- 80.0dp
- 0.0dp
- 24.0dp
- 16.0dp
- 210.0dp
- 18.0dp
- 52.0dp
- 55.0dp
- 45.0dp
- 45.0dp
- 50.0dp
- 10.0dp
- 4.0dp
- 24.0dp
- 170.0dp
- 60.0dp
- 25.0dp
- 5.0dp
- 0.0dp
- 10.0dp
- 15.0dp
- 6.0dp
- 15.0dp
- 14.0sp
- @dimen/_120sdp
-
-
-
- @dimen/_22sdp
- @dimen/_18sdp
- @dimen/_15sdp
- @dimen/_12sdp
- @dimen/_10sdp
-
-
- @dimen/_60sdp
- @dimen/_50sdp
- @dimen/_40sdp
- @dimen/_24sdp
- @dimen/_16sdp
- @dimen/_8sdp
- @dimen/_4sdp
-
-
- @dimen/_60sdp
- @dimen/_50sdp
- @dimen/_32sdp
-
-
-
-
\ No newline at end of file
diff --git a/demo/src/main/res/values/strings.xml b/demo/src/main/res/values/strings.xml
deleted file mode 100644
index 92accd7..0000000
--- a/demo/src/main/res/values/strings.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
- PDF Signer
- Open navigation
- Close navigation
- Navigation header
- Settings
-
- Request Permission
- Please give the app required permission to work perfectly
-
diff --git a/demo/src/main/res/values/styles.xml b/demo/src/main/res/values/styles.xml
deleted file mode 100644
index f7322cf..0000000
--- a/demo/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demo/src/main/res/xml/file_paths.xml b/demo/src/main/res/xml/file_paths.xml
deleted file mode 100644
index 262d6d6..0000000
--- a/demo/src/main/res/xml/file_paths.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/demo/src/test/java/com/bk/signer_tool/demo/ExampleUnitTest.kt b/demo/src/test/java/com/bk/signer_tool/demo/ExampleUnitTest.kt
deleted file mode 100644
index eeee0e6..0000000
--- a/demo/src/test/java/com/bk/signer_tool/demo/ExampleUnitTest.kt
+++ /dev/null
@@ -1,17 +0,0 @@
-package com.bk.signer_tool.demo
-
-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)
- }
-}
\ No newline at end of file
diff --git a/settings.gradle b/settings.gradle
index c69064c..ddef1a5 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -10,11 +10,9 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
- maven { url 'https://jitpack.io' }
}
}
rootProject.name = "pdf_signer"
include ':app'
include ':core'
-include ':demo'