Skip to content

Commit 3b3841e

Browse files
committed
Update config
1 parent b6745ea commit 3b3841e

File tree

8 files changed

+18
-29
lines changed

8 files changed

+18
-29
lines changed

samples/sample-bugsnag/shared/build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ android {
2727
}
2828
}
2929

30-
val CRASHKIOS_VERSION: String by project
31-
3230
version = "0.0.1"
3331

3432
kotlin {

samples/sample-crashlytics/app/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ android {
4848
}
4949
}
5050

51-
val CRASHKIOS_VERSION: String by project
52-
5351
dependencies {
5452
implementation(project(":shared"))
5553
implementation(libs.bundles.android)
@@ -58,5 +56,5 @@ dependencies {
5856
implementation (platform(libs.firebase.bom))
5957
implementation(libs.firebase.analytics)
6058
implementation(libs.firebase.crashlytics)
61-
implementation("co.touchlab.crashkios:crashlytics:${CRASHKIOS_VERSION}")
59+
implementation("co.touchlab.crashkios:crashlytics")
6260
}

samples/sample-crashlytics/build.gradle.kts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,22 @@
99
*/
1010
buildscript {
1111
repositories {
12-
google()
13-
mavenLocal()
1412
mavenCentral()
15-
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
16-
}
17-
extra.apply {
18-
val parentCrashKiOS = java.util.Properties().apply { load(java.io.StringReader(File("${projectDir.path}/../../gradle.properties").readText())) }.get("VERSION_NAME") as String
19-
set("CRASHKIOS_VERSION", parentCrashKiOS)
13+
google()
2014
}
2115
dependencies {
2216
fun readParentKotlin():String = java.util.Properties().apply { load(java.io.StringReader(File("${projectDir.path}/../../gradle.properties").readText())) }.get("KOTLIN_VERSION") as String
2317

24-
classpath("com.android.tools.build:gradle:7.0.1")
18+
classpath("com.android.tools.build:gradle:7.2.2")
2519
classpath(kotlin("gradle-plugin", readParentKotlin()))
26-
classpath("com.google.gms:google-services:4.3.10")
27-
classpath("com.google.firebase:firebase-crashlytics-gradle:2.7.1")
20+
classpath("com.google.gms:google-services:4.3.14")
21+
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.2")
2822
classpath("co.touchlab.crashkios:utils:0.7.1-alpha3")
2923
}
3024
}
3125
allprojects{
3226
repositories{
33-
mavenLocal()
3427
mavenCentral()
35-
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
3628
google()
3729
}
3830
}

samples/sample-crashlytics/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
distributionBase=GRADLE_USER_HOME
1212
distributionPath=wrapper/dists
13-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
13+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
1414
zipStoreBase=GRADLE_USER_HOME
1515
zipStorePath=wrapper/dists

samples/sample-crashlytics/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ SPEC CHECKSUMS:
7373
GoogleUtilities: 8de2a97a17e15b6b98e38e8770e2d129a57c0040
7474
nanopb: a0ba3315591a9ae0a16a309ee504766e90db0c96
7575
PromisesObjC: 68159ce6952d93e17b2dfe273b8c40907db5ba58
76-
shared: 067de882ce4dab80548f9227a9f4bf54b7c9afe7
76+
shared: 0ac2a6917fe3052eafc341e7f80edcaabf06253c
7777

7878
PODFILE CHECKSUM: 0ff799ecfce730b0f52c42ff7c611152c6705e26
7979

samples/sample-crashlytics/settings.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@
1111
include(":app", ":shared")
1212

1313
enableFeaturePreview("VERSION_CATALOGS")
14+
15+
includeBuild("../..") {
16+
dependencySubstitution {
17+
substitute(module("co.touchlab.crashkios:crashlytics"))
18+
.using(project(":crashlytics")).because("we want to auto-wire up sample dependency")
19+
}
20+
}

samples/sample-crashlytics/shared/build.gradle.kts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
*
88
* 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.
99
*/
10-
import co.touchlab.faktory.crashlyticsLinkerConfig
11-
1210
plugins {
1311
id("com.android.library")
1412
kotlin("multiplatform")
1513
kotlin("native.cocoapods")
14+
id("co.touchlab.crashkios.crashlyticslink") version ("0.8.0")
1615
}
1716

1817
android {
@@ -27,8 +26,6 @@ android {
2726
}
2827
}
2928

30-
val CRASHKIOS_VERSION: String by project
31-
3229
version = "0.1.2"
3330

3431
kotlin {
@@ -41,7 +38,7 @@ kotlin {
4138
val commonMain by sourceSets.getting {
4239
dependencies {
4340
implementation(kotlin("stdlib-common"))
44-
api("co.touchlab.crashkios:crashlytics:${CRASHKIOS_VERSION}")
41+
api("co.touchlab.crashkios:crashlytics")
4542
}
4643
}
4744

@@ -71,10 +68,7 @@ kotlin {
7168
homepage = "https://www.touchlab.co"
7269
ios.deploymentTarget = "13.5"
7370
framework {
74-
// export("co.touchlab.crashkios:crashlytics:${CRASHKIOS_VERSION}")
7571
isStatic = false
7672
}
7773
}
78-
79-
crashlyticsLinkerConfig()
8074
}

samples/sample-crashlytics/shared/shared.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Pod::Spec.new do |spec|
2222
:execution_position => :before_compile,
2323
:shell_path => '/bin/sh',
2424
:script => <<-SCRIPT
25-
if [ "YES" = "$COCOAPODS_SKIP_KOTLIN_BUILD" ]; then
26-
echo "Skipping Gradle build task invocation due to COCOAPODS_SKIP_KOTLIN_BUILD environment variable set to \"YES\""
25+
if [ "YES" = "$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED" ]; then
26+
echo "Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \"YES\""
2727
exit 0
2828
fi
2929
set -ev

0 commit comments

Comments
 (0)