File tree 10 files changed +31
-27
lines changed
etc/sample/app/src/org/jraf/androidcontentprovidergenerator/sample/provider
10 files changed +31
-27
lines changed Original file line number Diff line number Diff line change 1
1
Android ContentProvider Generator Changelog
2
2
===========================================
3
3
4
+ v1.9.2 (2015-03-05)
5
+ ------
6
+ - Fix for issue #77 .
7
+
4
8
v1.9.1 (2015-02-21)
5
9
------
6
10
- Fix for issue #73 .
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ https://github.com/BoD/android-contentprovider-generator/releases/latest
124
124
125
125
### Run the tool
126
126
127
- ` java -jar android_contentprovider_generator-1.9.1 -bundle.jar -i <input folder> -o <output folder> `
127
+ ` java -jar android_contentprovider_generator-1.9.2 -bundle.jar -i <input folder> -o <output folder> `
128
128
- Input folder: where to find ` _config.json ` and your entity json files
129
129
- Output folder: where the resulting files will be generated
130
130
@@ -224,7 +224,7 @@ You need maven to build this tool.
224
224
225
225
`mvn package`
226
226
227
- This will produce `android_contentprovider_generator-1.9.1 -bundle.jar` in the `target` folder.
227
+ This will produce `android_contentprovider_generator-1.9.2 -bundle.jar` in the `target` folder.
228
228
229
229
230
230
Similar tools
Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ public class CompanyColumns implements BaseColumns {
78
78
public static boolean hasColumns (String [] projection ) {
79
79
if (projection == null ) return true ;
80
80
for (String c : projection ) {
81
- if (c == NAME || c .contains ("." + NAME )) return true ;
82
- if (c == ADDRESS || c .contains ("." + ADDRESS )) return true ;
83
- if (c == SERIAL_NUMBER_ID || c .contains ("." + SERIAL_NUMBER_ID )) return true ;
81
+ if (c . equals ( NAME ) || c .contains ("." + NAME )) return true ;
82
+ if (c . equals ( ADDRESS ) || c .contains ("." + ADDRESS )) return true ;
83
+ if (c . equals ( SERIAL_NUMBER_ID ) || c .contains ("." + SERIAL_NUMBER_ID )) return true ;
84
84
}
85
85
return false ;
86
86
}
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ public class ManualColumns implements BaseColumns {
66
66
public static boolean hasColumns (String [] projection ) {
67
67
if (projection == null ) return true ;
68
68
for (String c : projection ) {
69
- if (c == TITLE || c .contains ("." + TITLE )) return true ;
70
- if (c == ISBN || c .contains ("." + ISBN )) return true ;
69
+ if (c . equals ( TITLE ) || c .contains ("." + TITLE )) return true ;
70
+ if (c . equals ( ISBN ) || c .contains ("." + ISBN )) return true ;
71
71
}
72
72
return false ;
73
73
}
Original file line number Diff line number Diff line change @@ -93,14 +93,14 @@ public class PersonColumns implements BaseColumns {
93
93
public static boolean hasColumns (String [] projection ) {
94
94
if (projection == null ) return true ;
95
95
for (String c : projection ) {
96
- if (c == FIRST_NAME || c .contains ("." + FIRST_NAME )) return true ;
97
- if (c == LAST_NAME || c .contains ("." + LAST_NAME )) return true ;
98
- if (c == AGE || c .contains ("." + AGE )) return true ;
99
- if (c == BIRTH_DATE || c .contains ("." + BIRTH_DATE )) return true ;
100
- if (c == HAS_BLUE_EYES || c .contains ("." + HAS_BLUE_EYES )) return true ;
101
- if (c == HEIGHT || c .contains ("." + HEIGHT )) return true ;
102
- if (c == GENDER || c .contains ("." + GENDER )) return true ;
103
- if (c == COUNTRY_CODE || c .contains ("." + COUNTRY_CODE )) return true ;
96
+ if (c . equals ( FIRST_NAME ) || c .contains ("." + FIRST_NAME )) return true ;
97
+ if (c . equals ( LAST_NAME ) || c .contains ("." + LAST_NAME )) return true ;
98
+ if (c . equals ( AGE ) || c .contains ("." + AGE )) return true ;
99
+ if (c . equals ( BIRTH_DATE ) || c .contains ("." + BIRTH_DATE )) return true ;
100
+ if (c . equals ( HAS_BLUE_EYES ) || c .contains ("." + HAS_BLUE_EYES )) return true ;
101
+ if (c . equals ( HEIGHT ) || c .contains ("." + HEIGHT )) return true ;
102
+ if (c . equals ( GENDER ) || c .contains ("." + GENDER )) return true ;
103
+ if (c . equals ( COUNTRY_CODE ) || c .contains ("." + COUNTRY_CODE )) return true ;
104
104
}
105
105
return false ;
106
106
}
Original file line number Diff line number Diff line change @@ -66,8 +66,8 @@ public class PersonTeamColumns implements BaseColumns {
66
66
public static boolean hasColumns (String [] projection ) {
67
67
if (projection == null ) return true ;
68
68
for (String c : projection ) {
69
- if (c == PERSON_ID || c .contains ("." + PERSON_ID )) return true ;
70
- if (c == TEAM_ID || c .contains ("." + TEAM_ID )) return true ;
69
+ if (c . equals ( PERSON_ID ) || c .contains ("." + PERSON_ID )) return true ;
70
+ if (c . equals ( TEAM_ID ) || c .contains ("." + TEAM_ID )) return true ;
71
71
}
72
72
return false ;
73
73
}
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ public class ProductColumns implements BaseColumns {
68
68
public static boolean hasColumns (String [] projection ) {
69
69
if (projection == null ) return true ;
70
70
for (String c : projection ) {
71
- if (c == PRODUCT_ID || c .contains ("." + PRODUCT_ID )) return true ;
72
- if (c == NAME || c .contains ("." + NAME )) return true ;
73
- if (c == MANUAL_ID || c .contains ("." + MANUAL_ID )) return true ;
71
+ if (c . equals ( PRODUCT_ID ) || c .contains ("." + PRODUCT_ID )) return true ;
72
+ if (c . equals ( NAME ) || c .contains ("." + NAME )) return true ;
73
+ if (c . equals ( MANUAL_ID ) || c .contains ("." + MANUAL_ID )) return true ;
74
74
}
75
75
return false ;
76
76
}
Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ public class SerialNumberColumns implements BaseColumns {
72
72
public static boolean hasColumns (String [] projection ) {
73
73
if (projection == null ) return true ;
74
74
for (String c : projection ) {
75
- if (c == PART0 || c .contains ("." + PART0 )) return true ;
76
- if (c == PART1 || c .contains ("." + PART1 )) return true ;
75
+ if (c . equals ( PART0 ) || c .contains ("." + PART0 )) return true ;
76
+ if (c . equals ( PART1 ) || c .contains ("." + PART1 )) return true ;
77
77
}
78
78
return false ;
79
79
}
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ public class TeamColumns implements BaseColumns {
78
78
public static boolean hasColumns (String [] projection ) {
79
79
if (projection == null ) return true ;
80
80
for (String c : projection ) {
81
- if (c == COMPANY_ID || c .contains ("." + COMPANY_ID )) return true ;
82
- if (c == NAME || c .contains ("." + NAME )) return true ;
83
- if (c == COUNTRY_CODE || c .contains ("." + COUNTRY_CODE )) return true ;
84
- if (c == SERIAL_NUMBER_ID || c .contains ("." + SERIAL_NUMBER_ID )) return true ;
81
+ if (c . equals ( COMPANY_ID ) || c .contains ("." + COMPANY_ID )) return true ;
82
+ if (c . equals ( NAME ) || c .contains ("." + NAME )) return true ;
83
+ if (c . equals ( COUNTRY_CODE ) || c .contains ("." + COUNTRY_CODE )) return true ;
84
+ if (c . equals ( SERIAL_NUMBER_ID ) || c .contains ("." + SERIAL_NUMBER_ID )) return true ;
85
85
}
86
86
return false ;
87
87
}
Original file line number Diff line number Diff line change 3
3
4
4
<groupId >org.jraf</groupId >
5
5
<artifactId >android_contentprovider_generator</artifactId >
6
- <version >1.9.1 </version > <!-- Do not forget to update README.md and CHANGELOG.md when updating this value -->
6
+ <version >1.9.2 </version > <!-- Do not forget to update README.md and CHANGELOG.md when updating this value -->
7
7
<packaging >jar</packaging >
8
8
9
9
<name >GenerateAndroidProvider</name >
You can’t perform that action at this time.
0 commit comments