정훈용

added late cause of mistake

Showing 68 changed files with 1946 additions and 0 deletions
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
PRO-LOL-LOG
\ No newline at end of file
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<codeStyleSettings language="XML">
<indentOptions>
<option name="CONTINUATION_INDENT_SIZE" value="4" />
</indentOptions>
<arrangement>
<rules>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:android</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>xmlns:.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:id</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*:name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>name</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>style</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>^$</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE>
</AND>
</match>
<order>ANDROID_ATTRIBUTE_ORDER</order>
</rule>
</section>
<section>
<rule>
<match>
<AND>
<NAME>.*</NAME>
<XML_ATTRIBUTE />
<XML_NAMESPACE>.*</XML_NAMESPACE>
</AND>
</match>
<order>BY_NAME</order>
</rule>
</section>
</rules>
</arrangement>
</codeStyleSettings>
</code_scheme>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<compositeConfiguration>
<compositeBuild compositeDefinitionSource="SCRIPT" />
</compositeConfiguration>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="resolveModulePerSourceSet" value="false" />
<option name="testRunner" value="PLATFORM" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
apply plugin: 'com.android.application'
android {
packagingOptions {
exclude 'META-INF/proguard/androidx-annotations.pro'
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.pro_lol_log"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'com.google.code.gson:gson:2.8.5'
}
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
package com.example.pro_lol_log;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.pro_lol_log", appContext.getPackageName());
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.pro_lol_log">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".proanalysis"></activity>
<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=".Player_Pro_Analysis" />
</application>
</manifest>
\ No newline at end of file
package com.example.pro_lol_log;
import androidx.appcompat.app.AppCompatActivity;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.util.Log;
import android.view.ContextThemeWrapper;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import android.widget.Toast;
//애니메이션 적용 목적
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import com.google.gson.Gson;
public class MainActivity extends AppCompatActivity {
LinearLayout summoner_info, summoner_tier;
ImageView tiers;
TextView summoner_name, summoner_tier_tier, summoner_tier_rank, summoner_tier_point;
LinearLayout play_layout;
ImageView logo;
EditText summoner;
Button summonerCK;
//자신 플레이 정보 가져오기
static int mycount = 5;
FrameLayout [] fr = new FrameLayout[5];
ImageView [] champs = new ImageView[5];
ImageView [] match = new ImageView[5];
ImageView [] box = new ImageView[5]; // 이건 그냥 우측 장식 색
TextView [] time = new TextView[5];
TextView [] kda = new TextView[5];
TextView [] rate = new TextView[5];
//
//프로 플레이 정보 가져오기
static int procount = 2;
FrameLayout [] frP = new FrameLayout[2];
ImageView [] tierP = new ImageView[2];
ImageView [] procon = new ImageView[2];
ImageView [] examP = new ImageView[2];
TextView [] tierStr = new TextView[2];
TextView [] Proname = new TextView[2];
//일반 정보-------
PlayAnalysis mine;
//검색 대상 정보------
int imp_num = 0;
int summoner_selected = 0;
//이미지 만들기
public Bitmap[] champions_faceList;
//스프라이트 관리 0 시작(검색) / 1 자신 전적 / 2 프로 전적 / 3 채점표
int mode;
int width;
int height;
static int num_match = 5;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
summoner_info = (LinearLayout) findViewById(R.id.summoner_info);
summoner_tier = (LinearLayout) findViewById(R.id.summoner_tier);
play_layout = (LinearLayout) findViewById(R.id.linear1);
logo = (ImageView) findViewById(R.id.logo);
summoner = (EditText) findViewById(R.id.summoner);
summonerCK = (Button) findViewById(R.id.summoner_check);
// 일단 일반 5개의 프레임워크 정보---------------------------------
fr[0] = (FrameLayout) findViewById(R.id.fr1);
fr[1] = (FrameLayout) findViewById(R.id.fr2);
fr[2] = (FrameLayout) findViewById(R.id.fr3);
fr[3] = (FrameLayout) findViewById(R.id.fr4);
fr[4] = (FrameLayout) findViewById(R.id.fr5);
//fr[4].setBackgroundResource(R.color.color_trust1);
//스타일 받아오기!
// 챔피언 이미지
champs[0] = (ImageView) findViewById(R.id.tier1);
champs[1] = (ImageView) findViewById(R.id.tier2);
champs[2] = (ImageView) findViewById(R.id.tier3);
champs[3] = (ImageView) findViewById(R.id.tier4);
champs[4] = (ImageView) findViewById(R.id.tier5);
// 승리 패배 인장
match[0] = (ImageView)findViewById(R.id.match1);
match[1] = (ImageView)findViewById(R.id.match2);
match[2] = (ImageView)findViewById(R.id.match3);
match[3] = (ImageView)findViewById(R.id.match4);
match[4] = (ImageView)findViewById(R.id.match5);
// 옆 장식
box[0] = (ImageView)findViewById(R.id.exam1);
box[1] = (ImageView)findViewById(R.id.exam2);
box[2] = (ImageView)findViewById(R.id.exam3);
box[3] = (ImageView)findViewById(R.id.exam4);
box[4] = (ImageView)findViewById(R.id.exam5);
// kda
kda[0] = (TextView) findViewById(R.id.kda1);
kda[1] = (TextView) findViewById(R.id.kda2);
kda[2] = (TextView) findViewById(R.id.kda3);
kda[3] = (TextView) findViewById(R.id.kda4);
kda[4] = (TextView) findViewById(R.id.kda5);
// 승률
rate[0] = (TextView) findViewById(R.id.rate1);
rate[1] = (TextView) findViewById(R.id.rate2);
rate[2] = (TextView) findViewById(R.id.rate3);
rate[3] = (TextView) findViewById(R.id.rate4);
rate[4] = (TextView) findViewById(R.id.rate5);
// 시간 문제
time[0] = (TextView)findViewById(R.id.time1);
time[1] = (TextView)findViewById(R.id.time2);
time[2] = (TextView)findViewById(R.id.time3);
time[3] = (TextView)findViewById(R.id.time4);
time[4] = (TextView)findViewById(R.id.time5);
// 프로 2개 정보--------------------------------------------
//프레임워크
frP[0] = (FrameLayout)findViewById(R.id.frP1);
frP[1] = (FrameLayout)findViewById(R.id.frP2);
//티어 표기
tierP[0] = (ImageView)findViewById(R.id.tierP1);
tierP[1] = (ImageView)findViewById(R.id.tierP2);
//프로 인장
procon[0] = (ImageView)findViewById(R.id.pro1);
procon[1] = (ImageView)findViewById(R.id.pro2);
//신뢰도
examP[0] = (ImageView)findViewById(R.id.examP1);
examP[1] = (ImageView)findViewById(R.id.examP2);
//티어 설명
tierStr[0] = (TextView)findViewById(R.id.TierStrP1);
tierStr[1] = (TextView)findViewById(R.id.TierStrP2);
//이름 표기
Proname[0] = (TextView)findViewById(R.id.Proname1);
Proname[1] = (TextView)findViewById(R.id.Proname2);
//---------------------------------------------------------
// 챔피언 초상화 가져오기
Bitmap sp0 = BitmapFactory.decodeResource(getResources(),R.drawable.sp0);
Bitmap sp1 = BitmapFactory.decodeResource(getResources(),R.drawable.sp1_garen_shen);
Bitmap sp2 = BitmapFactory.decodeResource(getResources(),R.drawable.sp2_shivanna_kalista);
Bitmap sp3 = BitmapFactory.decodeResource(getResources(),R.drawable.sp3_kennen_hekhalim);
champions_faceList = new Bitmap[148];
//int width = sp1.getWidth();
//int height= sp1.getHeight();
width = sp0.getWidth();
height = sp0.getHeight();
for (int i = 0; i<6; i++){
for (int j = 0; j<10; j++) {
champions_faceList[i*10+j] = Bitmap.createBitmap(sp1,j*(width+7),i*(height+5),width,height);
}
}
for (int i = 0; i<6; i++){
for (int j = 0; j<10; j++) {
champions_faceList[(i+6)*10+j] = Bitmap.createBitmap(sp2,j*(100),i*(99),97,97);
}
}
for (int i = 0; i<2; i++){
for (int j = 0; j<10; j++) {
champions_faceList[(i+12)*10+j] = Bitmap.createBitmap(sp3,j*(100),i*(99),97,97);
}
}
for (int j = 0; j<7; j++){
champions_faceList[(14)*10+j] = Bitmap.createBitmap(sp3,j*(100),2*(99),97,97);
}
//fr[4].setBackgroundResource(R.color.color_trust3);
//시작 시 mode 0로 보여주기
mode0();
}
// UI관련 클릭
public void mOnClick(View v){
switch (v.getId())
{
case R.id.summoner_check :
if (mode == 0)
{
mode = 1;
mode1();
}
else{
mode = 0;
mode0();
}
break;
}
}
// 자기 전적 표기용 프레임워크
public void ClickMatch(View v){
switch (v.getId())
{
case R.id.check1 :
mode2(1);
mode = 2;
break;
case R.id.check2 :
mode2(2);
mode = 2;
break;
case R.id.check3 :
mode2(3);
mode = 2;
break;
case R.id.check4 :
mode2(4);
mode = 2;
break;
case R.id.check5 :
mode2(5);
mode = 2;
break;
case R.id.checkP1:
mode_graph();
mode = 3;
break;
case R.id.checkP2:
mode_graph();
mode = 3;
break;
}
}
public void mode0(){
//mode0 출력 정보
logo.setVisibility(View.VISIBLE);
summoner.setVisibility(View.VISIBLE);
//출력시 유저 정보
summoner_info.setVisibility(View.GONE);
summoner_tier.setVisibility(View.GONE);
play_layout.setVisibility(View.GONE);
mode_mymatch(-1);
mode_pro(-1);
}
public void mode1(){
//mode0 출력 정보
logo.setVisibility(View.GONE);
summoner.setVisibility(View.GONE);
//출력시 유저 정보
summoner_info.setVisibility(View.VISIBLE);
summoner_tier.setVisibility(View.VISIBLE);
play_layout.setVisibility(View.VISIBLE);
mode_mymatch(0);
mode_pro(-1);
}
public void mode2(int jj){
//mode0 출력 정보
logo.setVisibility(View.GONE);
summoner.setVisibility(View.GONE);
//출력시 유저 정보
summoner_info.setVisibility(View.VISIBLE);
summoner_tier.setVisibility(View.VISIBLE);
play_layout.setVisibility(View.VISIBLE);
mode_mymatch(jj);
mode_pro(0);
}
//그러나 지금은 쓰지 않는다...
public void mode_init(){
summoner.setVisibility(View.VISIBLE);
logo.setVisibility(View.VISIBLE);
summoner_info.setVisibility(View.GONE);
summoner_tier.setVisibility(View.GONE);
play_layout.setVisibility(View.GONE);
}
//자신의 전적만 표기하는 mode_My
//그러나 지금은 쓰지 않는다...
public void mode_my(){
summoner.setVisibility(View.GONE);
logo.setVisibility(View.GONE);
summonerCK.setText("새로운 소환사 입력");
Toast.makeText(MainActivity.this, "소환사 확인", Toast.LENGTH_SHORT).show();
summoner_info.setVisibility(View.VISIBLE);
summoner_tier.setVisibility(View.VISIBLE);
play_layout.setVisibility(View.VISIBLE);
//ImageButton btn[] = new ImageButton[5];
// 불편한 방법을 써야한다..
// 마진 생성을 위해
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT
);
params.topMargin = 5;
/*
for (int i = 0; i < btn.length; i++) {
btn[i] = new ImageButton(this);
btn[i].setMinimumHeight(200);
btn[i].setMinimumWidth(1050);
btn[i].setBackgroundColor(Color.argb(20,255,89,94));
//btn[i].setBotto
//btn[i].setImageResource(R.drawable.bronze);
/*
btn[i].setText("" + (i + 1));
btn[i].setHeight(200);
btn[i].setWidth(1050);
btn[i].setTextSize(11);
*/
/*
if (i> 5){
//btn[i].setAlpha(0.5f);
// btn[i].setBackgroundColor(Color.argb(20,255,89,94));
}
else{
//btn[i].setBackgroundColor(Color.argb(20,105,145,255));
}
btn[i].setId(i);
// 복잡한 방법의 마진 생성
btn[i].setLayoutParams(params);
if (i < 10) {
play_layout.addView(btn[i]);
}
}
*/
//챔피언 넣어보기
//Drawable drawable = new BitmapDrawable(champions_faceList[4]);
//새로운 이미지 넣기 방법
Bitmap bit_imp;
bit_imp = Bitmap.createScaledBitmap(champions_faceList[24], ((int) width)-80, ((int) height)-80, true);
BitmapDrawable dd = new BitmapDrawable(this.getResources(), bit_imp);
champs[0].setImageDrawable(dd);
bit_imp = Bitmap.createScaledBitmap(champions_faceList[25], ((int) width)-80, ((int) height)-80, true);
dd = new BitmapDrawable(this.getResources(), bit_imp);
champs[1].setImageDrawable(dd);
bit_imp = Bitmap.createScaledBitmap(champions_faceList[29], ((int) width)-80, ((int) height)-80, true);
dd = new BitmapDrawable(this.getResources(), bit_imp);
champs[2].setImageDrawable(dd);
bit_imp = Bitmap.createScaledBitmap(champions_faceList[35], ((int) width)-80, ((int) height)-80, true);
dd = new BitmapDrawable(this.getResources(), bit_imp);
champs[3].setImageDrawable(dd);
//Bitmap resizedBmp = Bitmap.createScaledBitmap(bitmap, (int) width, (int) height, true);
//리소스로 사용하기
//champs[4].setImageResource(R.drawable.master);
//champs[4].setImageDrawable(R.drawable.master);
//Drawable drawable = (Drawable)(new BitmapDrawable(champions_faceList[3]));
}
public void mode_mymatch(int i)
{
if (i == 0) {
for(int k = 0; k<mycount; k++)
{
fr[k].setVisibility(View.VISIBLE);
}
}
else if (i == -1){
for(int k = 0; k<mycount; k++)
{
fr[k].setVisibility(View.GONE);
}
}
else if (i>=1 && i<=mycount){
for(int k = 0; k<mycount; k++)
{
if(k != (i-1)) {
fr[k].setVisibility(View.GONE);
}
else if(k == (i-1)){
fr[k].setVisibility(View.VISIBLE);
}
}
}
}
public void mode_pro(int i)
{
if (i == 0) {
for(int k = 0; k<procount; k++)
{
frP[k].setVisibility(View.VISIBLE);
}
}
else if (i == -1){
for(int k = 0; k<procount; k++)
{
frP[k].setVisibility(View.GONE);
}
}
else if (i>=1 && i<=procount){
for(int k = 0; k<procount; k++)
{
if(k != (i-1)) {
frP[k].setVisibility(View.GONE);
}
else if(k == (i-1)){
frP[k].setVisibility(View.VISIBLE);
}
}
}
}
public void mode_graph()
{
Intent intent = new Intent(getApplicationContext(),proanalysis.class);
//이런식으로 인텐트에 정보 넣으면 된다.
//intent.putExtra("번호", 12345);
startActivityForResult(intent, 0);
}
//뒤로가기 버튼 사용법
@Override
public void onBackPressed(){
if (mode == 2)
{
mode = 1;
mode1();
}
else if (mode == 1)
{
mode = 0;
mode0();
}
// 이건 나중에...
if (mode == 6)
{
super.onBackPressed();
}
}
@Override
protected void onActivityResult(int req, int res, Intent data)
{
super.onActivityResult(req,res,data);
switch(res)
{
case 1:
mode = 1;
mode1();
}
}
//본격적인 분석
public void APIuses(){
Gson gson = new Gson();
//아래와 같은 식으로 사용한다.
// gson.fromJson()
}
}
package com.example.pro_lol_log;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
public class OpenAPI {
/*
public void API_read(){
BufferedReader br = null;
try {
String urlstr = "https://kr.api.riotgames.com/lol/"+"summoner/v4/summoners/by-name/"
+ "?api_key=RGAPI-51a0a882-6247-460b-bd0a-654b51e751f8";
URL url = new URL(urlstr);
HttpsURLConnection urlconnection = (HttpsURLConnection) url.openConnection();
}catch(Exception e){
}
}
*/
}
package com.example.pro_lol_log;
public class PlayAnalysis {
String summoner;
int tire;
// 0 없음 1 언랭 2 아이언 3 브론즈 4 실버 5 골드 6 플래티넘 7다이아몬드 8마스터 9그랜드마스터 10챌린저
int rank;
// 1~4
int win;
int loss;
String acct_ID;
//String enc_ID;
// 매치 스탬프 검사
long matches[] = new long[20];
public void init(String name, int tire,int rank)
{
}
public void read_match(int count, long match)
{
matches[count]=match;
}
}
package com.example.pro_lol_log;
public class Player_Pro_Analysis {
}
package com.example.pro_lol_log;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
public class proanalysis extends AppCompatActivity {
String imp;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_proanalysis);
//외부 인텐트에서 값 받아오기와 받는 예시
Intent getter = getIntent();
//imp = getter.getStringExtra("임시");
//int float는 디폴트값도 넣어줘야 한다.
}
@Override
public void onBackPressed() {
//종료되었음을 돌려주는 역할
setResult(1);
finish();
}
}
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillType="evenOdd"
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
android:strokeWidth="1"
android:strokeColor="#00000000">
<aapt:attr name="android:fillColor">
<gradient
android:endX="78.5885"
android:endY="90.9159"
android:startX="48.7653"
android:startY="61.0927"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#008577"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrolls"
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">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/logo"
android:layout_width="200dp"
android:layout_height="200dp"
android:visibility="visible"
android:src="@drawable/logo"
android:layout_gravity="center"
/>
<EditText
android:id="@+id/summoner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="소환사 이름을 입력해주세요!"
android:visibility="visible"
android:layout_gravity="center"
/>
<Button
android:id="@+id/summoner_check"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:text="소환사명 입력"
android:visibility="visible"
android:onClick="mOnClick"
android:layout_gravity="center"
/>
<LinearLayout
android:id="@+id/summoner_info"
android:layout_width="match_parent"
android:layout_height="84dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="10dp"
android:orientation="horizontal"
android:visibility="gone">
<ImageView
android:id="@+id/tiers"
android:layout_marginLeft="50dp"
android:layout_marginRight="20dp"
android:layout_width="70dp"
android:layout_height="84dp"
android:src="@drawable/gold"
android:visibility="visible"
/>
<TextView
android:id="@+id/summoner_name"
android:layout_width="wrap_content"
android:layout_height="84dp"
android:text="롤첨혜요"
android:textSize="50dp"
android:visibility="visible"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/summoner_tier"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="50dp"
android:orientation="horizontal"
android:visibility="gone">
<TextView
android:id="@+id/summoner_tier_tier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="50dp"
android:text="골드"
android:textSize="40dp"
android:visibility="visible"/>
<TextView
android:id="@+id/summoner_tier_rank"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="ll"
android:textSize="40dp"
android:visibility="visible"/>
<TextView
android:id="@+id/summoner_tier_point"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="20dp"
android:text="100 포인트"
android:textSize="40dp"
android:visibility="visible"/>
</LinearLayout>
<LinearLayout
android:id="@+id/linear1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="visible"
android:orientation="vertical">
</LinearLayout>
<LinearLayout
android:id="@+id/linear2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="gone"
android:orientation="vertical">
</LinearLayout>
<FrameLayout
android:id="@+id/fr1"
style="@style/base_frm">
<Button
android:id="@+id/check1"
style="@style/base_btn" />
<ImageView
android:id="@+id/tier1"
style="@style/mine_set_img_champ_before"
app:srcCompat="@mipmap/ic_launcher_round" />
<ImageView
android:id="@+id/match1"
style="@style/mine_set_img_match_before"
app:srcCompat="@mipmap/ic_launcher_round"/>
<ImageView
android:id="@+id/exam1"
style="@style/mine_set_img_exam_before" />
<TextView
android:id="@+id/kda1"
style="@style/mine_set_txt_kda_before" />
<TextView
android:id="@+id/rate1"
style="@style/mine_set_txt_rate_before" />
<TextView
android:id="@+id/time1"
style="@style/mine_set_txt_time_before"/>
</FrameLayout>
<FrameLayout
android:id="@+id/fr2"
style="@style/base_frm">
<Button
android:id="@+id/check2"
style="@style/base_btn" />
<ImageView
android:id="@+id/tier2"
style="@style/mine_set_img_champ_before"
app:srcCompat="@mipmap/ic_launcher_round" />
<ImageView
android:id="@+id/match2"
style="@style/mine_set_img_match_before"
app:srcCompat="@mipmap/ic_launcher_round"/>
<ImageView
android:id="@+id/exam2"
style="@style/mine_set_img_exam_before" />
<TextView
android:id="@+id/kda2"
style="@style/mine_set_txt_kda_before" />
<TextView
android:id="@+id/rate2"
style="@style/mine_set_txt_rate_before" />
<TextView
android:id="@+id/time2"
style="@style/mine_set_txt_time_before"/>
</FrameLayout>
<FrameLayout
android:id="@+id/fr3"
style="@style/base_frm">
<Button
android:id="@+id/check3"
style="@style/base_btn" />
<ImageView
android:id="@+id/tier3"
style="@style/mine_set_img_champ_before"
app:srcCompat="@mipmap/ic_launcher_round" />
<ImageView
android:id="@+id/match3"
style="@style/mine_set_img_match_before"
app:srcCompat="@mipmap/ic_launcher_round"/>
<ImageView
android:id="@+id/exam3"
style="@style/mine_set_img_exam_before" />
<TextView
android:id="@+id/kda3"
style="@style/mine_set_txt_kda_before" />
<TextView
android:id="@+id/rate3"
style="@style/mine_set_txt_rate_before" />
<TextView
android:id="@+id/time3"
style="@style/mine_set_txt_time_before"/>
</FrameLayout>
<FrameLayout
android:id="@+id/fr4"
style="@style/base_frm">
<Button
android:id="@+id/check4"
style="@style/base_btn" />
<ImageView
android:id="@+id/tier4"
style="@style/mine_set_img_champ_before"
app:srcCompat="@mipmap/ic_launcher_round" />
<ImageView
android:id="@+id/match4"
style="@style/mine_set_img_match_before"
app:srcCompat="@mipmap/ic_launcher_round"/>
<ImageView
android:id="@+id/exam4"
style="@style/mine_set_img_exam_before" />
<TextView
android:id="@+id/kda4"
style="@style/mine_set_txt_kda_before" />
<TextView
android:id="@+id/rate4"
style="@style/mine_set_txt_rate_before" />
<TextView
android:id="@+id/time4"
style="@style/mine_set_txt_time_before"/>
</FrameLayout>
<FrameLayout
android:id="@+id/fr5"
style="@style/base_frm">
<Button
android:id="@+id/check5"
style="@style/base_btn" />
<ImageView
android:id="@+id/tier5"
style="@style/mine_set_img_champ_before"
app:srcCompat="@mipmap/ic_launcher_round" />
<ImageView
android:id="@+id/match5"
style="@style/mine_set_img_match_before"
app:srcCompat="@mipmap/ic_launcher_round"/>
<ImageView
android:id="@+id/exam5"
style="@style/mine_set_img_exam_before" />
<TextView
android:id="@+id/kda5"
style="@style/mine_set_txt_kda_before" />
<TextView
android:id="@+id/rate5"
style="@style/mine_set_txt_rate_before" />
<TextView
android:id="@+id/time5"
style="@style/mine_set_txt_time_before"/>
</FrameLayout>
<FrameLayout
android:id="@+id/frP1"
style="@style/base_frm">
<Button
android:id="@+id/checkP1"
style="@style/base_btn" />
<ImageView
android:id="@+id/tierP1"
style="@style/pro_set_img_tier"
app:srcCompat="@mipmap/ic_launcher_round" />
<ImageView
android:id="@+id/pro1"
style="@style/pro_set_img_procon" />
<ImageView
android:id="@+id/examP1"
style="@style/pro_set_img_exam" />
<TextView
android:id="@+id/TierStrP1"
style="@style/pro_set_txt_tier"
/>
<TextView
android:id="@+id/Proname1"
style="@style/pro_set_txt_proname"
/>
</FrameLayout>
<FrameLayout
android:id="@+id/frP2"
style="@style/base_frm">
<Button
android:id="@+id/checkP2"
style="@style/base_btn" />
<ImageView
android:id="@+id/tierP2"
style="@style/pro_set_img_tier"
app:srcCompat="@mipmap/ic_launcher_round" />
<ImageView
android:id="@+id/pro2"
style="@style/pro_set_img_procon" />
<ImageView
android:id="@+id/examP2"
style="@style/pro_set_img_exam" />
<TextView
android:id="@+id/TierStrP2"
style="@style/pro_set_txt_tier"
/>
<TextView
android:id="@+id/Proname2"
style="@style/pro_set_txt_proname"
/>
</FrameLayout>
</LinearLayout>
</ScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<ScrollView 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"
tools:context=".proanalysis">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:srcCompat="@drawable/examination" />
</LinearLayout>
</ScrollView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
<color name="color_trust1">#d2d2d2</color>
<color name="color_trust2">#FADCA5</color>
<color name="color_trust3">#CBFF75</color>
<color name="color_trust4">#A5E3E6</color>
<color name="color_trust5">#A5E3E6</color>
<color name="color_def">#a0a0a0</color>
<color name="color_def2">#8c8c8c</color>
<color name="color_win">#5AD2FF</color>
<color name="color_win2">#28A0FF</color>
<color name="color_lose">#FFD2D2</color>
<color name="color_lose2">#FF848F</color>
<color name="transparent">#00000000</color>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="base_frm">
<item name = "android:layout_width">match_parent</item>
<item name = "android:layout_height">match_parent</item>
<item name = "android:layout_marginTop">5dp</item>
<item name = "android:background">@color/color_def</item>
<item name = "android:visibility">visible</item>
</style>
<style name="base_btn">
<item name = "android:layout_width">match_parent</item>
<item name = "android:layout_height">65dp</item>
<item name = "android:layout_gravity">center</item>
<item name = "android:background">#00ff0000</item>
<item name = "android:onClick">ClickMatch</item>
</style>
<style name="mine_set_img_champ_before">
<item name = "android:layout_width">83dp</item>
<item name = "android:layout_height">wrap_content</item>
<item name = "android:layout_gravity">center|left</item>
</style>
<style name="mine_set_img_match_before">
<item name = "android:layout_width">225dp</item>
<item name = "android:layout_height">35dp</item>
<item name = "android:layout_gravity">center|top|left</item>
<item name = "android:src">@drawable/lose</item>
</style>
<style name="mine_set_img_exam_before">
<item name = "android:layout_width">82dp</item>
<item name = "android:layout_height">70dp</item>
<item name = "android:layout_gravity">center|right</item>
<item name = "android:background">@color/color_def2</item>
</style>
<style name="mine_set_txt_kda_before">
<item name = "android:layout_width">217dp</item>
<item name = "android:layout_height">wrap_content</item>
<item name = "android:layout_gravity">bottom|center</item>
<item name = "android:text"> 0 / 0 / 0</item>
<item name = "android:textSize">28sp</item>
</style>
<style name="mine_set_txt_rate_before">
<item name = "android:layout_width">173dp</item>
<item name = "android:layout_height">29dp</item>
<item name = "android:layout_gravity">bottom|right</item>
<item name = "android:text">킬관여 99%</item>
<item name = "android:textSize">14sp</item>
</style>
<style name="mine_set_txt_time_before">
<item name = "android:layout_width">274dp</item>
<item name = "android:layout_height">wrap_content</item>
<item name = "android:layout_gravity">center|right|top</item>
<item name = "android:text">게임시간 99:90</item>
<item name = "android:textSize">20sp</item>
</style>
<style name="pro_set_img_tier">
<item name = "android:layout_width">83dp</item>
<item name = "android:layout_height">70dp</item>
<item name = "android:layout_gravity">center|left</item>
<item name = "android:background">@drawable/iron</item>
</style>
<style name="pro_set_img_procon">
<item name = "android:layout_width">144dp</item>
<item name = "android:layout_height">35dp</item>
<item name = "android:layout_marginTop">5dp</item>
<item name = "android:background">@color/transparent</item>
</style>
<style name="pro_set_img_exam">
<item name = "android:layout_width">65dp</item>
<item name = "android:layout_height">65dp</item>
<item name = "android:layout_gravity">center|right</item>
<item name = "android:background">@drawable/trust1</item>
<item name = "android:layout_marginRight">20dp</item>
</style>
<style name="pro_set_txt_tier">
<item name = "android:layout_width">217dp</item>
<item name = "android:layout_height">wrap_content</item>
<item name = "android:layout_gravity">bottom|center</item>
<item name = "android:text">아이언 l 0포인트</item>
<item name = "android:textSize">20sp</item>
</style>
<style name="pro_set_txt_proname">
<item name = "android:layout_width">234dp</item>
<item name = "android:layout_height">wrap_content</item>
<item name = "android:layout_gravity">center|top</item>
<item name = "android:text">김깡통</item>
<item name = "android:textSize">30sp</item>
</style>
</resources>
\ No newline at end of file
<resources>
<string name="app_name">PRO-LOL-LOG</string>
</resources>
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
package com.example.pro_lol_log;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}
\ No newline at end of file
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
//implementation 'com.google.code.gson:gson:2.8.5'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
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
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
No preview for this file type
#Sun Dec 01 23:09:52 KST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
#!/usr/bin/env sh
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi
exec "$JAVACMD" "$@"
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
include ':app'
rootProject.name='PRO-LOL-LOG'