Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions bugsnag/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("com.android.library")
Expand All @@ -28,12 +28,14 @@ group = GROUP
version = VERSION_NAME

kotlin {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
androidTarget {
publishAllLibraryVariants()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}

macosX64()
Expand Down Expand Up @@ -100,8 +102,4 @@ android {
.get()
.toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
11 changes: 5 additions & 6 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi

import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("com.android.library")
Expand All @@ -27,12 +28,14 @@ group = GROUP
version = VERSION_NAME

kotlin {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
androidTarget {
publishAllLibraryVariants()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}

macosX64()
Expand Down Expand Up @@ -72,10 +75,6 @@ android {
.get()
.toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}

apply(plugin = "com.vanniktech.maven.publish")
10 changes: 4 additions & 6 deletions crashlytics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("com.android.library")
Expand All @@ -28,12 +28,14 @@ group = GROUP
version = VERSION_NAME

kotlin {
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
androidTarget {
publishAllLibraryVariants()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}

macosX64()
Expand Down Expand Up @@ -98,8 +100,4 @@ android {
.get()
.toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
4 changes: 2 additions & 2 deletions samples/sample-bugsnag/CrashKiOSSampleIOS/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
Bugsnag: d7b2e5e78eaf66246d635240c61a6c8a18e3922c
shared: db2bfa2f9309d3a03ed92c95da4d0b121dfc7d02
shared: 0235f9a55259ea208721ea8394d950385abca2ed

PODFILE CHECKSUM: 334109894bf80203c54092dcc680f36bc85b527c

COCOAPODS: 1.12.1
COCOAPODS: 1.17.0
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-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 2 additions & 0 deletions samples/sample-bugsnag/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ includeBuild("../..") {
dependencySubstitution {
substitute(module("co.touchlab.crashkios:bugsnag"))
.using(project(":bugsnag")).because("we want to auto-wire up sample dependency")
substitute(module("co.touchlab.crashkios.bugsnaglink:co.touchlab.crashkios.bugsnaglink.gradle.plugin"))
.using(project(":bugsnag-ios-link")).because("we want to auto-wire up sample dependency")
}
}

Expand Down
17 changes: 7 additions & 10 deletions samples/sample-bugsnag/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("com.android.library")
Expand All @@ -22,20 +23,16 @@ android {
defaultConfig {
minSdk = projectLibs.versions.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

version = "0.0.1"

kotlin {
androidTarget()
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
iosX64()
iosArm64()
// Note: iosSimulatorArm64 target requires that all dependencies have M1 support
Expand Down
4 changes: 4 additions & 0 deletions samples/sample-bugsnag/shared/shared.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Pod::Spec.new do |spec|
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.xcconfig = {
'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
}
Comment thread
wellingtoncosta marked this conversation as resolved.

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':shared',
'PRODUCT_MODULE_NAME' => 'shared',
Expand Down
7 changes: 3 additions & 4 deletions samples/sample-crashlytics/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ buildscript {
dependencies {
classpath(libs.google.services)
classpath(libs.firebase.crashlytics.gradle)
classpath(libs.crashkios.utils)
}
}
plugins {
Expand All @@ -24,9 +23,9 @@ plugins {
alias(projectLibs.plugins.crashkios.crashlyticslink) apply false
}

allprojects{
repositories{
allprojects {
repositories {
mavenCentral()
google()
}
}
}
2 changes: 0 additions & 2 deletions samples/sample-crashlytics/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
firebase-bom = "32.2.3"
firebase-crashlytics-gradle = "2.9.9"
google-services = "4.3.15"
utils = "0.7.1-alpha3"

[libraries]
firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebase-bom" }
firebase-analytics = { module = "com.google.firebase:firebase-analytics-ktx" }
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics-ktx" }
firebase-crashlytics-gradle = { module = "com.google.firebase:firebase-crashlytics-gradle", version.ref = "firebase-crashlytics-gradle" }
google-services = { module = "com.google.gms:google-services", version.ref = "google-services" }
crashkios-utils = { module = "co.touchlab.crashkios:utils", version.ref = "utils" }
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-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 3 additions & 1 deletion samples/sample-crashlytics/ios-spm/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,6 @@ Dependencies/
### Xcode Patch ###
**/xcshareddata/WorkspaceSettings.xcsettings

# End of https://www.gitignore.io/api/xcode,swift,objective-c
# End of https://www.gitignore.io/api/xcode,swift,objective-c

ios/GoogleService-Info.plist
30 changes: 0 additions & 30 deletions samples/sample-crashlytics/ios-spm/ios/GoogleService-Info.plist

This file was deleted.

4 changes: 3 additions & 1 deletion samples/sample-crashlytics/ios/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,6 @@ Dependencies/
### Xcode Patch ###
**/xcshareddata/WorkspaceSettings.xcsettings

# End of https://www.gitignore.io/api/xcode,swift,objective-c
# End of https://www.gitignore.io/api/xcode,swift,objective-c

ios/GoogleService-Info.plist
4 changes: 2 additions & 2 deletions samples/sample-crashlytics/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ SPEC CHECKSUMS:
GoogleUtilities: 8de2a97a17e15b6b98e38e8770e2d129a57c0040
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
shared: 789ad2911128b118351fd54e4c01aada5f53b520
shared: 628313d3401ca262e9c0f21500e026f0ede751b8

PODFILE CHECKSUM: 0ff799ecfce730b0f52c42ff7c611152c6705e26

COCOAPODS: 1.12.1
COCOAPODS: 1.17.0
30 changes: 0 additions & 30 deletions samples/sample-crashlytics/ios/ios/GoogleService-Info.plist

This file was deleted.

18 changes: 7 additions & 11 deletions samples/sample-crashlytics/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
id("com.android.library")
Expand All @@ -22,20 +23,16 @@ android {
defaultConfig {
minSdk = projectLibs.versions.minSdk.get().toInt()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

version = "0.1.2"

kotlin {
androidTarget()
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
iosX64()
iosArm64()
// Note: iosSimulatorArm64 target requires that all dependencies have M1 support
Expand All @@ -51,7 +48,6 @@ kotlin {
commonTest {
dependencies {
implementation(kotlin("test"))

}
}
}
Expand Down
6 changes: 5 additions & 1 deletion samples/sample-crashlytics/shared/shared.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Pod::Spec.new do |spec|
spec.summary = 'Sample for CrashKiOS'
spec.vendored_frameworks = 'build/cocoapods/framework/shared.framework'
spec.libraries = 'c++'
spec.ios.deployment_target = '14.1'
spec.ios.deployment_target = '14.1'


if !Dir.exist?('build/cocoapods/framework/shared.framework') || Dir.empty?('build/cocoapods/framework/shared.framework')
Expand All @@ -22,6 +22,10 @@ Pod::Spec.new do |spec|
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
end

spec.xcconfig = {
'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
}
Comment thread
wellingtoncosta marked this conversation as resolved.

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':shared',
'PRODUCT_MODULE_NAME' => 'shared',
Expand Down
Loading