Skip to content

Commit

Permalink
Version 0.4: using SAF, fixed #11, #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonidius20 committed Jan 30, 2020
2 parents 53f9725 + 3e517af commit 1b61592
Show file tree
Hide file tree
Showing 34 changed files with 705 additions and 646 deletions.
9 changes: 7 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,28 @@ android {
applicationId "ua.leonidius.rtlnotepad"
minSdkVersion 17
targetSdkVersion 29
versionCode 2
versionCode 3
versionName getVersionName()
}
buildTypes {
release {
resValue "bool", "DEBUG", "false"
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
resValue "bool", "DEBUG", "true"
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0-beta01"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation project(":navdialogs")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.chibatching.kotpref:kotpref:2.10.0'
}
repositories {
mavenCentral()
Expand Down
4 changes: 4 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
}
44 changes: 19 additions & 25 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,41 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ua.leonidius.rtlnotepad"
android:installLocation="auto">
package="ua.leonidius.rtlnotepad"
android:installLocation="auto">

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

<application
android:name=".MyApplication"
android:supportsRtl="true"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Leonidius.Light">
android:name=".MyApplication"
android:supportsRtl="true"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Leonidius.Light">

<activity
android:name=".MainActivity"
android:windowSoftInputMode="stateHidden"
android:label="@string/app_name">
android:name=".MainActivity"
android:windowSoftInputMode="stateHidden"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.VIEW"/>
<action android:name="android.intent.action.EDIT"/>

<category android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="text/*"
android:scheme="file" />
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/*"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".TestingActivity"
android:windowSoftInputMode="stateHidden"
android:label="@string/app_name"/>

</application>

</manifest>
</manifest>
Loading

0 comments on commit 1b61592

Please sign in to comment.