Skip to content

Commit 2f42bc6

Browse files
committed
adding version file and removing underscore from package name and remove random image
1 parent 88df45b commit 2f42bc6

File tree

8 files changed

+13
-18
lines changed

8 files changed

+13
-18
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.26.0
1+
1.25.0

android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ android {
4444

4545
defaultConfig {
4646
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
47-
applicationId "com.camerakit.flutter.camerakit_flutter_sample_simple"
47+
applicationId "com.camerakit.flutter.sample.simple"
4848
// You can update the following values to match your application needs.
4949
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
5050
minSdkVersion 21

android/app/src/debug/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.camerakit.flutter.camerakit_flutter_sample_simple">
2+
package="com.camerakit.flutter.sample.simple">
33
<!-- The INTERNET permission is required for development. Specifically,
44
the Flutter tool needs it to communicate with the running application
55
to allow setting breakpoints, to provide hot reload, etc.

android/app/src/main/AndroidManifest.xml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.camerakit.flutter.camerakit_flutter_sample_simple">
2+
package="com.camerakit.flutter.sample.simple">
33

44
<uses-permission android:name="android.permission.INTERNET"/>
55
<uses-permission android:name="android.permission.CAMERA" />
66
<uses-permission android:name="android.permission.RECORD_AUDIO" />
77
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
88

99
<application
10-
android:label="camerakit_flutter_sample_simple"
10+
android:label="Camera Kit Flutter Sample"
1111
android:name="${applicationName}"
12-
android:icon="@mipmap/ic_launcher">
12+
android:icon="@mipmap/ic_launcher"
13+
android:theme="@style/LaunchTheme">
1314
<activity
1415
android:name=".MainActivity"
1516
android:exported="true"
1617
android:launchMode="singleTop"
17-
android:theme="@style/LaunchTheme"
1818
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1919
android:hardwareAccelerated="true"
2020
android:windowSoftInputMode="adjustResize">
@@ -32,9 +32,6 @@
3232
</intent-filter>
3333
</activity>
3434

35-
<activity android:name="com.snap.camerakit.support.app.CameraActivity"
36-
android:theme="@style/Theme.AppCompat.NoActionBar"
37-
/>
3835
<!-- Don't delete the meta-data below.
3936
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
4037
<meta-data
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.camerakit.flutter.camerakit_flutter_sample_simple
1+
package com.camerakit.flutter.sample.simple
22

33
import android.content.Intent
44
import android.view.View
@@ -14,9 +14,8 @@ import java.io.File
1414

1515
class MainActivity : FlutterFragmentActivity() {
1616

17-
private val CAMERAKIT_APP_ID = "" //TODO fill app id here
18-
private val CAMERAKIT_GROUP_ID = "" //TODO fill group id here
19-
private val CAMERAKIT_API_TOKEN = "" //TODO fill api token here
17+
private val CAMERAKIT_GROUP_ID = "59f98a84-6910-45c0-8692-4edd5cc3d5ed" //TODO fill group id here
18+
private val CAMERAKIT_API_TOKEN = "eyJhbGciOiJIUzI1NiIsImtpZCI6IkNhbnZhc1MyU0hNQUNQcm9kIiwidHlwIjoiSldUIn0.eyJhdWQiOiJjYW52YXMtY2FudmFzYXBpIiwiaXNzIjoiY2FudmFzLXMyc3Rva2VuIiwibmJmIjoxNjU1MzM1NzM0LCJzdWIiOiIxOTFkNWRmMC1kNWJmLTQ2OGItYTYzNC04NDhlZmRmYWY1OGF-U1RBR0lOR35kMWRmOTE0Yy04ZGI0LTQzZDktYjhmNi1mZDdjOTM2ODQ4NmEifQ.XsUvnwigfWjEFpd6-BqbpabjDCMLK80SvKIrag_iSD4" //TODO fill api token here
2019
private val CHANNEL = "com.camerakit.flutter.sample.simple"
2120

2221
private lateinit var _result: MethodChannel.Result
@@ -54,7 +53,6 @@ class MainActivity : FlutterFragmentActivity() {
5453
captureLauncher.launch(
5554
CameraActivity.Configuration.WithLenses(
5655
cameraKitApiToken = CAMERAKIT_API_TOKEN,
57-
cameraKitApplicationId = CAMERAKIT_APP_ID,
5856
lensGroupIds = arrayOf(CAMERAKIT_GROUP_ID)
5957
)
6058
)

android/app/src/profile/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.camerakit.flutter.camerakit_flutter_sample_simple">
2+
package="com.camerakit.flutter.sample.simple">
33
<!-- The INTERNET permission is required for development. Specifically,
44
the Flutter tool needs it to communicate with the running application
55
to allow setting breakpoints, to provide hot reload, etc.

lib/main.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class _MyHomePageState extends State<MyHomePage> {
3636
late VideoPlayerController _controller;
3737
late Future<void> _initializeVideoPlayerFuture;
3838
final List<Widget> _children = [
39-
Image.network('https://picsum.photos/200/300'),
39+
Text("Click on shutter icon to launch Camera Kit"),
4040
];
4141

4242
@override

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: camerakit_flutter_sample_simple
1+
name: sample.simple
22
description: A new Flutter project.
33
# The following line prevents the package from being accidentally published to
44
# pub.dev using `flutter pub publish`. This is preferred for private packages.

0 commit comments

Comments
 (0)