Skip to content

Commit

Permalink
fix(gradle) implementation, plugins and ndk version updated
Browse files Browse the repository at this point in the history
  • Loading branch information
YYChen01988 committed Apr 15, 2024
1 parent 61d3000 commit 6996ba1
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
Binary file added examples/sdk-app-example/-
Binary file not shown.
11 changes: 6 additions & 5 deletions examples/sdk-app-example/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ apply plugin: "com.android.application"
apply plugin: "kotlin-android"

android {
compileSdk 31
compileSdk 34
ndkVersion "21.4.7075529"

defaultConfig {
applicationId "com.example.bugsnag.android"
minSdkVersion 16
targetSdkVersion 31
targetSdkVersion 34
versionCode 1
versionName "1.0"
}
Expand Down Expand Up @@ -38,15 +38,16 @@ android {

buildFeatures.prefab = true
packagingOptions.jniLibs.pickFirsts += ["**/libbugsnag-ndk.so"]
namespace 'com.example.bugsnag.android'
}

dependencies {
implementation "com.bugsnag:bugsnag-android:6.3.0"
implementation "com.bugsnag:bugsnag-plugin-android-okhttp:6.3.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "androidx.appcompat:appcompat:1.4.0"
implementation "com.google.android.material:material:1.4.0"
implementation "com.squareup.okhttp3:okhttp:4.10.0"
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "com.google.android.material:material:1.11.0"
implementation "com.squareup.okhttp3:okhttp:4.12.0"
}

apply plugin: "com.bugsnag.android.gradle"
Expand Down
3 changes: 1 addition & 2 deletions examples/sdk-app-example/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.bugsnag.android">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
4 changes: 2 additions & 2 deletions examples/sdk-app-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ buildscript {
mavenLocal()
}
dependencies {
classpath "com.android.tools.build:gradle:7.4.2"
classpath 'com.android.tools.build:gradle:8.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.bugsnag:bugsnag-android-gradle-plugin:7.1.0"
classpath "com.bugsnag:bugsnag-android-gradle-plugin:8.+"
}
}

Expand Down
3 changes: 3 additions & 0 deletions examples/sdk-app-example/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ android.useAndroidX=true
org.gradle.jvmargs=-Xmx4096m
org.gradle.parallel=true
kotlin.code.style=official
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 6996ba1

Please sign in to comment.