Skip to content

Commit 3fbc3cb

Browse files
Merge pull request #48 from DevCrew-io/upgrade-sdk
Upgrade Snapchat SDK & Example Project
2 parents 1cab55d + 9924ae8 commit 3fbc3cb

39 files changed

+410
-611
lines changed

CHANGELOG.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1+
## 1.0.4
2+
### Updated
3+
* Update CameraKit SDK to 1.38.0
4+
* Update Example project.
5+
16
## 1.0.3
27
### Updated
3-
* Update Camera kit SDK to 1.37.0
8+
* Update CameraKit SDK to 1.37.0
49

510
## 1.0.2
611
### Updated
7-
* Update Camera kit SDK to 1.36.0
12+
* Update CameraKit SDK to 1.36.0
813
* Configuration setup is updated as per new snapchat version.
914

1015
## 1.0.1
11-
* Update Camera kit SDK to 1.31.0
16+
* Update CameraKit SDK to 1.31.0
1217

1318
## 1.0.0
1419
* Fix dart formatting warnings for pub points.

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android {
5252
dependencies {
5353
testImplementation 'org.jetbrains.kotlin:kotlin-test'
5454
testImplementation 'org.mockito:mockito-core:5.0.0'
55-
implementation "com.snap.camerakit:support-camera-activity:1.37.0"
55+
implementation "com.snap.camerakit:support-camera-activity:1.38.0"
5656
implementation 'com.google.code.gson:gson:2.8.8' // Use the latest version available
5757
}
5858

example/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

example/analysis_options.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ linter:
1313
# The lint rules applied to this project can be customized in the
1414
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
1515
# included above or to enable additional rules. A list of all available lints
16-
# and their documentation is published at
17-
# https://dart-lang.github.io/linter/lints/index.html.
16+
# and their documentation is published at https://dart.dev/lints.
1817
#
1918
# Instead of disabling a lint rule for the entire project in the
2019
# section below, it can also be suppressed for a single line of code

example/android/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ gradle-wrapper.jar
55
/gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
8+
.cxx/
89

910
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
11+
# See https://flutter.dev/to/reference-keystore
1112
key.properties
1213
**/*.keystore
1314
**/*.jks

example/android/app/build.gradle

Lines changed: 0 additions & 67 deletions
This file was deleted.

example/android/app/build.gradle.kts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
plugins {
2+
id("com.android.application")
3+
id("kotlin-android")
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id("dev.flutter.flutter-gradle-plugin")
6+
}
7+
8+
android {
9+
namespace = "com.camerakit.camerakit_flutter_example.camerakit_flutter_example"
10+
compileSdk = flutter.compileSdkVersion
11+
// ndkVersion = flutter.ndkVersion
12+
ndkVersion = "27.0.12077973"
13+
14+
compileOptions {
15+
sourceCompatibility = JavaVersion.VERSION_11
16+
targetCompatibility = JavaVersion.VERSION_11
17+
}
18+
19+
kotlinOptions {
20+
jvmTarget = JavaVersion.VERSION_11.toString()
21+
}
22+
23+
defaultConfig {
24+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
25+
applicationId = "com.camerakit.camerakit_flutter_example.camerakit_flutter_example"
26+
// You can update the following values to match your application needs.
27+
// For more information, see: https://flutter.dev/to/review-gradle-config.
28+
minSdk = flutter.minSdkVersion
29+
targetSdk = flutter.targetSdkVersion
30+
versionCode = flutter.versionCode
31+
versionName = flutter.versionName
32+
}
33+
34+
buildTypes {
35+
release {
36+
// TODO: Add your own signing config for the release build.
37+
// Signing with the debug keys for now, so `flutter run --release` works.
38+
signingConfig = signingConfigs.getByName("debug")
39+
}
40+
}
41+
}
42+
43+
flutter {
44+
source = "../.."
45+
}
Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
22
<application
3-
android:label="camerakit_flutter_example"
43
android:name="${applicationName}"
4+
android:icon="@mipmap/ic_launcher"
55
android:theme="@style/AppCompat"
6-
android:icon="@mipmap/ic_launcher">
6+
android:label="camerakit_flutter_example">
77

8-
<meta-data android:name="com.snap.camerakit.app.id" android:value="" />
9-
<meta-data android:name="com.snap.camerakit.api.token" android:value="" />
8+
<meta-data
9+
android:name="com.snap.camerakit.app.id"
10+
android:value="" />
11+
<meta-data
12+
android:name="com.snap.camerakit.api.token"
13+
android:value="" />
1014

1115
<activity
1216
android:name=".MainActivity"
13-
android:exported="true"
14-
android:launchMode="singleTop"
1517
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
18+
android:exported="true"
1619
android:hardwareAccelerated="true"
20+
android:launchMode="singleTop"
21+
android:taskAffinity=""
22+
android:theme="@style/LaunchTheme"
1723
android:windowSoftInputMode="adjustResize">
1824
<!-- Specifies an Android theme to apply to this Activity as soon as
1925
the Android process has started. This theme is visible to the user
2026
while the Flutter UI initializes. After that, this theme continues
2127
to determine the Window background behind the Flutter UI. -->
2228
<meta-data
23-
android:name="io.flutter.embedding.android.NormalTheme"
24-
android:resource="@style/NormalTheme"
25-
/>
29+
android:name="io.flutter.embedding.android.NormalTheme"
30+
android:resource="@style/NormalTheme" />
2631
<intent-filter>
27-
<action android:name="android.intent.action.MAIN"/>
28-
<category android:name="android.intent.category.LAUNCHER"/>
32+
<action android:name="android.intent.action.MAIN" />
33+
<category android:name="android.intent.category.LAUNCHER" />
2934
</intent-filter>
3035
</activity>
3136
<!-- Don't delete the meta-data below.
@@ -34,4 +39,15 @@
3439
android:name="flutterEmbedding"
3540
android:value="2" />
3641
</application>
42+
<!-- Required to query activities that can process text, see:
43+
https://developer.android.com/training/package-visibility and
44+
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
45+
46+
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
47+
<queries>
48+
<intent>
49+
<action android:name="android.intent.action.PROCESS_TEXT" />
50+
<data android:mimeType="text/plain" />
51+
</intent>
52+
</queries>
3753
</manifest>

example/android/app/src/main/kotlin/com/camerakit/camerakit_flutter_example/MainActivity.kt

Lines changed: 0 additions & 6 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.camerakit.camerakit_flutter_example.camerakit_flutter_example
2+
3+
import io.flutter.embedding.android.FlutterActivity
4+
5+
class MainActivity : FlutterActivity()

0 commit comments

Comments
 (0)