Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.
Open

Dev #166

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
/captures
.externalNativeBuild
/.idea/caches/build_file_checksums.ser
/.idea/caches/gradle_models.ser
/.idea/caches/gradle_models.ser

/.direnv/
/.envrc
45 changes: 0 additions & 45 deletions .travis.yml

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

72 changes: 0 additions & 72 deletions README.md

This file was deleted.

3 changes: 1 addition & 2 deletions app/.gitignore
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/build
/release
/build
116 changes: 47 additions & 69 deletions app/build.gradle
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,89 +1,67 @@
/*
* MIT License
*
* Copyright (c) 2018 Gokul Swaminathan
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

apply plugin: 'com.android.application'
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
namespace 'com.gsnathan.pdfviewer'
compileSdk 33

lintOptions {
checkReleaseBuilds false
abortOnError false
}

buildToolsVersion "30.0.3"
compileSdkVersion 30
defaultConfig {
applicationId "com.gsnathan.pdfviewer"
minSdkVersion 21
targetSdkVersion 30
versionCode 28
versionName "3.7"
vectorDrawables.useSupportLibrary = true
}
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"

buildFeatures {
viewBinding true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}

buildTypes {
release {
debuggable false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

debug {
debuggable true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.3.2'
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'

// DO NOT UPDATE! otherwise dialog buttons will have the wrong color (conflicts with Cyanea)
implementation 'com.google.android.material:material:1.0.0'

//Intro Library
implementation 'com.github.paolorotolo:appintro:v5.1.0'

//Pdf Viewer Library (Proguard config done)
implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'

//License Presenter Library (Proguard config not needed)
implementation 'com.github.franmontiel:AttributionPresenter:1.0.1'

//Changelog Library (Proguard config not needed)
implementation 'io.github.tonnyl:whatsnew:0.1.1'

//Theme Engine
implementation 'com.jaredrummler:cyanea:1.0.2'
}
implementation 'androidx.core:core-ktx:1.8.0'
implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.0')
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
implementation 'androidx.activity:activity-compose:1.5.1'
implementation platform('androidx.compose:compose-bom:2022.10.00')
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
}
4 changes: 1 addition & 3 deletions app/proguard-rules.pro
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-keep class com.shockwave.**
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.gsnathan.pdfviewer

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.gsnathan.pdfviewer", appContext.packageName)
}
}
Loading