Skip to content

Commit 618c7cc

Browse files
author
weiqiangliu
committed
Release 0.0.3
1 parent 04c44be commit 618c7cc

File tree

24 files changed

+197
-183
lines changed

24 files changed

+197
-183
lines changed

.idea/workspace.xml

Lines changed: 6 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@
55

66
## 0.0.2
77

8-
* 新增初始化接口
8+
* 新增初始化接口
9+
10+
## 0.0.3
11+
12+
* SDK 依赖由 jcenter 调整为 mavenCentral

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
```yml
1919
dependencies:
2020
# 添加神策 flutter plugin
21-
abtesting_sdk_flutter: ^0.0.2
21+
abtesting_sdk_flutter: ^0.0.3
2222
```
2323
2424
执行 flutter packages get 命令安装插件

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version '1.0'
44
buildscript {
55
repositories {
66
google()
7-
jcenter()
7+
mavenCentral()
88
}
99

1010
dependencies {
@@ -15,7 +15,7 @@ buildscript {
1515
rootProject.allprojects {
1616
repositories {
1717
google()
18-
jcenter()
18+
mavenCentral()
1919
}
2020
}
2121

example/.metadata

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
# This file tracks properties of this Flutter project.
22
# Used by Flutter tool to assess capabilities and perform upgrades etc.
33
#
4-
# This file should be version controlled and should not be manually edited.
4+
# This file should be version controlled.
55

66
version:
7-
revision: d79295af24c3ed621c33713ecda14ad196fd9c31
7+
revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a
88
channel: stable
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a
17+
base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a
18+
- platform: android
19+
create_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a
20+
base_revision: 6928314d505d2bb4777be05e45d7808a5aa91d2a
21+
22+
# User provided section
23+
24+
# List of Local paths (relative to this file) that should be
25+
# ignored by the migrate tool.
26+
#
27+
# Files that are not part of the templates will be ignored by default.
28+
unmanaged_files:
29+
- 'lib/main.dart'
30+
- 'ios/Runner.xcodeproj/project.pbxproj'

example/analysis_options.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# 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.
18+
#
19+
# Instead of disabling a lint rule for the entire project in the
20+
# section below, it can also be suppressed for a single line of code
21+
# or a specific dart file by using the `// ignore: name_of_lint` and
22+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
23+
# producing the lint.
24+
rules:
25+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
26+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
27+
28+
# Additional information about this file can be found at
29+
# https://dart.dev/guides/language/analysis-options

example/android/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ GeneratedPluginRegistrant.java
99
# Remember to never publicly share your keystore.
1010
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
1111
key.properties
12+
**/*.keystore
13+
**/*.jks

example/android/app/build.gradle

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,33 @@ if (flutterVersionName == null) {
2222
}
2323

2424
apply plugin: 'com.android.application'
25+
apply plugin: 'kotlin-android'
2526
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2627

2728
android {
28-
compileSdkVersion 30
29+
compileSdkVersion flutter.compileSdkVersion
30+
ndkVersion flutter.ndkVersion
31+
32+
compileOptions {
33+
sourceCompatibility JavaVersion.VERSION_1_8
34+
targetCompatibility JavaVersion.VERSION_1_8
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = '1.8'
39+
}
40+
41+
sourceSets {
42+
main.java.srcDirs += 'src/main/kotlin'
43+
}
2944

3045
defaultConfig {
3146
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
32-
applicationId "com.sensorsdata.analytics.abtesting.abtesting_sdk_flutter_example"
33-
minSdkVersion 16
34-
targetSdkVersion 30
47+
applicationId "com.sensorsdata.analytics.abtesting.example"
48+
// You can update the following values to match your application needs.
49+
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
50+
minSdkVersion flutter.minSdkVersion
51+
targetSdkVersion flutter.targetSdkVersion
3552
versionCode flutterVersionCode.toInteger()
3653
versionName flutterVersionName
3754
}
@@ -49,7 +66,6 @@ flutter {
4966
source '../..'
5067
}
5168

52-
5369
dependencies {
54-
implementation 'com.sensorsdata.analytics.android:SensorsAnalyticsSDK:4.3.6'
55-
}
70+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
71+
}

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.sensorsdata.analytics.abtesting.abtesting_sdk_flutter_example">
3-
<!-- Flutter needs it to communicate with the running application
2+
package="com.sensorsdata.analytics.abtesting.example">
3+
<!-- The INTERNET permission is required for development. Specifically,
4+
the Flutter tool needs it to communicate with the running application
45
to allow setting breakpoints, to provide hot reload, etc.
56
-->
67
<uses-permission android:name="android.permission.INTERNET"/>

example/android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.sensorsdata.analytics.abtesting.abtesting_sdk_flutter_example">
2+
package="com.sensorsdata.analytics.abtesting.example">
33
<application
4-
android:name=".MyApplication"
5-
android:usesCleartextTraffic="true"
6-
android:label="abtesting_sdk_flutter_example"
4+
android:label="example"
5+
android:usesCleartextTraffic="true"
76
android:icon="@mipmap/ic_launcher">
87
<activity
98
android:name=".MainActivity"
9+
android:exported="true"
1010
android:launchMode="singleTop"
1111
android:theme="@style/LaunchTheme"
1212
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
@@ -20,15 +20,6 @@
2020
android:name="io.flutter.embedding.android.NormalTheme"
2121
android:resource="@style/NormalTheme"
2222
/>
23-
<!-- Displays an Android View that continues showing the launch screen
24-
Drawable until Flutter paints its first frame, then this splash
25-
screen fades out. A splash screen is useful to avoid any visual
26-
gap between the end of Android's launch screen and the painting of
27-
Flutter's first frame. -->
28-
<meta-data
29-
android:name="io.flutter.embedding.android.SplashScreenDrawable"
30-
android:resource="@drawable/launch_background"
31-
/>
3223
<intent-filter>
3324
<action android:name="android.intent.action.MAIN"/>
3425
<category android:name="android.intent.category.LAUNCHER"/>

0 commit comments

Comments
 (0)