Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
clonalejandro committed Aug 18, 2018
1 parent 2c61bc6 commit 89720f7
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 26 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added app/.DS_Store
Binary file not shown.
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,"versionName":"1.0","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
Binary file added app/src/.DS_Store
Binary file not shown.
Binary file modified app/src/main/.DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 8,9 @@

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/logo"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@mipmap/logo"
android:supportsRtl="true"
android:theme="@style/Theme.AppCompat.NoActionBar"
tools:ignore="AllowBackup, GoogleAppIndexingWarning">
Expand Down
Binary file added app/src/main/java/.DS_Store
Binary file not shown.
Binary file added app/src/main/java/io/.DS_Store
Binary file not shown.
Binary file not shown.
4 changes: 3 additions & 1 deletion app/src/main/java/io/clonalejandro/avmoda/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 2,9 @@ package io.clonalejandro.avmoda

import android.support.v7.app.AppCompatActivity
import android.os.Bundle

import io.clonalejandro.avmoda.utils.WebVieu

import kotlinx.android.synthetic.main.activity_main.*

/**
Expand All @@ -29,7 31,7 @@ class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
WebVieu("https", "twitter.com", webview)
WebVieu("https://shop.spreadshirt.es/avmoda", webview)
}


Expand Down
9 changes: 2 additions & 7 deletions app/src/main/java/io/clonalejandro/avmoda/SplashScreen.kt
Original file line number Diff line number Diff line change
@@ -1,16 1,11 @@
package io.clonalejandro.avmoda

import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.drawable.AnimationDrawable
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import io.clonalejandro.avmoda.R.id.splash_layout
import io.clonalejandro.avmoda.animations.SplashAnimation
import android.support.v7.app.AppCompatActivity

import io.clonalejandro.avmoda.animations.SplashAnimation
import io.clonalejandro.avmoda.tasks.SplashTask
import org.jetbrains.annotations.NotNull

/**
* Created by alejandrorioscalera
Expand Down
18 changes: 2 additions & 16 deletions app/src/main/java/io/clonalejandro/avmoda/utils/WebVieu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 25,15 @@ import kotlin.properties.Delegates
* All rights reserved for clonalejandro ©AVModa 2017 / 2018
*/

class WebVieu(protocol: String, url: String, webView: WebView) {
class WebVieu(url: String, webView: WebView) {


/** SMALL CONSTRUCTORS **/

private var protocol: String by Delegates.notNull()
private var url: String by Delegates.notNull()
private var webView: WebView by Delegates.notNull()

init {
this.protocol = protocol
this.url = url
this.webView = webView

Expand All @@ -56,18 54,6 @@ class WebVieu(protocol: String, url: String, webView: WebView) {

/** OTHERS **/

/**
* This function build the url with the network protocol
* @throws UnsupportedOperationException
*/
@Throws (UnsupportedOperationException::class)
private fun buildUrl() : String {
val builder = Uri.Builder()
builder.scheme(protocol).authority(url)
return builder.build().toString()
}


/**
* This function build the WebView class with the configurations
*/
Expand Down Expand Up @@ -95,7 81,7 @@ class WebVieu(protocol: String, url: String, webView: WebView) {
private fun loadWeb(){
try {
buildWebView()
webView.loadUrl( buildUrl() )
webView.loadUrl( this.url )
}
catch (e : UnsupportedOperationException){ e.printStackTrace() }
}
Expand Down
Binary file modified app/src/main/res/.DS_Store
Binary file not shown.
Binary file modified app/src/main/res/drawable/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-hdpi/.DS_Store
Binary file not shown.
Binary file added app/src/main/res/mipmap-hdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-mdpi/.DS_Store
Binary file not shown.
Binary file added app/src/main/res/mipmap-mdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xhdpi/.DS_Store
Binary file not shown.
Binary file added app/src/main/res/mipmap-xhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxhdpi/.DS_Store
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxxhdpi/.DS_Store
Binary file not shown.
Binary file added app/src/main/res/mipmap-xxxhdpi/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 89720f7

Please sign in to comment.