Skip to content

Commit

Permalink
Merge pull request #2 from pavel163/fix_issue
Browse files Browse the repository at this point in the history
Fix issue
  • Loading branch information
pavel163 authored Jun 1, 2019
2 parents e0c12af + 0769fe5 commit f846bd1
Show file tree
Hide file tree
Showing 19 changed files with 102 additions and 252 deletions.
4 changes: 4 additions & 0 deletions .idea/encodings.xml

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

3 changes: 3 additions & 0 deletions .idea/gradle.xml

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

12 changes: 1 addition & 11 deletions .idea/misc.xml

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

3 changes: 3 additions & 0 deletions .idea/modules.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

24 changes: 10 additions & 14 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"

compileSdkVersion project.ext.targetSdkVersion
buildToolsVersion project.ext.buildToolsVersion

defaultConfig {
applicationId "com.ebr163.fillableview"
minSdkVersion 14
targetSdkVersion 25
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
Expand All @@ -20,13 +22,7 @@ android {
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

compile project(":view")
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.1'
testCompile 'junit:junit:4.12'
implementation project(":view")
implementation "androidx.appcompat:appcompat:$project.ext.androidX"
implementation "com.android.support.constraint:constraint-layout:$project.ext.constrainLayout"
}

This file was deleted.

5 changes: 3 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.ebr163.fillableview">

<application
Expand All @@ -8,15 +9,15 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".StartActivity"></activity>
</application>

</manifest>
13 changes: 7 additions & 6 deletions app/src/main/java/com/ebr163/fillableview/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,31 @@

import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.SeekBar;

import androidx.appcompat.app.AppCompatActivity;

import com.ebr163.view.FilledView;

import java.util.Random;

public class MainActivity extends AppCompatActivity {

private Random rnd = new Random();
private final Random rnd = new Random();
private FilledView filledViewLeft;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
filledViewLeft = (FilledView) findViewById(R.id.fillable_view_left);
filledViewLeft = findViewById(R.id.fillable_view_left);

Button changeColorButton = (Button) findViewById(R.id.changeColorBtn);
Button changeColorButton = findViewById(R.id.changeColorBtn);
changeColorButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Expand All @@ -34,7 +35,7 @@ public void onClick(View v) {
}
});

Button changeTextButton = (Button) findViewById(R.id.changeTextBtn);
Button changeTextButton = findViewById(R.id.changeTextBtn);
changeTextButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Expand All @@ -43,7 +44,7 @@ public void onClick(View v) {
}
});

SeekBar seekbar = (SeekBar) findViewById(R.id.seekBar);
SeekBar seekbar = findViewById(R.id.seekBar);
filledViewLeft.setProgress(seekbar.getProgress() / 100F);
seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
@Override
Expand Down
13 changes: 0 additions & 13 deletions app/src/main/java/com/ebr163/fillableview/StartActivity.java

This file was deleted.

35 changes: 0 additions & 35 deletions app/src/main/res/layout/activity_start.xml

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/test/java/com/ebr163/fillableview/ExampleUnitTest.java

This file was deleted.

18 changes: 12 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:3.4.1'
}
}

allprojects {
repositories {
google()
jcenter()
}

project.ext {
targetSdkVersion = 28
buildToolsVersion = "28.0.3"
androidX = "1.1.0-alpha05"
constrainLayout = "1.1.3"
minSdkVersion = 19
}
}

task clean(type: Delete) {
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ org.gradle.jvmargs=-Xmx1536m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
org.gradle.parallel=true
android.useAndroidX=true
android.enableJetifier=true
2 changes: 1 addition & 1 deletion 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-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
29 changes: 8 additions & 21 deletions view/build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"

defaultConfig {
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
compileSdkVersion project.ext.targetSdkVersion
buildToolsVersion project.ext.buildToolsVersion

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
defaultConfig {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
versionCode 2
versionName "1.1"
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.2.0'
testCompile 'junit:junit:4.12'
implementation "androidx.appcompat:appcompat:$project.ext.androidX"
}

This file was deleted.

Loading

0 comments on commit f846bd1

Please sign in to comment.