update packages and readme

This commit is contained in:
2020-10-20 17:11:34 +03:00
parent 6dabff19fa
commit 54b1085d51
5 changed files with 134 additions and 126 deletions
-1
View File
@@ -1 +0,0 @@
# SOON TO COME
+28 -28
View File
@@ -1,28 +1,28 @@
# NPS Browser # NPS Browser
NPS Client app for android written in kotlin. NPS Client app for android written in kotlin.
## Building ## Building
The application targets android 10 (API 29) with a minimum version of android 6 (API 23). The application targets android 10 (API 29) with a minimum version of android 6 (API 23).
1. Create a `keystore` using android studio: `Build > Generate Signed Bundle / APK > Next > Create new` 1. Create a `keystore` using android studio: `Build > Generate Signed Bundle / APK > Next > Create new`
2. Create a `keystore.properties` file in the root directory of the repo. 2. Create a `keystore.properties` file in the root directory of the repo.
3. Specify the keystore location, alias and keys in `keystore.properties`\ 3. Specify the keystore location, alias and keys in `keystore.properties`\
For example: For example:
``` ```
storePassword=password storePassword=password
keyPassword=password2 keyPassword=password2
keyAlias=alias1 keyAlias=alias1
storeFile=keyStore.jks storeFile=keyStore.jks
``` ```
4. Move your newly generated `keyStore.jks` file to `app/` 4. Move your newly generated `keyStore.jks` file to `app/`
Note: keyStore is relative to the `app` directory. So it's very **recommended** to save it as `app/keyStore.jks` Note: keyStore is relative to the `app` directory. So it's very **recommended** to save it as `app/keyStore.jks`
## Contributing ## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) Contributions are very welcome, just open a PR if you have a piece of code to contribute and we'll iron out the details when it's time.
## License ## License
This repository is licensed under the GPLv2 license. This repository is licensed under the GPLv2 license.
## Disclaimer ## Disclaimer
No mentions of any links or piracy related content will be tolerated on this repository, and any persons asking for help with such things will be ignored, not recieve any sort of help or potentially get banned. No mentions of any links or piracy related content will be tolerated on this repository, and any persons asking for help with such things will be ignored, not receive any sort of help or potentially get banned.
+75 -66
View File
@@ -1,66 +1,75 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-android-extensions'
def keystorePropertiesFile = rootProject.file("keystore.properties") def keystorePropertiesFile = rootProject.file("keystore.properties")
def keystoreProperties = new Properties() def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
android { android {
compileSdkVersion 29 compileSdkVersion 30
buildToolsVersion "29.0.3" buildToolsVersion "29.0.3"
defaultConfig { defaultConfig {
applicationId "com.illusionware.npsbrowser" applicationId "com.illusionware.npsbrowser"
minSdkVersion 23 minSdkVersion 23
targetSdkVersion 29 targetSdkVersion 30
versionCode 1 versionCode 1
versionName "0.0.0" versionName "0.1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }
dataBinding { dataBinding {
enabled = true enabled = true
} }
viewBinding { viewBinding {
enabled = true enabled = true
} }
signingConfigs { signingConfigs {
release { release {
storeFile file(keystoreProperties['storeFile']) storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword'] storePassword keystoreProperties['storePassword']
keyAlias = keystoreProperties['keyAlias'] keyAlias = keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword'] keyPassword keystoreProperties['keyPassword']
} }
} }
buildTypes { buildTypes {
release { release {
signingConfig signingConfigs.release signingConfig signingConfigs.release
minifyEnabled false minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
} }
} }
compileOptions {
} sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
dependencies { }
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" }
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.2.0' dependencies {
implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.github.doyaaaaaken:kotlin-csv-jvm:0.7.3' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.cardview:cardview:1.0.0" implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.navigation:navigation-fragment-ktx:2.0.0' implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.navigation:navigation-ui-ktx:2.0.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
implementation 'androidx.preference:preference:1.1.0-rc01' implementation "androidx.coordinatorlayout:coordinatorlayout:1.1.0"
testImplementation 'junit:junit:4.12' implementation 'com.github.doyaaaaaken:kotlin-csv-jvm:0.11.1'
androidTestImplementation 'androidx.test.ext:junit:1.1.1' implementation "androidx.cardview:cardview:1.0.0"
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'androidx.navigation:navigation-fragment-ktx:2.3.0'
implementation 'com.google.android.material:material:1.1.0' implementation 'androidx.navigation:navigation-ui-ktx:2.3.0'
} implementation 'androidx.preference:preference-ktx:1.1.1'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.material:material:1.2.1'
}
+29 -29
View File
@@ -1,29 +1,29 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules. // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { buildscript {
ext.kotlin_version = '1.3.72' ext.kotlin_version = '1.3.72'
repositories { repositories {
google() google()
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.6.3' classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files
} }
} }
allprojects { allprojects {
repositories { repositories {
google() google()
jcenter() jcenter()
} }
} }
task clean(type: Delete) { task clean(type: Delete) {
delete rootProject.buildDir delete rootProject.buildDir
} }
+2 -2
View File
@@ -1,6 +1,6 @@
#Wed Apr 29 00:35:10 EEST 2020 #Tue Oct 20 12:27:05 GMT+03:00 2020
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip