Skip to content

Commit

Permalink
release version 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Mar 27, 2023
1 parent db641d6 commit eef3dbe
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 54 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.0

support flutter 3.0

## 2.0.4

* Upgrade dependent library version.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# flutter_xupdate

[![Version](https://img.shields.io/badge/version-2.0.4-blue.svg)](https://pub.dev/packages/flutter_xupdate)
[![Version](https://img.shields.io/badge/version-3.0.0-blue.svg)](https://pub.dev/packages/flutter_xupdate)
[![Build Status](https://travis-ci.org/xuexiangjys/flutter_xupdate.svg?branch=master)](https://travis-ci.org/xuexiangjys/flutter_xupdate)
[![Issue](https://img.shields.io/github/issues/xuexiangjys/flutter_xupdate.svg)](https://github.com/xuexiangjys/flutter_xupdate/issues)
[![Star](https://img.shields.io/github/stars/xuexiangjys/flutter_xupdate.svg)](https://github.com/xuexiangjys/flutter_xupdate)
Expand Down Expand Up @@ -28,7 +28,7 @@ You should ensure that you add the `flutter_xupdate` as a dependency in your flu
```
// pub 集成
dependencies:
flutter_xupdate: ^2.0.4
flutter_xupdate: ^3.0.0
//github 集成
dependencies:
Expand Down
22 changes: 12 additions & 10 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
group 'com.xuexiang.flutter_xupdate'
version '2.0.4'
version '3.0.0'

buildscript {
repositories {
google()
mavenCentral()
jcenter { url 'https://maven.aliyun.com/repository/jcenter' }
google { url'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.aliyun.com/repository/public' }
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:7.2.0'
}
}

rootProject.allprojects {
repositories {
google()
mavenCentral()
jcenter { url 'https://maven.aliyun.com/repository/jcenter' }
google { url'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url "https://jitpack.io" }
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion 28
compileSdkVersion 31

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
disable 'InvalidPackage'
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
16 changes: 9 additions & 7 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 28
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

lintOptions {
disable 'InvalidPackage'
Expand All @@ -34,11 +40,10 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.xuexiang.flutter_xupdate_example"
minSdkVersion 16
targetSdkVersion 28
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

//打包时推荐使用原生打包,如果嫌打的包太大,可以配置如下信息,按需打包
// ndk {
Expand Down Expand Up @@ -70,7 +75,4 @@ flutter {
}

dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
30 changes: 16 additions & 14 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xuexiang.flutter_xupdate_example">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->

<application
android:name="io.flutter.app.FlutterApplication"
android:label="flutter_xupdate_example"
android:icon="@mipmap/ic_launcher">
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="flutter_xupdate_example">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:exported="true"
android:hardwareAccelerated="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:windowSoftInputMode="adjustResize">
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->

<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background" />
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
package com.xuexiang.flutter_xupdate_example;

import androidx.annotation.NonNull;

import io.flutter.embedding.android.FlutterFragmentActivity;
import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.plugins.GeneratedPluginRegistrant;

public class MainActivity extends FlutterFragmentActivity {
@Override
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
GeneratedPluginRegistrant.registerWith(flutterEngine);
}
}
3 changes: 3 additions & 0 deletions example/android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
12 changes: 5 additions & 7 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
buildscript {
repositories {
google()
mavenCentral()
jcenter { url 'https://maven.aliyun.com/repository/jcenter' }
google { url'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.aliyun.com/repository/public' }
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:7.2.0'
}
}

allprojects {
repositories {
google()
mavenCentral()
jcenter { url 'https://maven.aliyun.com/repository/jcenter' }
google { url'https://maven.aliyun.com/repository/google'}
maven { url 'https://maven.aliyun.com/repository/public' }
}
}

Expand Down
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: flutter_xupdate
description: A Flutter plugin for XUpdate(Android Version Update Library).
version: 2.0.4
version: 3.0.0
homepage: https://github.com/xuexiangjys/flutter_xupdate
repository: https://github.com/xuexiangjys/flutter_xupdate
issue_tracker: https://github.com/xuexiangjys/flutter_xupdate/issues

environment:
sdk: '>=2.12.0 <3.0.0'
flutter: '>=1.10.0'
sdk: '>=2.19.5 <3.0.0'
flutter: ">=2.5.0"

dependencies:
flutter:
sdk: flutter
package_info_plus: ^1.3.0
package_info_plus: ^3.0.3

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit eef3dbe

Please sign in to comment.