升级SDK
This commit is contained in:
parent
5120207d51
commit
4c65a1ec7c
27
.drone.yml
27
.drone.yml
@ -91,9 +91,10 @@ steps:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: pub-cache
|
- name: pub-cache
|
||||||
path: /opt/flutter/.pub-cache
|
path: /opt/flutter/.pub-cache
|
||||||
|
environment:
|
||||||
|
PUB_CACHE: /opt/flutter/.pub-cache
|
||||||
commands:
|
commands:
|
||||||
- FLUTTER_HOME=/opt/flutter/.pub-cache
|
- wget -P $PUB_CACHE https://raw.githubusercontent.com/v7lin/pub_credentials/master/credentials.json.enc
|
||||||
- wget -P $FLUTTER_HOME https://raw.githubusercontent.com/v7lin/pub_credentials/master/credentials.json.enc
|
|
||||||
|
|
||||||
- name: restore-cache-openssl
|
- name: restore-cache-openssl
|
||||||
image: v7lin/openssl:1.1.1b
|
image: v7lin/openssl:1.1.1b
|
||||||
@ -101,14 +102,14 @@ steps:
|
|||||||
- name: pub-cache
|
- name: pub-cache
|
||||||
path: /opt/flutter/.pub-cache
|
path: /opt/flutter/.pub-cache
|
||||||
environment:
|
environment:
|
||||||
|
PUB_CACHE: /opt/flutter/.pub-cache
|
||||||
ENC_METHOD:
|
ENC_METHOD:
|
||||||
from_secret: ENC_METHOD
|
from_secret: ENC_METHOD
|
||||||
ENC_PASSWORD:
|
ENC_PASSWORD:
|
||||||
from_secret: ENC_PASSWORD
|
from_secret: ENC_PASSWORD
|
||||||
commands:
|
commands:
|
||||||
- FLUTTER_HOME=/opt/flutter/.pub-cache
|
- openssl enc -d -$ENC_METHOD -k $ENC_PASSWORD -in $PUB_CACHE/credentials.json.enc -out $PUB_CACHE/credentials.json
|
||||||
- openssl enc -d -$ENC_METHOD -k $ENC_PASSWORD -in $FLUTTER_HOME/credentials.json.enc -out $FLUTTER_HOME/credentials.json
|
- rm $PUB_CACHE/credentials.json.enc
|
||||||
- rm $FLUTTER_HOME/credentials.json.enc
|
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: v7lin/flutter:1.7.8-hotfix.3-stable
|
image: v7lin/flutter:1.7.8-hotfix.3-stable
|
||||||
@ -124,14 +125,14 @@ steps:
|
|||||||
- name: pub-cache
|
- name: pub-cache
|
||||||
path: /opt/flutter/.pub-cache
|
path: /opt/flutter/.pub-cache
|
||||||
environment:
|
environment:
|
||||||
|
PUB_CACHE: /opt/flutter/.pub-cache
|
||||||
ENC_METHOD:
|
ENC_METHOD:
|
||||||
from_secret: ENC_METHOD
|
from_secret: ENC_METHOD
|
||||||
ENC_PASSWORD:
|
ENC_PASSWORD:
|
||||||
from_secret: ENC_PASSWORD
|
from_secret: ENC_PASSWORD
|
||||||
commands:
|
commands:
|
||||||
- FLUTTER_HOME=/opt/flutter/.pub-cache
|
- openssl enc -e -$ENC_METHOD -k $ENC_PASSWORD -in $PUB_CACHE/credentials.json -out $PUB_CACHE/credentials.json.enc
|
||||||
- openssl enc -e -$ENC_METHOD -k $ENC_PASSWORD -in $FLUTTER_HOME/credentials.json -out $FLUTTER_HOME/credentials.json.enc
|
- rm $PUB_CACHE/credentials.json
|
||||||
- rm /opt/flutter/.pub-cache/credentials.json
|
|
||||||
|
|
||||||
- name: save-cache
|
- name: save-cache
|
||||||
image: docker:git
|
image: docker:git
|
||||||
@ -139,6 +140,7 @@ steps:
|
|||||||
- name: pub-cache
|
- name: pub-cache
|
||||||
path: /opt/flutter/.pub-cache
|
path: /opt/flutter/.pub-cache
|
||||||
environment:
|
environment:
|
||||||
|
PUB_CACHE: /opt/flutter/.pub-cache
|
||||||
GIT_USER_EMAIL:
|
GIT_USER_EMAIL:
|
||||||
from_secret: GIT_USER_EMAIL
|
from_secret: GIT_USER_EMAIL
|
||||||
GIT_USER_NAME:
|
GIT_USER_NAME:
|
||||||
@ -146,14 +148,13 @@ steps:
|
|||||||
GIT_USER_PASSWORD:
|
GIT_USER_PASSWORD:
|
||||||
from_secret: GIT_USER_PASSWORD # 密码含'@',用'%40'替换 -> URLEncoder.encode("@","utf-8");
|
from_secret: GIT_USER_PASSWORD # 密码含'@',用'%40'替换 -> URLEncoder.encode("@","utf-8");
|
||||||
commands:
|
commands:
|
||||||
- FLUTTER_HOME=/opt/flutter/.pub-cache
|
|
||||||
- git config --global user.email $GIT_USER_EMAIL
|
- git config --global user.email $GIT_USER_EMAIL
|
||||||
- git config --global user.name $GIT_USER_NAME
|
- git config --global user.name $GIT_USER_NAME
|
||||||
- git config --global credential.helper store
|
- git config --global credential.helper store
|
||||||
- git clone -b master https://$GIT_USER_NAME:$GIT_USER_PASSWORD@github.com/v7lin/pub_credentials.git $FLUTTER_HOME/pub_credentials
|
- git clone -b master https://$GIT_USER_NAME:$GIT_USER_PASSWORD@github.com/v7lin/pub_credentials.git $PUB_CACHE/pub_credentials
|
||||||
- rm $FLUTTER_HOME/pub_credentials/credentials.json.enc
|
- rm $PUB_CACHE/pub_credentials/credentials.json.enc
|
||||||
- mv $FLUTTER_HOME/credentials.json.enc $FLUTTER_HOME/pub_credentials/credentials.json.enc
|
- mv $PUB_CACHE/credentials.json.enc $PUB_CACHE/pub_credentials/credentials.json.enc
|
||||||
- cd $FLUTTER_HOME/pub_credentials
|
- cd $PUB_CACHE/pub_credentials
|
||||||
- git commit -am "update credentials by ci/cd tools"
|
- git commit -am "update credentials by ci/cd tools"
|
||||||
- git push
|
- git push
|
||||||
|
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
## 0.2.3 - 2019.8.1
|
||||||
|
|
||||||
|
* 升级Android SDK
|
||||||
|
|
||||||
## 0.2.2 - 2019.7.12
|
## 0.2.2 - 2019.7.12
|
||||||
|
|
||||||
* 简化
|
* 简化
|
||||||
|
@ -31,15 +31,18 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
|
|
||||||
|
// library 混淆 -> 随 library 引用,自动添加到 apk 打包混淆
|
||||||
|
consumerProguardFiles 'consumer-proguard-rules.txt'
|
||||||
|
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
lintOptions {
|
lintOptions {
|
||||||
disable 'InvalidPackage'
|
disable 'InvalidPackage'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation 'com.sina.weibo.sdk:core:4.4.2:openDefaultRelease@aar'
|
||||||
|
|
||||||
implementation 'io.github.v7lin:weibo-android:4.3.4'
|
|
||||||
}
|
}
|
||||||
|
1
android/consumer-proguard-rules.txt
Normal file
1
android/consumer-proguard-rules.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
# 微博
|
@ -1,3 +1,11 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="io.github.v7lin.fakeweibo">
|
package="io.github.v7lin.fakeweibo">
|
||||||
|
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
|
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
<!-- 用于调用 JNI -->
|
||||||
|
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||||
</manifest>
|
</manifest>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: fake_weibo
|
name: fake_weibo
|
||||||
description: A powerful weibo plugin for Flutter.
|
description: A powerful weibo plugin for Flutter.
|
||||||
version: 0.2.2
|
version: 0.2.3
|
||||||
author: v7lin <v7lin@qq.com>
|
author: v7lin <v7lin@qq.com>
|
||||||
homepage: https://github.com/v7lin/fake_weibo
|
homepage: https://github.com/v7lin/fake_weibo
|
||||||
|
|
||||||
@ -11,9 +11,9 @@ dependencies:
|
|||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
meta: '>=1.1.6 <2.0.0'
|
meta: ^1.1.6
|
||||||
|
|
||||||
jaguar_serializer: '>=2.2.12 <3.0.0'
|
jaguar_serializer: ^2.2.12
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
Loading…
Reference in New Issue
Block a user