Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
java:
description: The Java version to use
required: false
default: 8.0.382-tem
default: 11.0.29-tem
gradle:
description: The Gradle version to use
required: false
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
interval: 'weekly'
10 changes: 10 additions & 0 deletions .github/workflows/sca_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: SCA

on:
push:
branches: ["master", "main"]

jobs:
snyk-cli:
uses: auth0/devsecops-tooling/.github/workflows/sca-scan.yml@main
secrets: inherit
40 changes: 0 additions & 40 deletions .github/workflows/snyk.yml

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:7.4.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
57 changes: 31 additions & 26 deletions lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,46 +1,51 @@
plugins {
id "com.auth0.gradle.oss-library.android" version "0.18.0"
// id "com.auth0.gradle.oss-library.android" version "0.18.0"
id 'com.android.library'
id 'kotlin-android'
}

logger.lifecycle("Using version ${version} for ${name}")

def signingKey = findProperty('signingKey')
def signingKeyPwd = findProperty('signingPassword')

oss {
name 'Lock.Android'
repository 'Lock.Android'
organization 'auth0'
description 'The easiest way of securing your Android mobile apps with Auth0 & Lock'
skipAssertSigningConfiguration true
//oss {
// name 'Lock.Android'
// repository 'Lock.Android'
// organization 'auth0'
// description 'The easiest way of securing your Android mobile apps with Auth0 & Lock'
// skipAssertSigningConfiguration true
//
// developers {
// auth0 {
// displayName = 'Auth0'
// email = 'oss@auth0.com'
// }
// lbalmaceda {
// displayName = 'Luciano Balmaceda'
// email = 'luciano.balmaceda@auth0.com'
// }
// }
//}

developers {
auth0 {
displayName = 'Auth0'
email = 'oss@auth0.com'
}
lbalmaceda {
displayName = 'Luciano Balmaceda'
email = 'luciano.balmaceda@auth0.com'
}
}
}

signing {
useInMemoryPgpKeys(signingKey, signingKeyPwd)
}
//signing {
// useInMemoryPgpKeys(signingKey, signingKeyPwd)
//}

android {
compileSdkVersion 31
compileSdkVersion 33

defaultConfig {
minSdkVersion 21
targetSdkVersion 31
targetSdkVersion 33
versionCode 1
versionName project.version
consumerProguardFiles '../proguard/proguard-gson.pro', '../proguard/proguard-otto.pro', '../proguard/proguard-lock-2.pro'
// Required since Android Gradle Plugin 4.1 - https://issuetracker.google.com/issues/154275579
buildConfigField "String", "VERSION_NAME", "\"$versionName\""
// Manifest placeholders required for Android test builds
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [auth0Domain: "test.auth0.com", auth0Scheme: "https"]
}

lintOptions {
Expand All @@ -60,8 +65,8 @@ android {
}

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

package com.auth0.android.lock.views;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import androidx.annotation.NonNull;
Expand Down Expand Up @@ -69,6 +70,7 @@ private void init(AttributeSet attrs) {
}

int[] set = {android.R.attr.text};
@SuppressLint("ResourceType")
TypedArray a = getContext().obtainStyledAttributes(attrs, set);
CharSequence text = a.getText(0);
a.recycle();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public Object submitForm() {
corporateSSO = true;
usernameInput.clearFocus();
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getWindowToken(), InputMethodManager.RESULT_UNCHANGED_SHOWN);
imm.hideSoftInputFromWindow(getWindowToken(), 0);
return null;
}

Expand Down
3 changes: 3 additions & 0 deletions lib/src/main/java/com/auth0/android/lock/views/ViewUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

package com.auth0.android.lock.views;

import android.annotation.SuppressLint;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.RectF;
Expand Down Expand Up @@ -85,6 +86,7 @@ static float dipToPixels(Resources resources, int dip) {
* @param corners the rounded corners this drawable will have. Can be one of ONLY_LEFT, ONLY_RIGHT, ALL
* @return the rounded drawable.
*/
@SuppressLint("WrongConstant")
static ShapeDrawable getRoundedBackground(@NonNull View view, @ColorInt int color, @Corners int corners) {
int r = view.getResources().getDimensionPixelSize(R.dimen.com_auth0_lock_widget_corner_radius);
float[] outerR = new float[0];
Expand All @@ -101,6 +103,7 @@ static ShapeDrawable getRoundedBackground(@NonNull View view, @ColorInt int colo
outerR = new float[]{0, 0, r, r, r, r, 0, 0};
break;
case ALL:
default:
outerR = new float[]{r, r, r, r, r, r, r, r};
break;
}
Expand Down
Loading