Skip to content

Commit

Permalink
Merge pull request #19 from eszdman/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
eszdman authored Oct 3, 2020
2 parents 84f5104 + 4953e68 commit 9de446d
Show file tree
Hide file tree
Showing 333 changed files with 17,309 additions and 5,253 deletions.
10 changes: 10 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
62 changes: 32 additions & 30 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.firebase.firebase-perf'

android {
def versionPropsFile = file('version.properties')
def versionBuild
compileSdkVersion 29
compileSdkVersion 30
buildToolsVersion "29.0.3"
ndkVersion "21.1.6352462"
ndkVersion '21.3.6528147'
lintOptions {
abortOnError false
}

if (versionPropsFile.canRead()) {
def Properties versionProps = new Properties()
Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))
versionBuild = versionProps['VERSION_BUILD'].toInteger()
} else {
Expand All @@ -23,7 +20,7 @@ android {

ext.autoIncrementBuildNumber = {
if (versionPropsFile.canRead()) {
def Properties versionProps = new Properties()
Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))
versionBuild = versionProps['VERSION_BUILD'].toInteger() + 1
versionProps['VERSION_BUILD'] = versionBuild.toString()
Expand All @@ -35,12 +32,12 @@ android {

defaultConfig {
applicationId 'com.eszdman.photoncamera'
minSdkVersion 21
targetSdkVersion 29
minSdkVersion 26
targetSdkVersion 30
renderscriptTargetApi 24
renderscriptSupportModeEnabled false
versionCode versionCode
versionName '0.3'
versionName '0.66'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
ndk {
abiFilters "arm64-v8a"
Expand All @@ -57,48 +54,53 @@ android {

buildTypes {
release {
minifyEnabled false
shrinkResources false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
jniDebuggable = true
jniDebuggable = false
zipAlignEnabled = true
}
debug {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
jniDebuggable = true
renderscriptDebuggable = true
zipAlignEnabled = true
}
}
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
version "3.10.2"
}
}

compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}

applicationVariants.all {
variant -> variant.outputs.all {
outputFileName = "PhotonCamera-${variant.name}.apk"
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-perf:19.0.7'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'androidx.preference:preference:1.1.1'
implementation 'org.jetbrains:annotations:15.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.mytechia:opencv:4.1.0-my'
implementation 'androidx.exifinterface:exifinterface:1.3.0-alpha01'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'androidx.exifinterface:exifinterface:1.3.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.github.mohammadatif:Animatoo:master'
implementation 'org.jocl:jocl:2.0.2'
implementation 'com.github.ChickenHook:RestrictionBypass:2.2'
implementation 'com.google.firebase:firebase-analytics:17.4.3'
implementation 'com.google.firebase:firebase-crashlytics-ndk:17.0.1'
}
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation group: 'commons-io', name: 'commons-io', version: '2.7'
implementation 'rapid.decoder:library:0.3.0'
implementation 'rapid.decoder:jpeg-decoder:0.3.0'
implementation 'rapid.decoder:png-decoder:0.3.0'
implementation 'com.quickbirdstudios:opencv:4.3.0'
}
73 changes: 47 additions & 26 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,40 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.eszdman.photoncamera">
xmlns:tools="http://schemas.android.com/tools"
package="com.eszdman.photoncamera">

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>

<uses-feature
android:name="android.hardware.camera"
android:required="true" />
<uses-feature android:name="android.hardware.camera.autofocus" />
android:name="android.hardware.camera"
android:required="true"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>

<application
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:isGame="true"
android:requestLegacyExternalStorage="true"
android:roundIcon="@drawable/ic_launcher"
android:supportsRtl="true"
android:theme="@style/AppTheme"
>
<activity android:name=".ui.SettingsActivity" />
<activity android:name=".ui.MainActivity">
android:name=".app.PhotonCamera"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true"
android:label="@string/app_name"
android:largeHeap="true"
android:isGame="true"
android:supportsRtl="true"
android:theme="@style/Theme.Photon.BaseApp"
tools:targetApi="q">
<activity
android:name=".ui.settings.SettingsActivity"
android:theme="@style/Theme.Photon.SettingsActivity"/>
<activity
android:name=".ui.SplashActivity"
android:theme="@style/Theme.Photon.Splash">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>

<activity
android:name=".ui.camera.CameraActivity"
android:configChanges="orientation|keyboardHidden|screenSize"/>

<activity android:name=".gallery.GalleryActivity"/>

<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths"/>
</provider>

<meta-data
android:name="firebase_performance_logcat_enabled"
android:value="true" />
android:name="firebase_performance_logcat_enabled"
android:value="false"/>
</application>

</manifest>
44 changes: 0 additions & 44 deletions app/src/main/cpp/CMakeLists.txt

This file was deleted.

16 changes: 0 additions & 16 deletions app/src/main/cpp/native-lib.cpp

This file was deleted.

Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 9de446d

Please sign in to comment.