Skip to content

Commit

Permalink
Update dependencies and sdk version
Browse files Browse the repository at this point in the history
- add kotlin-android
- add 'exported=true' to AndroidManifest.xml
  • Loading branch information
Tobias Länge committed Oct 13, 2022
1 parent 0b7460e commit 74e315b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
17 changes: 9 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 28
compileSdkVersion 32

defaultConfig {
applicationId "org.secuso.privacyfriendlycircuittraining"
minSdkVersion 21
targetSdkVersion 28
targetSdkVersion 32
versionCode 2
versionName "1.1"
}
Expand All @@ -21,7 +22,7 @@ android {
android.applicationVariants.all { variant ->
variant.outputs.all {
def appName = "pfa-circuit-training"
outputFileName = appName+"-${variant.name}-v${variant.versionName}.apk"
outputFileName = appName + "-${variant.name}-v${variant.versionName}.apk"
}
}

Expand All @@ -31,13 +32,13 @@ repositories {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.appcompat:appcompat:1.5.1'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.0-beta1'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13.2'
}
5 changes: 4 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
android:theme="@style/AppTheme">
<activity
android:name="org.secuso.privacyfriendlycircuittraining.activities.SplashActivity"
android:exported="true"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down Expand Up @@ -85,7 +86,9 @@
android:enabled="true"
android:exported="true" />

<receiver android:name="org.secuso.privacyfriendlycircuittraining.receivers.OnBootCompletedBroadcastReceiver">
<receiver
android:name="org.secuso.privacyfriendlycircuittraining.receivers.OnBootCompletedBroadcastReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.7.10'

repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -15,7 +18,7 @@ buildscript {

allprojects {
repositories {
jcenter()
mavenCentral()
google()
}
}
Expand Down

0 comments on commit 74e315b

Please sign in to comment.