Skip to content
Open
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
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ env:

android:
components:
- build-tools-19.1.0
- platform-tools
- tools
- build-tools-23.0.3
- android-15
- android-16
- android-17
- android-18
- android-19
- android-21
- android-23
- sys-img-armeabi-v7a-android-15
- sys-img-armeabi-v7a-android-16
- sys-img-armeabi-v7a-android-17
Expand Down
5 changes: 5 additions & 0 deletions ProviGenLib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ sourceSets {
srcDir 'src'
}
}
}

task generateSourcesJar(type: Jar) {
from sourceSets.main.java.srcDirs
classifier 'sources'
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public interface ProviGenBaseContract {
/**
* The unique ID for a row.
*/
@Id
@Id(autoincrement = true)
@Column(Type.INTEGER)
public static final String _ID = BaseColumns._ID;
String _ID = BaseColumns._ID;

}
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ public void onCreate(SQLiteDatabase database) {

@Override
public void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion) {
// create new tables if not exists
onCreate(database);

// add missing columns
if (newVersion > oldVersion) {
for (Class contract : contracts)
for (Class contract : contracts) {
TableUpdater.addMissingColumns(database, contract);
}
}
}
}
Loading