Skip to content

Commit

Permalink
Merge pull request #2 from islam-mohamad/fix/update_java_version
Browse files Browse the repository at this point in the history
chore: update java version
  • Loading branch information
islam-mohamad authored Nov 18, 2022
2 parents 01db467 + ed0722b commit a073122
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}
}

Expand Down
11 changes: 8 additions & 3 deletions app/src/main/java/com/islam/appcentercicd/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
package com.islam.appcentercicd

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.microsoft.appcenter.AppCenter
import com.microsoft.appcenter.analytics.Analytics
import com.microsoft.appcenter.crashes.Crashes

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
AppCenter.start(getApplication(), "78a15f84-5697-4886-88c8-cd9cc3bcfaf2",
Analytics.class, Crashes.class);
AppCenter.start(
application, "78a15f84-5697-4886-88c8-cd9cc3bcfaf2",
Analytics::class.java, Crashes::class.java
);
}
}

0 comments on commit a073122

Please sign in to comment.