mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Make build FDroid pass
This commit is contained in:
parent
08dacacdda
commit
772670252a
22 changed files with 34 additions and 35 deletions
|
@ -48,7 +48,9 @@ script:
|
||||||
# Build app (assembleGplayRelease assembleFdroidRelease)
|
# Build app (assembleGplayRelease assembleFdroidRelease)
|
||||||
# Build Android test (assembleAndroidTest) (disabled for now)
|
# Build Android test (assembleAndroidTest) (disabled for now)
|
||||||
# Code quality (lintGplayRelease lintFdroidRelease)
|
# Code quality (lintGplayRelease lintFdroidRelease)
|
||||||
- ./gradlew clean assembleGplayRelease assembleFdroidRelease lintGplayRelease lintFdroidRelease --stacktrace
|
# Split into two steps because if a task contain Fdroid, PlayService will be disabled
|
||||||
|
- ./gradlew clean assembleGplayRelease lintGplayRelease --stacktrace
|
||||||
|
- ./gradlew clean assembleFdroidRelease lintFdroidRelease --stacktrace
|
||||||
# Run unitary test (Disable for now, see https://travis-ci.org/vector-im/riot-android/builds/502504370)
|
# Run unitary test (Disable for now, see https://travis-ci.org/vector-im/riot-android/builds/502504370)
|
||||||
# - ./gradlew testGplayReleaseUnitTest --stacktrace
|
# - ./gradlew testGplayReleaseUnitTest --stacktrace
|
||||||
# Other code quality check
|
# Other code quality check
|
||||||
|
|
|
@ -105,7 +105,8 @@ fi
|
||||||
echo
|
echo
|
||||||
echo "Search for long files..."
|
echo "Search for long files..."
|
||||||
|
|
||||||
${checkLongFilesScript} 2000 \
|
# TODO Reduce this once VectorSettingsPreferencesFragment.kt has been reworked
|
||||||
|
${checkLongFilesScript} 3500 \
|
||||||
./vector/src/main/java \
|
./vector/src/main/java \
|
||||||
./vector/src/main/res/layout \
|
./vector/src/main/res/layout \
|
||||||
./vector/src/main/res/values \
|
./vector/src/main/res/values \
|
||||||
|
|
|
@ -203,6 +203,6 @@ dependencies {
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!getGradle().getStartParameter().getTaskRequests().toString().contains("fdroid")) {
|
if (!getGradle().getStartParameter().getTaskRequests().toString().contains("Fdroid")) {
|
||||||
apply plugin: 'com.google.gms.google-services'
|
apply plugin: 'com.google.gms.google-services'
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="im.vector">
|
package="im.vector.riotredesign">
|
||||||
|
|
||||||
<application>
|
<application>
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm;
|
package im.vector.riotredesign.push.fcm;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
|
@ -13,17 +13,17 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm
|
package im.vector.riotredesign.push.fcm
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import im.vector.fragments.troubleshoot.TestAccountSettings
|
import im.vector.fragments.troubleshoot.TestAccountSettings
|
||||||
import im.vector.fragments.troubleshoot.TestDeviceSettings
|
|
||||||
import im.vector.matrix.android.api.session.Session
|
import im.vector.matrix.android.api.session.Session
|
||||||
import im.vector.push.fcm.troubleshoot.TestAutoStartBoot
|
|
||||||
import im.vector.push.fcm.troubleshoot.TestBackgroundRestrictions
|
|
||||||
import im.vector.riotredesign.features.settings.troubleshoot.NotificationTroubleshootTestManager
|
import im.vector.riotredesign.features.settings.troubleshoot.NotificationTroubleshootTestManager
|
||||||
import im.vector.riotredesign.features.settings.troubleshoot.TestBingRulesSettings
|
import im.vector.riotredesign.features.settings.troubleshoot.TestBingRulesSettings
|
||||||
|
import im.vector.riotredesign.features.settings.troubleshoot.TestDeviceSettings
|
||||||
import im.vector.riotredesign.features.settings.troubleshoot.TestSystemSettings
|
import im.vector.riotredesign.features.settings.troubleshoot.TestSystemSettings
|
||||||
|
import im.vector.riotredesign.push.fcm.troubleshoot.TestAutoStartBoot
|
||||||
|
import im.vector.riotredesign.push.fcm.troubleshoot.TestBackgroundRestrictions
|
||||||
|
|
||||||
class NotificationTroubleshootTestManagerFactory {
|
class NotificationTroubleshootTestManagerFactory {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm.troubleshoot
|
package im.vector.riotredesign.push.fcm.troubleshoot
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import im.vector.riotredesign.R
|
import im.vector.riotredesign.R
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm.troubleshoot
|
package im.vector.riotredesign.push.fcm.troubleshoot
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.net.ConnectivityManager
|
import android.net.ConnectivityManager
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm.troubleshoot
|
package im.vector.riotredesign.push.fcm.troubleshoot
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import im.vector.riotredesign.R
|
import im.vector.riotredesign.R
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package im.vector.receiver;
|
package im.vector.riotredesign.receiver;
|
||||||
|
|
||||||
import android.content.BroadcastReceiver;
|
import android.content.BroadcastReceiver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="im.vector.riotredesign">
|
||||||
|
|
||||||
<application>
|
<application>
|
||||||
|
|
||||||
|
@ -8,7 +9,7 @@
|
||||||
android:name="firebase_analytics_collection_deactivated"
|
android:name="firebase_analytics_collection_deactivated"
|
||||||
android:value="true" />
|
android:value="true" />
|
||||||
|
|
||||||
<service android:name="im.vector.push.fcm.VectorFirebaseMessagingService">
|
<service android:name=".push.fcm.VectorFirebaseMessagingService">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm;
|
package im.vector.riotredesign.push.fcm;
|
||||||
|
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
|
@ -13,14 +13,14 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm
|
package im.vector.riotredesign.push.fcm
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import im.vector.fragments.troubleshoot.TestAccountSettings
|
import im.vector.fragments.troubleshoot.TestAccountSettings
|
||||||
import im.vector.matrix.android.api.session.Session
|
import im.vector.matrix.android.api.session.Session
|
||||||
import im.vector.push.fcm.troubleshoot.TestFirebaseToken
|
import im.vector.riotredesign.push.fcm.troubleshoot.TestFirebaseToken
|
||||||
import im.vector.push.fcm.troubleshoot.TestPlayServices
|
import im.vector.riotredesign.push.fcm.troubleshoot.TestPlayServices
|
||||||
import im.vector.push.fcm.troubleshoot.TestTokenRegistration
|
import im.vector.riotredesign.push.fcm.troubleshoot.TestTokenRegistration
|
||||||
import im.vector.riotredesign.features.settings.troubleshoot.NotificationTroubleshootTestManager
|
import im.vector.riotredesign.features.settings.troubleshoot.NotificationTroubleshootTestManager
|
||||||
import im.vector.riotredesign.features.settings.troubleshoot.TestBingRulesSettings
|
import im.vector.riotredesign.features.settings.troubleshoot.TestBingRulesSettings
|
||||||
import im.vector.riotredesign.features.settings.troubleshoot.TestDeviceSettings
|
import im.vector.riotredesign.features.settings.troubleshoot.TestDeviceSettings
|
|
@ -17,7 +17,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package im.vector.push.fcm
|
package im.vector.riotredesign.push.fcm
|
||||||
|
|
||||||
import android.os.Handler
|
import android.os.Handler
|
||||||
import android.os.Looper
|
import android.os.Looper
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm.troubleshoot
|
package im.vector.riotredesign.push.fcm.troubleshoot
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import com.google.firebase.iid.FirebaseInstanceId
|
import com.google.firebase.iid.FirebaseInstanceId
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm.troubleshoot
|
package im.vector.riotredesign.push.fcm.troubleshoot
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import com.google.android.gms.common.ConnectionResult
|
import com.google.android.gms.common.ConnectionResult
|
|
@ -13,7 +13,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
package im.vector.push.fcm.troubleshoot
|
package im.vector.riotredesign.push.fcm.troubleshoot
|
||||||
|
|
||||||
import androidx.fragment.app.Fragment
|
import androidx.fragment.app.Fragment
|
||||||
import im.vector.riotredesign.R
|
import im.vector.riotredesign.R
|
|
@ -122,8 +122,7 @@ class EventStreamServiceX : VectorService() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service internal state
|
* Service internal state
|
||||||
|
|
|
@ -182,7 +182,6 @@ class NotifiableEventResolver(val context: Context) {
|
||||||
//TODO generic handling?
|
//TODO generic handling?
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
} */
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,8 +49,7 @@ class VectorSettingsAdvancedNotificationPreferenceFragment : VectorPreferenceFra
|
||||||
refreshPreferences()
|
refreshPreferences()
|
||||||
refreshDisplay()
|
refreshDisplay()
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
*/
|
|
||||||
|
|
||||||
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
|
||||||
// define the layout
|
// define the layout
|
||||||
|
|
|
@ -29,7 +29,7 @@ import androidx.recyclerview.widget.RecyclerView
|
||||||
import androidx.transition.TransitionManager
|
import androidx.transition.TransitionManager
|
||||||
import butterknife.BindView
|
import butterknife.BindView
|
||||||
import im.vector.matrix.android.api.session.Session
|
import im.vector.matrix.android.api.session.Session
|
||||||
import im.vector.push.fcm.NotificationTroubleshootTestManagerFactory
|
import im.vector.riotredesign.push.fcm.NotificationTroubleshootTestManagerFactory
|
||||||
import im.vector.riotredesign.R
|
import im.vector.riotredesign.R
|
||||||
import im.vector.riotredesign.core.extensions.withArgs
|
import im.vector.riotredesign.core.extensions.withArgs
|
||||||
import im.vector.riotredesign.core.platform.RiotActivity
|
import im.vector.riotredesign.core.platform.RiotActivity
|
||||||
|
|
|
@ -1867,8 +1867,7 @@ class VectorSettingsPreferencesFragment : VectorPreferenceFragment(), SharedPref
|
||||||
}
|
}
|
||||||
.show()
|
.show()
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
*/
|
|
||||||
|
|
||||||
//==============================================================================================================
|
//==============================================================================================================
|
||||||
// Phone number management
|
// Phone number management
|
||||||
|
@ -1950,8 +1949,7 @@ class VectorSettingsPreferencesFragment : VectorPreferenceFragment(), SharedPref
|
||||||
}
|
}
|
||||||
|
|
||||||
addPhoneBtn.order = order
|
addPhoneBtn.order = order
|
||||||
}
|
} */
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================================================
|
//==============================================================================================================
|
||||||
|
|
Loading…
Reference in a new issue