From 0586753c51006e0a36bb1e2147c1b51ad1709970 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Thu, 19 Jul 2018 18:25:39 -0400 Subject: [PATCH 01/20] Fix crash app when Android Version 8+ about new Content Provider --- src/com/activeandroid/Model.java | 32 ++- .../content/ContentProvider.java | 16 +- src/com/activeandroid/query/From.java | 258 +++++++++--------- 3 files changed, 156 insertions(+), 150 deletions(-) diff --git a/src/com/activeandroid/Model.java b/src/com/activeandroid/Model.java index 421426ea3..04d7d3dba 100644 --- a/src/com/activeandroid/Model.java +++ b/src/com/activeandroid/Model.java @@ -64,11 +64,15 @@ public final Long getId() { } public final void delete() { - Cache.openDatabase().delete(mTableInfo.getTableName(), idName+"=?", new String[] { getId().toString() }); - Cache.removeEntity(this); - - Cache.getContext().getContentResolver() - .notifyChange(ContentProvider.createUri(mTableInfo.getType(), mId), null); + try { + Cache.openDatabase().delete(mTableInfo.getTableName(), idName + "=?", new String[]{getId().toString()}); + Cache.removeEntity(this); + + Cache.getContext().getContentResolver() + .notifyChange(ContentProvider.createUri(mTableInfo.getType(), mId), null); + } catch (Throwable t){ + t.printStackTrace() + } } public final Long save() { @@ -151,15 +155,17 @@ else if (ReflectionUtils.isSubclassOf(fieldType, Enum.class)) { } } - if (mId == null) { - mId = db.insert(mTableInfo.getTableName(), null, values); - } - else { - db.update(mTableInfo.getTableName(), values, idName+"=" + mId, null); + try { + if (mId == null) { + mId = db.insert(mTableInfo.getTableName(), null, values); + } else { + db.update(mTableInfo.getTableName(), values, idName + "=" + mId, null); + } + Cache.getContext().getContentResolver() + .notifyChange(ContentProvider.createUri(mTableInfo.getType(), mId), null); + } catch (Throwable t){ + t.printStackTrace() } - - Cache.getContext().getContentResolver() - .notifyChange(ContentProvider.createUri(mTableInfo.getType(), mId), null); return mId; } diff --git a/src/com/activeandroid/content/ContentProvider.java b/src/com/activeandroid/content/ContentProvider.java index b4a841d64..279fa0524 100644 --- a/src/com/activeandroid/content/ContentProvider.java +++ b/src/com/activeandroid/content/ContentProvider.java @@ -147,18 +147,14 @@ public Cursor query(Uri uri, String[] projection, String selection, String[] sel ////////////////////////////////////////////////////////////////////////////////////// public static Uri createUri(Class type, Long id) { - final StringBuilder uri = new StringBuilder(); - uri.append("content://"); - uri.append(sAuthority); - uri.append("/"); - uri.append(Cache.getTableName(type).toLowerCase()); - + Uri.Builder uriBuilder = new Uri.Builder(); + uriBuilder.authority(sAuthority); + uriBuilder.scheme("content"); + uriBuilder.appendPath(Cache.getTableName(type).toLowerCase()); if (id != null) { - uri.append("/"); - uri.append(id.toString()); + uriBuilder.appendPath(id.toString()); } - - return Uri.parse(uri.toString()); + return uriBuilder.build(); } ////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/com/activeandroid/query/From.java b/src/com/activeandroid/query/From.java index ab3837a90..4ddf7b87d 100644 --- a/src/com/activeandroid/query/From.java +++ b/src/com/activeandroid/query/From.java @@ -29,63 +29,63 @@ import java.util.List; public final class From implements Sqlable { - private Sqlable mQueryBase; - - private Class mType; - private String mAlias; - private List mJoins; - private final StringBuilder mWhere = new StringBuilder(); - private String mGroupBy; - private String mHaving; - private String mOrderBy; - private String mLimit; - private String mOffset; - - private List mArguments; - - public From(Class table, Sqlable queryBase) { - mType = table; - mJoins = new ArrayList(); - mQueryBase = queryBase; - - mJoins = new ArrayList(); - mArguments = new ArrayList(); - } - - public From as(String alias) { - mAlias = alias; - return this; - } - - public Join join(Class table) { - Join join = new Join(this, table, null); - mJoins.add(join); - return join; - } - - public Join leftJoin(Class table) { - Join join = new Join(this, table, JoinType.LEFT); - mJoins.add(join); - return join; - } - - public Join outerJoin(Class table) { - Join join = new Join(this, table, JoinType.OUTER); - mJoins.add(join); - return join; - } - - public Join innerJoin(Class table) { - Join join = new Join(this, table, JoinType.INNER); - mJoins.add(join); - return join; - } - - public Join crossJoin(Class table) { - Join join = new Join(this, table, JoinType.CROSS); - mJoins.add(join); - return join; - } + private Sqlable mQueryBase; + + private Class mType; + private String mAlias; + private List mJoins; + private final StringBuilder mWhere = new StringBuilder(); + private String mGroupBy; + private String mHaving; + private String mOrderBy; + private String mLimit; + private String mOffset; + + private List mArguments; + + public From(Class table, Sqlable queryBase) { + mType = table; + mJoins = new ArrayList(); + mQueryBase = queryBase; + + mJoins = new ArrayList(); + mArguments = new ArrayList(); + } + + public From as(String alias) { + mAlias = alias; + return this; + } + + public Join join(Class table) { + Join join = new Join(this, table, null); + mJoins.add(join); + return join; + } + + public Join leftJoin(Class table) { + Join join = new Join(this, table, JoinType.LEFT); + mJoins.add(join); + return join; + } + + public Join outerJoin(Class table) { + Join join = new Join(this, table, JoinType.OUTER); + mJoins.add(join); + return join; + } + + public Join innerJoin(Class table) { + Join join = new Join(this, table, JoinType.INNER); + mJoins.add(join); + return join; + } + + public Join crossJoin(Class table) { + Join join = new Join(this, table, JoinType.CROSS); + mJoins.add(join); + return join; + } public From where(String clause) { // Chain conditions if a previous condition exists. @@ -121,48 +121,48 @@ public From or(String clause, Object... args) { or(clause).addArguments(args); return this; } - - public From groupBy(String groupBy) { - mGroupBy = groupBy; - return this; - } - - public From having(String having) { - mHaving = having; - return this; - } - - public From orderBy(String orderBy) { - mOrderBy = orderBy; - return this; - } - - public From limit(int limit) { - return limit(String.valueOf(limit)); - } - - public From limit(String limit) { - mLimit = limit; - return this; - } - - public From offset(int offset) { - return offset(String.valueOf(offset)); - } - - public From offset(String offset) { - mOffset = offset; - return this; - } - - void addArguments(Object[] args) { - for(Object arg : args) { + + public From groupBy(String groupBy) { + mGroupBy = groupBy; + return this; + } + + public From having(String having) { + mHaving = having; + return this; + } + + public From orderBy(String orderBy) { + mOrderBy = orderBy; + return this; + } + + public From limit(int limit) { + return limit(String.valueOf(limit)); + } + + public From limit(String limit) { + mLimit = limit; + return this; + } + + public From offset(int offset) { + return offset(String.valueOf(offset)); + } + + public From offset(String offset) { + mOffset = offset; + return this; + } + + void addArguments(Object[] args) { + for (Object arg : args) { if (arg.getClass() == boolean.class || arg.getClass() == Boolean.class) { arg = (arg.equals(true) ? 1 : 0); } mArguments.add(arg); } - } + } private void addFrom(final StringBuilder sql) { sql.append("FROM "); @@ -293,33 +293,37 @@ public String toCountSql() { return sqlString(sql); } - public List execute() { - if (mQueryBase instanceof Select) { - return SQLiteUtils.rawQuery(mType, toSql(), getArguments()); - - } else { - SQLiteUtils.execSql(toSql(), getArguments()); - Cache.getContext().getContentResolver().notifyChange(ContentProvider.createUri(mType, null), null); - return null; - - } - } - - public T executeSingle() { - if (mQueryBase instanceof Select) { - limit(1); - return (T) SQLiteUtils.rawQuerySingle(mType, toSql(), getArguments()); - - } else { - limit(1); - SQLiteUtils.rawQuerySingle(mType, toSql(), getArguments()).delete(); - return null; - - } - } - + public List execute() { + if (mQueryBase instanceof Select) { + return SQLiteUtils.rawQuery(mType, toSql(), getArguments()); + } else { + SQLiteUtils.execSql(toSql(), getArguments()); + try { + Cache.getContext().getContentResolver().notifyChange(ContentProvider.createUri(mType, null), null); + } catch (Throwable t) { + t.printStackTrace() + } + return null; + + } + } + + public T executeSingle() { + if (mQueryBase instanceof Select) { + limit(1); + return (T) SQLiteUtils.rawQuerySingle(mType, toSql(), getArguments()); + + } else { + limit(1); + SQLiteUtils.rawQuerySingle(mType, toSql(), getArguments()).delete(); + return null; + + } + } + /** * Gets a value indicating whether the query returns any rows. + * * @return true if the query returns at least one row; otherwise, false. */ public boolean exists() { @@ -333,14 +337,14 @@ public int count() { return SQLiteUtils.intQuery(toCountSql(), getArguments()); } - public String[] getArguments() { - final int size = mArguments.size(); - final String[] args = new String[size]; + public String[] getArguments() { + final int size = mArguments.size(); + final String[] args = new String[size]; - for (int i = 0; i < size; i++) { - args[i] = mArguments.get(i).toString(); - } + for (int i = 0; i < size; i++) { + args[i] = mArguments.get(i).toString(); + } - return args; - } + return args; + } } From 4518f6ceb25889afa9149cd525e02845d5014f47 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 11:22:43 -0400 Subject: [PATCH 02/20] Changed pom --- gradle.properties | 16 ++++++++-------- pom-child.xml | 10 +++++----- pom.xml | 2 +- tests/pom.xml | 8 ++++---- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/gradle.properties b/gradle.properties index 424d885af..1331e836d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,17 +1,17 @@ -VERSION_NAME=3.1.0-SNAPSHOT +VERSION_NAME=3.1.2 VERSION_CODE=1 -GROUP=com.michaelpardo +GROUP=com.github.matheusbristot POM_DESCRIPTION=Active record style SQLite persistence for Android. -POM_URL=https://github.com/pardom/ActiveAndroid -POM_SCM_URL=https://github.com/pardom/ActiveAndroid -POM_SCM_CONNECTION=scm:git@github.com:pardom/ActiveAndroid.git -POM_SCM_DEV_CONNECTION=scm:git@github.com:pardom/ActiveAndroid.git +POM_URL=https://github.com/matheusbristot/ActiveAndroid +POM_SCM_URL=https://github.com/matheusbristot/ActiveAndroid +POM_SCM_CONNECTION=scm:git@github.com:matheusbristot/ActiveAndroid.git +POM_SCM_DEV_CONNECTION=scm:git@github.com:matheusbristot/ActiveAndroid.git POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt POM_LICENCE_DIST=repo -POM_DEVELOPER_ID=michaelpardo -POM_DEVELOPER_NAME=Michael Pardo +POM_DEVELOPER_ID=matheusbristot +POM_DEVELOPER_NAME=Matheus Bristot POM_NAME=ActiveAndroid POM_ARTIFACT_ID=activeandroid diff --git a/pom-child.xml b/pom-child.xml index 4f0c72df4..cc9ac9f19 100644 --- a/pom-child.xml +++ b/pom-child.xml @@ -7,7 +7,7 @@ 4.0.0 com.activeandroid activeandroid - 3.1-SNAPSHOT + 3.1.2-SNAPSHOT jar ActiveAndroid @@ -22,14 +22,14 @@ com.activeandroid activeandroid-parent - 3.1-SNAPSHOT + 3.1.2-SNAPSHOT ./pom.xml - scm:git:git@github.com:pardom/ActiveAndroid.git - scm:git:git@github.com:pardom/ActiveAndroid.git - git@github.com:pardom/ActiveAndroid.git + scm:git@github.com:matheusbristot/ActiveAndroid.git + scm:git@github.com:matheusbristot/ActiveAndroid.git + git@github.com:matheusbristot/ActiveAndroid.git diff --git a/pom.xml b/pom.xml index eafb111c5..b627fcd02 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.activeandroid activeandroid-parent - 3.1-SNAPSHOT + 3.1.2-SNAPSHOT pom ActiveAndroid - Parent diff --git a/tests/pom.xml b/tests/pom.xml index 6db50e11a..50820a8c1 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -9,17 +9,17 @@ com.activeandroid activeandroid-parent - 3.1-SNAPSHOT + 3.1.2-SNAPSHOT com.activeandroid activeandroid-tests - 3.1-SNAPSHOT + 3.1.2-SNAPSHOT apk ActiveAndroid - Tests - 1.6 + 1.8 16 4.1.1.4 r7 @@ -36,7 +36,7 @@ com.activeandroid activeandroid jar - 3.1-SNAPSHOT + 3.1.2-SNAPSHOT junit From 92c7d3fd7f56b0c6e6c10782e7a22437c8bfcdc0 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 11:43:12 -0400 Subject: [PATCH 03/20] Fix to publish gradle import fork --- build.gradle | 48 ++++++++++++++++++++------ build.xml | 32 ------------------ pom-child.xml | 93 --------------------------------------------------- pom.xml | 38 --------------------- 4 files changed, 38 insertions(+), 173 deletions(-) delete mode 100644 build.xml delete mode 100644 pom-child.xml delete mode 100644 pom.xml diff --git a/build.gradle b/build.gradle index 5594e43b5..6472459e8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,17 +1,45 @@ apply plugin: 'java' -apply from: 'gradle-mvn-push.gradle' +apply plugin: 'maven' -targetCompatibility = '1.6' -sourceCompatibility = '1.6' +group = 'com.github.matheusbristot' -sourceSets { - main { - java { - srcDir 'src' - } - } +sourceCompatibility = 1.8 // java 8 +targetCompatibility = 1.8 + +repositories { + mavenCentral() } dependencies { - compile fileTree(dir: 'libs', include: '*.jar') + compile 'com.google.guava:guava:18.0' +} + +task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource +} + +task javadocJar(type: Jar, dependsOn: javadoc) { + classifier = 'javadoc' + from javadoc.destinationDir +} + +artifacts { + archives sourcesJar + archives javadocJar +} + +// To specify a license in the pom: +install { + repositories.mavenInstaller { + pom.project { + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + } + } } diff --git a/build.xml b/build.xml deleted file mode 100644 index b2b7bfa6a..000000000 --- a/build.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pom-child.xml b/pom-child.xml deleted file mode 100644 index cc9ac9f19..000000000 --- a/pom-child.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - 4.0.0 - com.activeandroid - activeandroid - 3.1.2-SNAPSHOT - jar - ActiveAndroid - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - com.activeandroid - activeandroid-parent - 3.1.2-SNAPSHOT - ./pom.xml - - - - scm:git@github.com:matheusbristot/ActiveAndroid.git - scm:git@github.com:matheusbristot/ActiveAndroid.git - git@github.com:matheusbristot/ActiveAndroid.git - - - - 1.6 - 16 - 4.1.1.4 - r7 - - - - - com.google.android - android - ${platform.version} - provided - - - com.google.android - android-test - ${platform.version} - provided - - - com.google.android - support-v4 - ${platform.support-version} - - - - - src - - - org.apache.maven.plugins - maven-surefire-plugin - 2.14.1 - - - maven-compiler-plugin - 3.1 - - ${java.version} - ${java.version} - - - - com.jayway.maven.plugins.android.generation2 - android-maven-plugin - 3.8.2 - - - ${env.ANDROID_HOME} - ${platform.sdk} - - - true - - - - - diff --git a/pom.xml b/pom.xml deleted file mode 100644 index b627fcd02..000000000 --- a/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - 4.0.0 - com.activeandroid - activeandroid-parent - 3.1.2-SNAPSHOT - pom - ActiveAndroid - Parent - - - pom-child.xml - tests - - - - 1.6 - 16 - 4.1.1.4 - r7 - - - - - - - com.jayway.maven.plugins.android.generation2 - android-maven-plugin - 3.8.2 - - - maven-compiler-plugin - 3.1 - - - - - From 107a5440311d654cb1c81bfab5e082cac6cb0249 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 11:53:38 -0400 Subject: [PATCH 04/20] Changed --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 6472459e8..ba3f49d72 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ apply plugin: 'java' -apply plugin: 'maven' +apply plugin: 'com.github.dcendents.android-maven' group = 'com.github.matheusbristot' @@ -11,7 +11,7 @@ repositories { } dependencies { - compile 'com.google.guava:guava:18.0' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' } task sourcesJar(type: Jar, dependsOn: classes) { From 3e8ea17703dad792586609b9816af0448a33e22b Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 11:58:00 -0400 Subject: [PATCH 05/20] lol --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index ba3f49d72..aaf535c96 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ -apply plugin: 'java' -apply plugin: 'com.github.dcendents.android-maven' +apply plugin: 'com.android.library' +apply plugin: 'android-maven' group = 'com.github.matheusbristot' @@ -11,7 +11,7 @@ repositories { } dependencies { - classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' + classpath 'com.github.dcendents:android-maven-plugin:1.0' } task sourcesJar(type: Jar, dependsOn: classes) { From d27d6d900b1f23afd57cd9bc1218acff2b588ff8 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 11:59:00 -0400 Subject: [PATCH 06/20] lol2 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index aaf535c96..3f223c794 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -apply plugin: 'com.android.library' +apply plugin: 'java' apply plugin: 'android-maven' group = 'com.github.matheusbristot' From 232b54662c58f6d95886ca631d88d7c91c815f72 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 12:00:08 -0400 Subject: [PATCH 07/20] lol3 --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 3f223c794..808932de1 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ apply plugin: 'java' -apply plugin: 'android-maven' +apply plugin: 'com.github.dcendents.android-maven' group = 'com.github.matheusbristot' @@ -11,7 +11,7 @@ repositories { } dependencies { - classpath 'com.github.dcendents:android-maven-plugin:1.0' + classpath 'com.github.dcendents.android-maven:1.2' } task sourcesJar(type: Jar, dependsOn: classes) { From 215102f0b32a505c204d99b8f71b1f48656f50f7 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 12:01:56 -0400 Subject: [PATCH 08/20] lol4 --- build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 808932de1..f2032f93c 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ apply plugin: 'java' -apply plugin: 'com.github.dcendents.android-maven' +apply plugin: 'maven' group = 'com.github.matheusbristot' @@ -11,7 +11,8 @@ repositories { } dependencies { - classpath 'com.github.dcendents.android-maven:1.2' + compile 'com.google.guava:guava:18.0' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' // Add this line } task sourcesJar(type: Jar, dependsOn: classes) { From bc2b0a27f7dd2fa8aa230e9458e487a3d0d32b72 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 12:03:00 -0400 Subject: [PATCH 09/20] lol5 --- build.gradle | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index f2032f93c..d504e9d28 100644 --- a/build.gradle +++ b/build.gradle @@ -7,40 +7,39 @@ sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 repositories { - mavenCentral() + mavenCentral() } dependencies { - compile 'com.google.guava:guava:18.0' - classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' // Add this line + compile 'com.google.guava:guava:18.0' } task sourcesJar(type: Jar, dependsOn: classes) { - classifier = 'sources' - from sourceSets.main.allSource + classifier = 'sources' + from sourceSets.main.allSource } task javadocJar(type: Jar, dependsOn: javadoc) { - classifier = 'javadoc' - from javadoc.destinationDir + classifier = 'javadoc' + from javadoc.destinationDir } artifacts { - archives sourcesJar - archives javadocJar + archives sourcesJar + archives javadocJar } // To specify a license in the pom: install { - repositories.mavenInstaller { - pom.project { - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - } - } + repositories.mavenInstaller { + pom.project { + licenses { + license { + name 'The Apache Software License, Version 2.0' + url 'http://www.apache.org/licenses/LICENSE-2.0.txt' + distribution 'repo' + } + } + } + } } From 2632fd518e22805bd3e832ddcc95d8cce54fdfb6 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 13:47:45 -0400 Subject: [PATCH 10/20] Fix --- gradle.properties | 18 ------------------ gradle/wrapper/gradle-wrapper.properties | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 gradle.properties diff --git a/gradle.properties b/gradle.properties deleted file mode 100644 index 1331e836d..000000000 --- a/gradle.properties +++ /dev/null @@ -1,18 +0,0 @@ -VERSION_NAME=3.1.2 -VERSION_CODE=1 -GROUP=com.github.matheusbristot - -POM_DESCRIPTION=Active record style SQLite persistence for Android. -POM_URL=https://github.com/matheusbristot/ActiveAndroid -POM_SCM_URL=https://github.com/matheusbristot/ActiveAndroid -POM_SCM_CONNECTION=scm:git@github.com:matheusbristot/ActiveAndroid.git -POM_SCM_DEV_CONNECTION=scm:git@github.com:matheusbristot/ActiveAndroid.git -POM_LICENCE_NAME=The Apache Software License, Version 2.0 -POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt -POM_LICENCE_DIST=repo -POM_DEVELOPER_ID=matheusbristot -POM_DEVELOPER_NAME=Matheus Bristot - -POM_NAME=ActiveAndroid -POM_ARTIFACT_ID=activeandroid -POM_PACKAGING=jar diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 330a2c9f8..054073342 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip From 0f647b399a6d2998a4a5ca0415fb040cddfdb4ae Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 14:04:28 -0400 Subject: [PATCH 11/20] Fixed --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index d504e9d28..2b045ff15 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' apply plugin: 'maven' -group = 'com.github.matheusbristot' +group = 'com.activeandroid' sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 From 60f11376b743dbb5fc3037c02808a912a8c291d5 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 14:17:18 -0400 Subject: [PATCH 12/20] Fix3 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 2b045ff15..d504e9d28 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'java' apply plugin: 'maven' -group = 'com.activeandroid' +group = 'com.github.matheusbristot' sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 From de42c39d9c4a72e31914c97fe33043e9e6b66561 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 14:24:56 -0400 Subject: [PATCH 13/20] Fixed 9 --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index d504e9d28..6a05c3ad4 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ apply plugin: 'java' apply plugin: 'maven' group = 'com.github.matheusbristot' +archivesBaseName = "activeandroid" sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 From b158eb2f1aee33980cedd48b9d2b3342bcf9f37d Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 14:37:27 -0400 Subject: [PATCH 14/20] Fix10 --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6a05c3ad4..6ce38bc5e 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,6 @@ apply plugin: 'java' apply plugin: 'maven' group = 'com.github.matheusbristot' -archivesBaseName = "activeandroid" sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 @@ -41,6 +40,11 @@ install { distribution 'repo' } } + scm { + connection = 'scm:git@github.com:matheusbristot/ActiveAndroid.git' + developerConnection = 'scm:git@github.com:matheusbristot/ActiveAndroid.git' + url = 'https://github.com/matheusbristot/ActiveAndroid' + } } } } From 3eb063a39ba3652530eccc2d98de1aa6da437608 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 15:23:52 -0400 Subject: [PATCH 15/20] Fixed 11 --- build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6ce38bc5e..a9e1a3250 100644 --- a/build.gradle +++ b/build.gradle @@ -46,5 +46,6 @@ install { url = 'https://github.com/matheusbristot/ActiveAndroid' } } + pom.artifactId = 'activeandroid' } -} +} \ No newline at end of file From 01449cd6b01b8b0eda92aeaea8deef3415b1bc62 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 20 Jul 2018 15:59:37 -0400 Subject: [PATCH 16/20] Fixed 13 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a9e1a3250..03b2617ae 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ apply plugin: 'java' apply plugin: 'maven' group = 'com.github.matheusbristot' +jar.archiveName = "activeandroid-3.2.7-SNAPSHOT.jar" sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 @@ -46,6 +47,5 @@ install { url = 'https://github.com/matheusbristot/ActiveAndroid' } } - pom.artifactId = 'activeandroid' } } \ No newline at end of file From 8e0bc9ff0448fe0d0b08e1e3eec75fd6b22d847a Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Thu, 26 Jul 2018 15:09:12 -0400 Subject: [PATCH 17/20] Fixed Maven --- build.gradle | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 03b2617ae..1192bff8d 100644 --- a/build.gradle +++ b/build.gradle @@ -2,11 +2,17 @@ apply plugin: 'java' apply plugin: 'maven' group = 'com.github.matheusbristot' -jar.archiveName = "activeandroid-3.2.7-SNAPSHOT.jar" +version = '3.2.8' sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 +uploadArchives { + repositories { + mavenLocal() + } +} + repositories { mavenCentral() } From c8a4db41b8dca4da0f6cfacbc295e58074a2161e Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Thu, 26 Jul 2018 15:32:08 -0400 Subject: [PATCH 18/20] Fixed maven pub --- build.gradle | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 1192bff8d..390f2ab8b 100644 --- a/build.gradle +++ b/build.gradle @@ -2,16 +2,10 @@ apply plugin: 'java' apply plugin: 'maven' group = 'com.github.matheusbristot' -version = '3.2.8' sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 -uploadArchives { - repositories { - mavenLocal() - } -} repositories { mavenCentral() @@ -40,6 +34,9 @@ artifacts { install { repositories.mavenInstaller { pom.project { + groupId "com.github.matheusbristot" + artifactId "com.activeandroid" + version "3.2.9" licenses { license { name 'The Apache Software License, Version 2.0' From 685f90e60e054bd6f787b0a38de7a956772fca5c Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 27 Jul 2018 11:50:54 -0400 Subject: [PATCH 19/20] Revert "Fixed maven pub" This reverts commit c8a4db41b8dca4da0f6cfacbc295e58074a2161e. --- build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 390f2ab8b..1192bff8d 100644 --- a/build.gradle +++ b/build.gradle @@ -2,10 +2,16 @@ apply plugin: 'java' apply plugin: 'maven' group = 'com.github.matheusbristot' +version = '3.2.8' sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 +uploadArchives { + repositories { + mavenLocal() + } +} repositories { mavenCentral() @@ -34,9 +40,6 @@ artifacts { install { repositories.mavenInstaller { pom.project { - groupId "com.github.matheusbristot" - artifactId "com.activeandroid" - version "3.2.9" licenses { license { name 'The Apache Software License, Version 2.0' From 9b0a577f0b52b81f759ffbc33249c4c809627cb6 Mon Sep 17 00:00:00 2001 From: Matheus Bristot Date: Fri, 27 Jul 2018 11:51:35 -0400 Subject: [PATCH 20/20] Revert "Revert "Fixed maven pub"" This reverts commit 685f90e60e054bd6f787b0a38de7a956772fca5c. --- build.gradle | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 1192bff8d..390f2ab8b 100644 --- a/build.gradle +++ b/build.gradle @@ -2,16 +2,10 @@ apply plugin: 'java' apply plugin: 'maven' group = 'com.github.matheusbristot' -version = '3.2.8' sourceCompatibility = 1.8 // java 8 targetCompatibility = 1.8 -uploadArchives { - repositories { - mavenLocal() - } -} repositories { mavenCentral() @@ -40,6 +34,9 @@ artifacts { install { repositories.mavenInstaller { pom.project { + groupId "com.github.matheusbristot" + artifactId "com.activeandroid" + version "3.2.9" licenses { license { name 'The Apache Software License, Version 2.0'