Skip to content

Commit

Permalink
1.统一support版本号
Browse files Browse the repository at this point in the history
2.更新apk
  • Loading branch information
yuzhiqiang1993 committed Mar 6, 2018
1 parent 512392a commit 6560ca9
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
compileSdkVersion 27
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.yzq.zxing"
Expand All @@ -21,11 +21,10 @@ android {

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:support-vector-drawable:26.1.0'
implementation 'com.yanzhenjie:permission:1.1.0'
// implementation 'com.github.yuzhiqiang1993:zxing:2.1.2'
implementation "com.android.support:appcompat-v7:$support_version"
implementation "com.android.support:design:$support_version"
implementation "com.android.support:support-vector-drawable:$support_version"
implementation "com.yanzhenjie:permission:1.1.0"
implementation project(':zxinglibrary')


Expand Down
1 change: 1 addition & 0 deletions app/release/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1},"path":"app-release.apk","properties":{"packageId":"com.yzq.zxing","split":"","minSdkVersion":"16"}}]
Binary file added app/release/zxing.apk
Binary file not shown.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {



ext{
support_version='27.0.2'
}
repositories {
google()
jcenter()
Expand Down
13 changes: 7 additions & 6 deletions zxinglibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.yuzhiqiang1993'

android {
compileSdkVersion 26
compileSdkVersion 27
buildToolsVersion '27.0.3'


defaultConfig {
minSdkVersion 16
targetSdkVersion 26
targetSdkVersion 27
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
Expand All @@ -23,8 +23,9 @@ android {
dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
api files('libs/core-3.3.0.jar')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:design:26.1.0'
implementation 'com.android.support:support-v4:26.1.0'
implementation 'com.android.support:support-vector-drawable:26.1.0'
implementation "com.android.support:appcompat-v7:$support_version"
implementation "com.android.support:design:$support_version"
implementation "com.android.support:support-v4:$support_version"
implementation "com.android.support:support-vector-drawable:$support_version"

}
1 change: 0 additions & 1 deletion zxinglibrary/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

<application>
<activity

android:name=".android.CaptureActivity"
android:configChanges="orientation|screenSize"
android:screenOrientation="portrait"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.yzq.zxinglibrary.android;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.content.pm.FeatureInfo;
Expand All @@ -17,8 +16,6 @@
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;

Expand Down
8 changes: 2 additions & 6 deletions zxinglibrary/src/main/res/layout/activity_capture.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="com.yzq.zxinglibrary.android.CaptureActivity">
<!-- 整体透明画布 -->

Expand Down Expand Up @@ -95,12 +95,8 @@
android:id="@+id/albumIv"
android:layout_width="36dp"
android:layout_height="36dp"

android:tint="#ffffffff"
app:srcCompat="@drawable/ic_photo"


/>
app:srcCompat="@drawable/ic_photo" />

<TextView
android:layout_width="match_parent"
Expand Down

0 comments on commit 6560ca9

Please sign in to comment.